navigation stack/ move_base with new topic
hello everyone.i have gone through basic navigation stack tutorial and able to move my robot. now i was thinking of situation where i have navmsgs/Oodmetry with a topic name "myOodmetry". Is it possible that i ignore the robot's odometry message and use this for localization and navigation. keeping everything in odom frame, not using any filters or something. basically what i trying to ask is i have a topic name "myOodmetry" which contains navmsg/Odometry messages. Can i use this for navigation stack and move_base? If yes, then how can i do that? Since i am quite new and going on tutorials, an elaborated answer will be very helping. Regards:
Asked by roboter on 2019-10-10 20:50:06 UTC
Answers
basically what i trying to ask is i have a topic name "myOodmetry" which contains nav_msg/Odometry messages. Can i use this for navigation stack and move_base?
Yes you can. You can make move_base use your odom
topic if you remap it in your move_base.launch
like this:
<remap from="odom" to="myOodmetry" />
Note that you need to make sure that you have reasonable odometry data and correct frame_id
and transforms for it to work.
Asked by pavel92 on 2019-10-11 06:46:57 UTC
Comments
Sorrry for a silly question, but just to be sure. Is it right?
<arg name="myOdometry" default="odom" />
<remap from="odom" to="$(arg myOdometry)"/>
Asked by roboter on 2019-10-11 10:57:30 UTC
yes, but you are passing the string "odom"
as an argument and remaping from "odom"
to "odom"
in this case (except if you pass a different topic then the default one)
Asked by pavel92 on 2019-10-15 02:35:20 UTC
Comments