@@ -239,12 +239,11 @@ def generate_launch_description():
239239 {"EE_PARAM" : "robotiq_2f85" },
240240 ]
241241
242- move_node = Node (
243- name = "move " ,
242+ move_action_server = Node (
243+ name = "move_action_server " ,
244244 package = "ros2srrc_execution" ,
245245 executable = "move" ,
246246 output = "screen" ,
247- arguments = ['--ros-args' , '--log-level' , 'info' ],
248247 parameters = [
249248 robot_description ,
250249 robot_description_semantic ,
@@ -384,25 +383,15 @@ def generate_launch_description():
384383 robot_state_publisher ,
385384 static_tf ,
386385
387- # Spawn robot
388386 TimerAction (period = 5.0 , actions = [spawn_robot ]),
389387
390- # Controllers
391388 TimerAction (period = 8.0 , actions = [joint_state_broadcaster ]),
392389 TimerAction (period = 10.0 , actions = [joint_trajectory_controller ]),
393390 TimerAction (period = 12.0 , actions = [gripper_controller ]),
394391
395- # MoveIt
396392 TimerAction (period = 18.0 , actions = [move_group ]),
397393
398- # Execution nodes
399- TimerAction (
400- period = 22.0 ,
401- actions = [
402- ExecuteProcess (cmd = ["echo" , ">>> launching execution nodes" ]),
403- move_node ,
404- robmove_node ,
405- robpose_node
406- ],
407- ),
394+ TimerAction (period = 20.0 , actions = [move_action_server ]),
395+
396+ TimerAction (period = 22.0 , actions = [robmove_node , robpose_node ]),
408397 ])
0 commit comments