Skip to content

Commit

Permalink
Reset last_angular_vel_ in activate method
Browse files Browse the repository at this point in the history
Signed-off-by: RBT22 <[email protected]>
  • Loading branch information
RBT22 committed Jan 30, 2025
1 parent eefde5a commit d6a4fbc
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ void RotationShimController::activate()

primary_controller_->activate();
in_rotation_ = false;
last_angular_vel_ = std::numeric_limits<double>::max();

auto node = node_.lock();
dyn_params_handler_ = node->add_on_set_parameters_callback(
Expand All @@ -144,8 +145,6 @@ void RotationShimController::deactivate()
node->remove_on_set_parameters_callback(dyn_params_handler_.get());
}
dyn_params_handler_.reset();

last_angular_vel_ = std::numeric_limits<double>::max();
}

void RotationShimController::cleanup()
Expand Down

0 comments on commit d6a4fbc

Please sign in to comment.