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

What are the rules for launch-prefix?

asked 2020-01-09 04:07:09 -0500

Rufus gravatar image

updated 2020-01-09 04:07:23 -0500

I want to see what I can do with the seemingly powerful launch-prefix for roslaunch. However, I can't quite decipher when it will accept it and when it throws

RLException: Invalid roslaunch XML syntax: not well-formed (invalid token):
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2020-01-09 04:13:47 -0500

gvdhoorn gravatar image

updated 2020-01-09 04:14:54 -0500

RLException: Invalid roslaunch XML syntax: not well-formed (invalid token):

The particular error you show just tells us that you have something in that attribute which is not valid XML.

As .launch files are XML, you need to ensure that whatever you have in the launch-prefix attribute is valid XML as well. This means: no special characters, no ", no &, etc.

You'll have to escape/encode those characters before putting them in that attribute. I 'd suggest looking up some sites about XML and entity encoding.

What are the rules for launch-prefix?

Ignoring the "valid XML" aspect, here are some guidelines:

  • it needs to be something that can actually be executed
  • it needs to be something which does not interfere with roslaunch's process monitoring (or: if it would interfere you'll just run into problems when trying to shutdown your launch session)
  • it needs to be able to process the "rest of the command line" (ie: path and name of node binary, any additional args to the node binary)

there may be more, perhaps other board members can contribute.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2020-01-09 04:07:09 -0500

Seen: 967 times

Last updated: Jan 09 '20