Skip to content

Commit

Permalink
Update commands for torque interface
Browse files Browse the repository at this point in the history
Solves issue lbr-stack#232
Co-autohred with @Hydran00
  • Loading branch information
matteodv99tn committed Dec 4, 2024
1 parent f3b9f40 commit 6001898
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 6001898

Please sign in to comment.