Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Sai Kishor Kothakota <saisastra3@gmail.com>
  • Loading branch information
christophfroehlich and saikishor authored Sep 6, 2023
1 parent 7d4cabc commit 457f931
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions example_10/controllers/gpio_controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ controller_interface::return_type GPIOController::update(
// send inputs
for (size_t i = 0; i < state_interfaces_.size(); i++)
{
// RCLCPP_INFO(
// get_node()->get_logger(), "%s: (%f)", state_interfaces_[i].get_name().c_str(),
// state_interfaces_[i].get_value());
RCLCPP_DEBUG(
get_node()->get_logger(), "%s: (%f)", state_interfaces_[i].get_name().c_str(),
state_interfaces_[i].get_value());
gpio_msg_.values.at(i) = static_cast<float>(state_interfaces_.at(i).get_value());
}
gpio_publisher_->publish(gpio_msg_);
Expand All @@ -90,9 +90,9 @@ controller_interface::return_type GPIOController::update(
for (size_t i = 0; i < command_interfaces_.size(); i++)
{
command_interfaces_[i].set_value(output_cmd_ptr_->data[i]);
// RCLCPP_INFO(
// get_node()->get_logger(), "%s: (%f)", command_interfaces_[i].get_name().c_str(),
// command_interfaces_[i].get_value());
RCLCPP_DEBUG(
get_node()->get_logger(), "%s: (%f)", command_interfaces_[i].get_name().c_str(),
command_interfaces_[i].get_value());
}

return controller_interface::return_type::OK;
Expand Down

0 comments on commit 457f931

Please sign in to comment.