Skip to content

Commit 5a111e3

Browse files
Don't set state_desired in on_activate
1 parent 34ec02e commit 5a111e3

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

joint_trajectory_controller/src/joint_trajectory_controller.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -959,14 +959,12 @@ controller_interface::CallbackReturn JointTrajectoryController::on_activate(
959959
if (read_state_from_command_interfaces(state))
960960
{
961961
state_current_ = state;
962-
state_desired_ = state;
963962
last_commanded_state_ = state;
964963
}
965964
else
966965
{
967966
// Initialize current state storage from hardware
968967
read_state_from_state_interfaces(state_current_);
969-
read_state_from_state_interfaces(state_desired_);
970968
read_state_from_state_interfaces(last_commanded_state_);
971969
}
972970

0 commit comments

Comments
 (0)