ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

How can I run .launch files from launch file ?

asked 2016-11-05 18:55:32 -0600

zakizadeh gravatar image

hi ! i have to run two launch file before run rviz in launch code. i wrote this code :

<param name="rbx2_bringup" command="$(find xacro)/ '$(find rbx2_bringup)/launch/pi_robot_with_gripper.launch'" />  
<param name="pi_robot_moveit_config" command="$(find xacro)/ '$(find pi_robot_moveit_config)/launch/move_group.launch'" />  
 <!-- Show in Rviz   -->
  <node name="rviz" pkg="rviz" type="rviz" args="-d $(find rbx2_arm_nav)/config/arm_paths.rviz"/>

please edit code for me and write correct code. thank you !

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2016-11-05 20:43:39 -0600

ahendrix gravatar image

please edit code for me and write correct code. thank you !

I will not write your code for you. We're here to offer free advice; if you want someone to build your software for you, they'll probably want to get paid for their time.

That said, you probably want the <include> tag in roslaunch:

You may also want to read the roslaunch tips for large projects tutorial, because it discusses a lot of the different ways that you can use roslaunch to include other launch files, set parameters and run nodes.

edit flag offensive delete link more


thanks that was very helpful.

zakizadeh gravatar image zakizadeh  ( 2016-11-06 17:30:31 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2016-11-05 18:55:32 -0600

Seen: 1,465 times

Last updated: Nov 05 '16