We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f4362b1 commit 9beb8a5Copy full SHA for 9beb8a5
1 file changed
Industrial/ros2_SimRealRobotControl_gz/ros2srrc_execution/python/robot/robot.py
@@ -116,8 +116,10 @@ def __init__(self):
116
117
print("[CLIENT - robot.py]: Initialising ROS2 /move_action Action Client!")
118
print("[CLIENT - robot.py]: Waiting for /move_action ROS2 ActionServer to be available...")
119
- while not self._action_client.wait_for_server(timeout_sec=1.0):
120
- rclpy.spin_once(self)
+ if not self._action_client.wait_for_server(timeout_sec=10.0):
+ print("[ERROR] move_action server not available!")
121
+ else:
122
+ print("[OK] move_action server detected!")
123
print("[CLIENT - robot.py]: /move_action ACTION SERVER detected, ready!")
124
print("")
125
0 commit comments