diff --git a/lbr_fri_ros2/src/interfaces/torque_command.cpp b/lbr_fri_ros2/src/interfaces/torque_command.cpp index 54f53a2b..31dcb558 100644 --- a/lbr_fri_ros2/src/interfaces/torque_command.cpp +++ b/lbr_fri_ros2/src/interfaces/torque_command.cpp @@ -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)) { diff --git a/lbr_fri_ros2/src/interfaces/wrench_command.cpp b/lbr_fri_ros2/src/interfaces/wrench_command.cpp index 1a1c0ab7..9bdc3254 100644 --- a/lbr_fri_ros2/src/interfaces/wrench_command.cpp +++ b/lbr_fri_ros2/src/interfaces/wrench_command.cpp @@ -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)) {