ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
You can read environment variables from a launch file using $(env VAR)
. You could use this to read the HOSTNAME variable if that is useful, or you could set a custom environment variable on a per-host basis and use that.
A more complete example would be:
<arg name="host" value="$(env HOSTNAME)"/>