Skip to content

Commit 32ddf1a

Browse files
authored
Merge pull request #2 from mhubii/rolling-issue232
Adds wrench command
2 parents 2cc7ae8 + be0f0a3 commit 32ddf1a

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

lbr_fri_ros2/src/interfaces/torque_command.cpp

-2
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,7 @@ void TorqueCommandInterface::buffered_command_to_fri(fri_command_t_ref command,
3535
joint_position_filter_.initialize(state.sample_time);
3636
}
3737
joint_position_filter_.compute(command_target_.joint_position, command_.joint_position);
38-
3938
command_.torque = command_target_.torque;
40-
command_.joint_position = command_target_.joint_position;
4139

4240
// validate
4341
if (!command_guard_->is_valid_command(command_, state)) {

lbr_fri_ros2/src/interfaces/wrench_command.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ void WrenchCommandInterface::buffered_command_to_fri(fri_command_t_ref command,
3333
joint_position_filter_.initialize(state.sample_time);
3434
}
3535
joint_position_filter_.compute(command_target_.joint_position, command_.joint_position);
36+
command_.wrench = command_target_.wrench;
3637

3738
// validate
3839
if (!command_guard_->is_valid_command(command_, state)) {

0 commit comments

Comments
 (0)