Skip to content

Commit

Permalink
adds wrench comand (#233 (comment))
Browse files Browse the repository at this point in the history
(cherry picked from commit be0f0a3)
  • Loading branch information
mhubii authored and github-actions[bot] committed Dec 4, 2024
1 parent 4577580 commit d6aee14
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 0 additions & 2 deletions lbr_fri_ros2/src/interfaces/torque_command.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,7 @@ void TorqueCommandInterface::buffered_command_to_fri(fri_command_t_ref command,
joint_position_filter_.initialize(state.sample_time);
}
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)) {
Expand Down
1 change: 1 addition & 0 deletions lbr_fri_ros2/src/interfaces/wrench_command.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ void WrenchCommandInterface::buffered_command_to_fri(fri_command_t_ref command,
joint_position_filter_.initialize(state.sample_time);
}
joint_position_filter_.compute(command_target_.joint_position, command_.joint_position);
command_.wrench = command_target_.wrench;

// validate
if (!command_guard_->is_valid_command(command_, state)) {
Expand Down

0 comments on commit d6aee14

Please sign in to comment.