Ask Your Question
0

Invalid roslaunch XML syntax

asked 2015-04-04 07:53:41 -0500

Joelac0193 gravatar image

So I've created two files: robot.launch and robot.yaml. Robot.launch contains this:

Robot.yaml contains this:

nxt_robot: - type: touch frame_id: touch_frame name: my_touch_sensor port: PORT_1 desired_frequency: 20.0

When I use roslaunch robot.launch I get:

root@joel:~/learning_nxt# roslaunch robot.launch ... logging to /root/.ros/log/ea9ca04a-da59-11e4-aa30-080027df9655/roslaunch-joel-21391.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.

error loading tag: file does not exist [/opt/ros/electric/stacks/nxt/learning_nxt/robot.yaml] XML is root@joel:~/learning_nxt#

Then when I run roslaunch robot.yaml I get:

root@joel:~/learning_nxt# roslaunch robot.yaml ... logging to /root/.ros/log/158aef32-da5a-11e4-aa30-080027df9655/roslaunch-joel-21400.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: syntax error: line 1, column 0 root@joel:~/learning_nxt#

What is wrong here? I input the contents of the file robot.yaml into http://yaml-online-parser.appspot.com/ and it says that there is nothing wrong with the text.

By the way, I am following these instrucutons: http://wiki.ros.org/nxt_ros/Tutorials... - steps (3.2), (3.3) and (3.4)

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2015-04-04 09:04:32 -0500

aak2166 gravatar image

The second error is occurring because your robot.yaml is YAML and not XML, which is what roslaunch will parse when running.

The first error appears to be referring to the file robot.yaml at the location: /opt/ros/electric/stacks/nxt/learning_nxt/robot.yaml

Is that in fact where you're robot.yaml is located in the file hierarchy? That is where roslaunch is looking for it.

edit flag offensive delete link more

Comments

Thanks for pointing that out! Turns out the file was somewhere else. Thanks!

Joelac0193 gravatar image Joelac0193  ( 2015-04-04 09:23:02 -0500 )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

Stats

Asked: 2015-04-04 07:53:41 -0500

Seen: 2,884 times

Last updated: Apr 04 '15