ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

How can I run .launch files from launch file ?

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

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)/xacro.py '$(find rbx2_bringup)/launch/pi_robot_with_gripper.launch'" />  
<param name="pi_robot_moveit_config" command="$(find xacro)/xacro.py '$(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
2

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

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: http://wiki.ros.org/roslaunch/XML/inc...

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

Comments

thanks that was very helpful.

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

Question Tools

Stats

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

Seen: 1,600 times

Last updated: Nov 05 '16