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

questions on XML/<param>tag

asked 2016-11-04 12:04:31 -0600

shawnysh gravatar image

Here is the link to the tutorial about XML/param, I cannot figure out the meaning of the first sentence of the 3 options listed below, respectively.

http://wiki.ros.org/roslaunch/XML/param

1 textfile="$(find pkg-name)/path/file.txt"(optional)

The contents of the file will be read and stored as a string. The file must be locally accessible, though it is strongly recommended that you use the package-relative $(find)/file.txt syntax to specify the location.

2 binfile="$(find pkg-name)/path/file"(optional) The contents of the file will be read and stored as a base64-encoded XML-RPC binary object. The file must be locally accessible, though it is strongly recommended that you use the package-relative $(find)/file.txt syntax to specify the location.

3 command="$(find pkg-name)/exe '$(find pkg-name)/arg.txt'"(optional)

The output of the command will be read and stored as a string. It is strongly recommended that you use the package-relative $(find)/file.txt syntax to specify file arguments. You should also quote file arguments using single quotes due to XML escaping requirements.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2016-11-05 06:33:17 -0600

gvdhoorn gravatar image

updated 2016-11-05 06:33:31 -0600

The first option will read a text file, and store the contents (ie: the text in it) on the parameter server under a name that you provide.

The second option will read a binary file, encode the contents (ie: bytes) using base64 and then store the result on the parameter server under a name that you provide.

The third option will run a command (ie: a program), capture the output of that command (ie: text on stdout) and store that on the parameter server under a name that you provide.

edit flag offensive delete link more

Comments

Thanks, it helps!

shawnysh gravatar image shawnysh  ( 2016-11-05 09:27:21 -0600 )edit

btw, do you know how to deal with it? thanks!

http://answers.ros.org/question/24753...

shawnysh gravatar image shawnysh  ( 2016-11-08 07:08:05 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2016-11-04 12:04:31 -0600

Seen: 230 times

Last updated: Nov 05 '16