Skip to content

Commit 76402a5

Browse files
authored
Updated get_state to get_lifecycle_state (UniversalRobots#1087)
1 parent 76de658 commit 76402a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ur_controllers/src/scaled_joint_trajectory_controller.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ controller_interface::return_type ScaledJointTrajectoryController::update(const
8383
scaled_params_.speed_scaling_interface_name.c_str());
8484
}
8585

86-
if (get_state().id() == lifecycle_msgs::msg::State::PRIMARY_STATE_INACTIVE) {
86+
if (get_lifecycle_state().id() == lifecycle_msgs::msg::State::PRIMARY_STATE_INACTIVE) {
8787
return controller_interface::return_type::OK;
8888
}
8989

0 commit comments

Comments
 (0)