Skip to content

Commit

Permalink
Update TorqueCommandInterface - #232
Browse files Browse the repository at this point in the history
(cherry picked from commit 2cc7ae8)
  • Loading branch information
matteodv99tn authored and github-actions[bot] committed Dec 4, 2024
1 parent be548f7 commit 4577580
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lbr_fri_ros2/src/interfaces/torque_command.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ void TorqueCommandInterface::buffered_command_to_fri(fri_command_t_ref command,
}
joint_position_filter_.compute(command_target_.joint_position, command_.joint_position);

command_.torque = command_target_.torque;
command_.joint_position = command_target_.joint_position;

// validate
if (!command_guard_->is_valid_command(command_, state)) {
std::string err = "Invalid command.";
Expand Down

0 comments on commit 4577580

Please sign in to comment.