File tree Expand file tree Collapse file tree 3 files changed +12
-12
lines changed Expand file tree Collapse file tree 3 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -96,12 +96,12 @@ const rclcpp_lifecycle::State & Actuator::cleanup()
96
96
std::unique_lock<std::recursive_mutex> lock (actuators_mutex_);
97
97
if (impl_->get_lifecycle_state ().id () == lifecycle_msgs::msg::State::PRIMARY_STATE_INACTIVE)
98
98
{
99
- switch (impl_->on_cleanup (impl_->get_lifecycle_state ()))
99
+ impl_->set_state (rclcpp_lifecycle::State (
100
+ lifecycle_msgs::msg::State::PRIMARY_STATE_UNCONFIGURED,
101
+ lifecycle_state_names::UNCONFIGURED));
102
+ switch (impl_->on_cleanup (impl_->get_state ()))
100
103
{
101
104
case CallbackReturn::SUCCESS:
102
- impl_->set_lifecycle_state (rclcpp_lifecycle::State (
103
- lifecycle_msgs::msg::State::PRIMARY_STATE_UNCONFIGURED,
104
- lifecycle_state_names::UNCONFIGURED));
105
105
break ;
106
106
case CallbackReturn::FAILURE:
107
107
case CallbackReturn::ERROR:
Original file line number Diff line number Diff line change @@ -95,12 +95,12 @@ const rclcpp_lifecycle::State & Sensor::cleanup()
95
95
std::unique_lock<std::recursive_mutex> lock (sensors_mutex_);
96
96
if (impl_->get_lifecycle_state ().id () == lifecycle_msgs::msg::State::PRIMARY_STATE_INACTIVE)
97
97
{
98
- switch (impl_->on_cleanup (impl_->get_lifecycle_state ()))
98
+ impl_->set_state (rclcpp_lifecycle::State (
99
+ lifecycle_msgs::msg::State::PRIMARY_STATE_UNCONFIGURED,
100
+ lifecycle_state_names::UNCONFIGURED));
101
+ switch (impl_->on_cleanup (impl_->get_state ()))
99
102
{
100
103
case CallbackReturn::SUCCESS:
101
- impl_->set_lifecycle_state (rclcpp_lifecycle::State (
102
- lifecycle_msgs::msg::State::PRIMARY_STATE_UNCONFIGURED,
103
- lifecycle_state_names::UNCONFIGURED));
104
104
break ;
105
105
case CallbackReturn::FAILURE:
106
106
case CallbackReturn::ERROR:
Original file line number Diff line number Diff line change @@ -94,12 +94,12 @@ const rclcpp_lifecycle::State & System::cleanup()
94
94
std::unique_lock<std::recursive_mutex> lock (system_mutex_);
95
95
if (impl_->get_lifecycle_state ().id () == lifecycle_msgs::msg::State::PRIMARY_STATE_INACTIVE)
96
96
{
97
- switch (impl_->on_cleanup (impl_->get_lifecycle_state ()))
97
+ impl_->set_state (rclcpp_lifecycle::State (
98
+ lifecycle_msgs::msg::State::PRIMARY_STATE_UNCONFIGURED,
99
+ lifecycle_state_names::UNCONFIGURED));
100
+ switch (impl_->on_cleanup (impl_->get_state ()))
98
101
{
99
102
case CallbackReturn::SUCCESS:
100
- impl_->set_lifecycle_state (rclcpp_lifecycle::State (
101
- lifecycle_msgs::msg::State::PRIMARY_STATE_UNCONFIGURED,
102
- lifecycle_state_names::UNCONFIGURED));
103
103
break ;
104
104
case CallbackReturn::FAILURE:
105
105
case CallbackReturn::ERROR:
You can’t perform that action at this time.
0 commit comments