Skip to content

Commit

Permalink
Update TorqueCommandInterface - lbr-stack#232
Browse files Browse the repository at this point in the history
  • Loading branch information
matteodv99tn committed Dec 4, 2024
1 parent 01dadf0 commit 2cc7ae8
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 2cc7ae8

Please sign in to comment.