Skip to content

Commit 3dd96ec

Browse files
committed
Change name node in robot.py
1 parent ee64800 commit 3dd96ec

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

  • Industrial/ros2_SimRealRobotControl_gz/ros2srrc_execution/python/robot

Industrial/ros2_SimRealRobotControl_gz/ros2srrc_execution/python/robot/robot.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class RobMoveCLIENT(Node):
5858
def __init__(self):
5959

6060
super().__init__('ros2srrc_RobMove_Client')
61-
self._action_client = ActionClient(self, Robmove, 'Robmove')
61+
self._action_client = ActionClient(self, Robmove, '/Robmove')
6262

6363
print("[CLIENT - robot.py]: Initialising ROS2 /RobMove Action Client!")
6464
print("[CLIENT - robot.py]: Waiting for /Robmove ROS2 ActionServer to be available...")
@@ -112,13 +112,13 @@ class MoveCLIENT(Node):
112112
def __init__(self):
113113

114114
super().__init__('ros2srrc_Move_Client')
115-
self._action_client = ActionClient(self, Move, 'move')
115+
self._action_client = ActionClient(self, Move, '/move_action')
116116

117-
print("[CLIENT - robot.py]: Initialising ROS2 /move Action Client!")
118-
print("[CLIENT - robot.py]: Waiting for /move ROS2 ActionServer to be available...")
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...")
119119
while not self._action_client.wait_for_server(timeout_sec=1.0):
120120
rclpy.spin_once(self)
121-
print("[CLIENT - robot.py]: /move ACTION SERVER detected, ready!")
121+
print("[CLIENT - robot.py]: /move_action ACTION SERVER detected, ready!")
122122
print("")
123123

124124
def send_goal(self, ACTION):

0 commit comments

Comments
 (0)