ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

The value of ${prefix} in package.xml

asked 2015-03-21 18:53:40 -0600

abcgarden gravatar image

updated 2015-03-21 18:54:29 -0600

I have several questions related to this topic:

  1. What is the value of ${prefix} in package.xml? Is it an env variable?

  2. How can I output these values?

  3. Are there any other "hidden" variables like this one in package.xml?

  4. Is it possible to run system command in package.xml, such as $(rospack find std_msgs) ?

  5. Is it a general question applicable to all xml files or is it only ROS-specific?


edit retag flag offensive close merge delete



I know the answer to the first one now. The value of ${prefix} is the path where package.xml locates.

abcgarden gravatar image abcgarden  ( 2015-03-23 08:40:54 -0600 )edit

@abcgarden How do you know? Is there any documentation on-line about it?

achmad_fathoni gravatar image achmad_fathoni  ( 2018-06-28 14:07:51 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2020-06-28 15:23:56 -0600

petermitrano gravatar image

from comments: The value of ${prefix} is the path where package.xml is located

not sure if this is true just copying for visibility

edit flag offensive delete link more


Combinacijus gravatar image Combinacijus  ( 2021-12-19 08:38:20 -0600 )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



Asked: 2015-03-21 18:53:40 -0600

Seen: 2,281 times

Last updated: Jun 28 '20