ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
I know this is an old topic but I had a similar question today. So I found you can rename the node with remap, like this:
<launch>
<node name="mma" pkg="mma_ros" type="mma_node.py" output="log">
<remap from="/mma/result" to="/mma2/result" />
</node>
</launch>
and the output of rostopic list
is:
/camera/rgb/image_raw
/mma/visualization
/mma2/result
/rosout
/rosout_agg
For the record, just remapping the node name does not work, i.e. the following does not change it:
<launch>
<node name="mma" pkg="mma_ros" type="mma_node.py" output="log">
<remap from="/mma" to="/mma2" />
</node>
</launch>