ros2 / launch

Tools for launching multiple processes and for writing tests involving multiple processes.
Apache License 2.0
124 stars 139 forks source link

Is there a way in launch.py to use $(var arg) to pass text arguments from file A to file B? #621

Closed miku54 closed 2 years ago

miku54 commented 2 years ago

Steps to reproduce issue

ROS1 :
<launch>
<arg name="car_mode"  default="" />
  <node pkg="move_base" type="move_base" respawn="false" name="move_base" output="screen">
    <rosparam file="$(find catkin_ws)/costmap_params/param_$(arg car_mode)/teb_local_planner_params.yaml"  command="load"/>
  </node>
</launch>

How can I implement the function of param_$(arg car_mode) in ROS2?

clalancette commented 2 years ago

Please open questions like this on https://answers.ros.org. You'll get a better answer, and the answer will be saved and searchable in the future. Closing this one.