Skip to content

Commit

Permalink
Don't set state_desired in on_activate
Browse files Browse the repository at this point in the history
  • Loading branch information
christophfroehlich committed Nov 15, 2023
1 parent 34ec02e commit 5a111e3
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -959,14 +959,12 @@ controller_interface::CallbackReturn JointTrajectoryController::on_activate(
if (read_state_from_command_interfaces(state))
{
state_current_ = state;
state_desired_ = state;
last_commanded_state_ = state;
}
else
{
// Initialize current state storage from hardware
read_state_from_state_interfaces(state_current_);
read_state_from_state_interfaces(state_desired_);
read_state_from_state_interfaces(last_commanded_state_);
}

Expand Down

0 comments on commit 5a111e3

Please sign in to comment.