ROS2 Launch Substitute
A Launch Substitution is a promise for a value that will only be known at launch runtime, not when the Python file is evaluated.
Substitutions are only meaningful in places where launch will resolve them later, such as:
- node name
- parameters
- remappings
- log messages
- conditions
- command arguments
| Substitution | Meaning |
|---|---|
(LaunchConfiguration)(/ROS/ros_eco/launch/python/launch_argument/) |
Value from launch arguments |
EnvironmentVariable |
Value from env at runtime |
PathJoinSubstitution |
Build paths safely |
TextSubstitution |
Literal text |
Command |
Run a command and capture output |
FindPackageShare |
Locate package at runtime |