Skip to content

Commit

Permalink
Merge pull request #233 from idra-lab/rolling-issue232
Browse files Browse the repository at this point in the history
Update TorqueCommandInterface - #232
  • Loading branch information
mhubii authored Dec 4, 2024
2 parents 01dadf0 + 32ddf1a commit 58ff69a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lbr_fri_ros2/src/interfaces/torque_command.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +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;

// 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 58ff69a

Please sign in to comment.