File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -84,12 +84,12 @@ const rclcpp_lifecycle::State & Actuator::cleanup()
8484{
8585 if (impl_->get_state ().id () == lifecycle_msgs::msg::State::PRIMARY_STATE_INACTIVE)
8686 {
87+ impl_->set_state (rclcpp_lifecycle::State (
88+ lifecycle_msgs::msg::State::PRIMARY_STATE_UNCONFIGURED,
89+ lifecycle_state_names::UNCONFIGURED));
8790 switch (impl_->on_cleanup (impl_->get_state ()))
8891 {
8992 case CallbackReturn::SUCCESS:
90- impl_->set_state (rclcpp_lifecycle::State (
91- lifecycle_msgs::msg::State::PRIMARY_STATE_UNCONFIGURED,
92- lifecycle_state_names::UNCONFIGURED));
9393 break ;
9494 case CallbackReturn::FAILURE:
9595 case CallbackReturn::ERROR:
Original file line number Diff line number Diff line change @@ -82,12 +82,12 @@ const rclcpp_lifecycle::State & Sensor::cleanup()
8282{
8383 if (impl_->get_state ().id () == lifecycle_msgs::msg::State::PRIMARY_STATE_INACTIVE)
8484 {
85+ impl_->set_state (rclcpp_lifecycle::State (
86+ lifecycle_msgs::msg::State::PRIMARY_STATE_UNCONFIGURED,
87+ lifecycle_state_names::UNCONFIGURED));
8588 switch (impl_->on_cleanup (impl_->get_state ()))
8689 {
8790 case CallbackReturn::SUCCESS:
88- impl_->set_state (rclcpp_lifecycle::State (
89- lifecycle_msgs::msg::State::PRIMARY_STATE_UNCONFIGURED,
90- lifecycle_state_names::UNCONFIGURED));
9191 break ;
9292 case CallbackReturn::FAILURE:
9393 case CallbackReturn::ERROR:
Original file line number Diff line number Diff line change @@ -82,12 +82,12 @@ const rclcpp_lifecycle::State & System::cleanup()
8282{
8383 if (impl_->get_state ().id () == lifecycle_msgs::msg::State::PRIMARY_STATE_INACTIVE)
8484 {
85+ impl_->set_state (rclcpp_lifecycle::State (
86+ lifecycle_msgs::msg::State::PRIMARY_STATE_UNCONFIGURED,
87+ lifecycle_state_names::UNCONFIGURED));
8588 switch (impl_->on_cleanup (impl_->get_state ()))
8689 {
8790 case CallbackReturn::SUCCESS:
88- impl_->set_state (rclcpp_lifecycle::State (
89- lifecycle_msgs::msg::State::PRIMARY_STATE_UNCONFIGURED,
90- lifecycle_state_names::UNCONFIGURED));
9191 break ;
9292 case CallbackReturn::FAILURE:
9393 case CallbackReturn::ERROR:
You can’t perform that action at this time.
0 commit comments