@@ -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