Skip to content

Commit 5786cee

Browse files
author
Felix Exner
committed
Added additional waitForService for dashboard service
1 parent 4d7016f commit 5786cee

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ur_robot_driver/src/ros/robot_state_helper.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ RobotStateHelper::RobotStateHelper(const ros::NodeHandle& nh)
5757
// Service to start UR program execution on the robot
5858
play_program_srv_ = nh_.serviceClient<std_srvs::Trigger>("dashboard/play");
5959

60+
play_program_srv_.waitForExistence();
6061
set_mode_as_.registerGoalCallback(std::bind(&RobotStateHelper::setModeGoalCallback, this));
6162
set_mode_as_.registerPreemptCallback(std::bind(&RobotStateHelper::setModePreemptCallback, this));
6263
}

0 commit comments

Comments
 (0)