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

roslaunch args with double quote " "

asked 2012-01-30 01:36:27 -0500

Markus Bader gravatar image

updated 2012-01-30 12:16:15 -0500

kwc gravatar image

Hi

I like to use roslaunch to start a rosbag recording with regular expression arguments. How to I substitute the double quote "" to avoid xml problems The following launch code is NOT working.

<launch>  
  <node pkg="rosbag" type="rosbag" name="rosbag" args="record -e "(.*)image_raw"  "(.*)camera_info" " />
</launch>

Any ideas

Greetings Markus

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
11

answered 2012-01-30 04:02:18 -0500

kwc gravatar image

The correct entity escape in XML for quot is &quot;

http://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references

edit flag offensive delete link more
4

answered 2012-01-30 01:53:05 -0500

raahlb gravatar image

You could also use single quotes, ', inside the outer set of "".

edit flag offensive delete link more

Comments

1
Thanks it worked with: <node pkg="rosbag" type="rosbag" name="rosbag" args="record -e '(.*)image_raw' '(.*)camera_info' " />
Markus Bader gravatar image Markus Bader  ( 2012-01-30 23:02:01 -0500 )edit

Question Tools

2 followers

Stats

Asked: 2012-01-30 01:36:27 -0500

Seen: 3,084 times

Last updated: Jan 02 '13