Skip to content

Commit

Permalink
Correct output that was wrong.
Browse files Browse the repository at this point in the history
  • Loading branch information
destogl authored Jan 16, 2025
1 parent 032c7d9 commit ce0ab6c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions io_gripper_controller/src/io_gripper_controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1312,7 +1312,6 @@ void IOGripperController::check_gripper_and_reconfigure_state()
}

bool reconfigure_state_found = false;

for (const auto & [key, val] : params_.configuration_setup.configurations_map)
{
for (const auto & io : val.state_high)
Expand All @@ -1328,7 +1327,7 @@ void IOGripperController::check_gripper_and_reconfigure_state()
if (!(std::abs(state_value_ - 1.0) < std::numeric_limits<double>::epsilon()))
{
reconfigure_state_found = false;
RCLCPP_ERROR(get_node()->get_logger(), "value for state doesn't match %s", io.c_str());
RCLCPP_DEBUG(get_node()->get_logger(), "value for state doesn't match %s", io.c_str());
break;
}
else
Expand All @@ -1349,8 +1348,8 @@ void IOGripperController::check_gripper_and_reconfigure_state()
{
if (!(std::abs(state_value_ - 0.0) < std::numeric_limits<double>::epsilon()))
{
RCLCPP_ERROR(get_node()->get_logger(), "value doesn't match %s", io.c_str());
reconfigure_state_found = false;
RCLCPP_DEBUG(get_node()->get_logger(), "value for state doesn't match %s", io.c_str());
break;
}
else
Expand Down

0 comments on commit ce0ab6c

Please sign in to comment.