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

Invalid roslaunch XML syntax: no root <launch> tag

asked 2017-03-20 23:53:35 -0500

st20000942 gravatar image

updated 2017-03-21 00:00:32 -0500

I am quite new to ROS. I would like to what I should do? I have a capstonerobot.urdf file and a capstonerobot.launch file

**My Error

... logging to /home/ishira/.ros/log/ed78a238-0df0-11e7-ba77-645a04940732/roslaunch-ishira-Inspiron-3521-7754.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.
Invalid roslaunch XML syntax: no root <launch> tag
The traceback for the exception was written to the log file**

**My launch file

    <!-- Load the capstonerobot URDF model into the parameter server -->
    <param name="robot_description" textfile="$(find capstonerobot)/capstonerobot.urdf" />
    <!-- Start Gazebo with an empty world -->
    <include file="$(find gazebo_ros)/launch/empty_world.launch"/>
    <!-- Spawn a capstonerobot in Gazebo, taking the description from the
    parameter server -->
    <node name="spawn_urdf" pkg="gazebo_ros" type="spawn_model"
        args="-param robot_description -urdf -model capstonerobot" />

edit retag flag offensive close merge delete


Please use the preformatted text button to format your error message and your launch file. As it is now it's quite difficult to read.

ahendrix gravatar image ahendrix  ( 2017-03-20 23:57:00 -0500 )edit

while it's works for me, maybe you should check empty_world.launch or you should just get a new launch file and retype it.

DinnerHowe gravatar image DinnerHowe  ( 2017-03-21 00:18:17 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2017-11-17 01:37:08 -0500

updated 2017-11-17 01:43:47 -0500

gvdhoorn gravatar image

you need to roslaunch <package name> <name1.launch> rather than roslaunch <package name> <name2.urdf>

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2017-03-20 23:53:35 -0500

Seen: 3,084 times

Last updated: Nov 17 '17