I have a node that I want to subscribe two topics from nav2d, I'm interested to use the /base_scan and /odom topics. When I look in launch files then I can see <!-- Start the Operator to control the simulated robot --> <node name="Operator" pkg="nav2d_operator" type="operator" > <remap from="scan" to="base_scan"/> <rosparam file="$(find nav2d_tutorials)/param/operator.yaml"/> <rosparam file="$(find nav2d_tutorials)/param/costmap.yaml" ns="local_map" /> </node>
I know that "scan" in stage that is remapped to the "base_scan" topic. But what is the remap name for /odom or /base_pose_ground_truth topic ? Or where can I find it ?
Can I for example name /odom topic as <remap from="odometry" to="odom"/>
?
Originally posted by RosUser on ROS Answers with karma: 81 on 2016-04-06
Post score: 0
Original comments
Comment by F.Brosseau on 2016-04-06:
If you make : rosnode info Operator ; you will see topics coming in and out of this node. Then you just have to take the name of the odometry topic and change it with odom with a remap.
Comment by RosUser on 2016-04-06:
I tried rosnode info Stage and can see both base_scan and odom publications! sow can I write like this in launch file: ?
Comment by F.Brosseau on 2016-04-06:
Yes it should work