Skip to content

Commit

Permalink
Update set_value() usuage to fix warning in velocity_controllers
Browse files Browse the repository at this point in the history
  • Loading branch information
kumar-sanjeeev committed Dec 23, 2024
1 parent 5edb5f4 commit 1044e67
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion velocity_controllers/src/joint_group_velocity_controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,11 @@ controller_interface::CallbackReturn JointGroupVelocityController::on_deactivate
// stop all joints
for (auto & command_interface : command_interfaces_)
{
command_interface.set_value(0.0);
if (!command_interface.set_value(0.0))
{
RCLCPP_WARN(get_node()->get_logger(), "Error while setting command_interface value to 0.0");
return CallbackReturn::FAILURE;
}
}

return ret;
Expand Down

0 comments on commit 1044e67

Please sign in to comment.