We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9851eac commit 00c753dCopy full SHA for 00c753d
joint_trajectory_controller/src/joint_trajectory_controller.cpp
@@ -1658,8 +1658,13 @@ bool JointTrajectoryController::set_scaling_factor(
1658
{
1659
if (get_state().id() == lifecycle_msgs::msg::State::PRIMARY_STATE_ACTIVE)
1660
1661
- // TODO(Felix): Use proper adressing here.
1662
- command_interfaces_.back().set_value(static_cast<double>(req->scaling_factor));
+ for (auto & interface : command_interfaces_)
+ {
1663
+ if (interface.get_name() == params_.speed_scaling_command_interface_name)
1664
1665
+ interface.set_value(static_cast<double>(req->scaling_factor));
1666
+ }
1667
1668
}
1669
1670
resp->success = true;
0 commit comments