ros2 launch using IncludeLaunchDescription and remapping topics [closed]
To re-use other packages in the ROS2 ecosystem, it's often advantageous to directly re-use the launch files provided with a package by using IncludeLaunchDescription
. Often the launch files from other included packages provide launch arguments to overwrite parameters, node names, namespaces, and sometimes topics. What if they don't? Is there another programmatic way to overwrite these values without the use of launch args?
In particular I'm curious about topics. I want to use IncludeLaunchDescription
to reuse a launch file from another package but I also would like to remap some topics to match my topic scheme (already defined by use of many bags, other node's expectations, etc.). It seems the only option now is to copy the provided launch into my package and rework it to support my topic, param, node, and namespace names. Is there another way that promotes reuse in a more flexible way?