Skip to content

Commit e987cd3

Browse files
saikishormergify[bot]
authored andcommitted
Use get_lifecycle_id instead of get_lifecycle_state (#2053)
(cherry picked from commit 4a8192a)
1 parent 87af65d commit e987cd3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

motion_primitives_controllers/src/motion_primitives_forward_controller.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ rclcpp_action::GoalResponse MotionPrimitivesForwardController::goal_received_cal
224224
RCLCPP_INFO(get_node()->get_logger(), "Received new action goal");
225225

226226
// Precondition: Running controller
227-
if (get_lifecycle_state().id() == lifecycle_msgs::msg::State::PRIMARY_STATE_INACTIVE)
227+
if (get_lifecycle_id() == lifecycle_msgs::msg::State::PRIMARY_STATE_INACTIVE)
228228
{
229229
RCLCPP_ERROR(
230230
get_node()->get_logger(), "Can't accept new trajectories. Controller is not running.");

0 commit comments

Comments
 (0)