Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions articles/151_roslaunch_xml.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ The included launch file description is not necessarily written in this format n

```xml
<include file="/opt/my_launch_file.py"/>
<include file="$(find-pkg my_pkg)/launch/some_launch_file.xml"/>
<include file="$(find-pkg-share my_pkg)/launch/some_launch_file.xml"/>
<include file="/opt/my_other_launch_file.xml">
<arg name="some_argument" value="dummy_value"/>
</include>
Expand Down Expand Up @@ -239,11 +239,17 @@ All substitutions are enclosed by `$(...)`.

### Built-in Substitutions

`$(find-pkg <pkg-name>)`
`$(find-pkg-prefix <pkg-name>)`
: Substituted by the install prefix path of the given package.
Forward and backwards slashes will be resolved to the local filesystem convention.
Substitution will fail if the package cannot be found.

`$(find-pkg-share <pkg-name>)`
: Substituted by the share directory path of the given package.
The share directory includes the package's name, e.g. `<prefix>/share/<pkg-name>`.
Forward and backwards slashes will be resolved to the local filesystem convention.
Substitution will fail if the package cannot be found.

`$(find-exec <exec-name>)`
: Substituted by the path to the executable in the local filesystem.
Executables are looked up in the PATH environment variable.
Expand Down