ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

navigation stack/ move_base with new topic

asked 2019-10-10 20:50:06 -0600

roboter gravatar image

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 nav_msgs/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 nav_msg/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:

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2019-10-11 06:46:57 -0600

pavel92 gravatar image

updated 2019-10-11 06:48:05 -0600

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.

edit flag offensive delete link more

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)"/>
roboter gravatar image roboter  ( 2019-10-11 10:57:30 -0600 )edit

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)

pavel92 gravatar image pavel92  ( 2019-10-15 02:35:20 -0600 )edit

Question Tools

2 followers

Stats

Asked: 2019-10-10 20:50:06 -0600

Seen: 385 times

Last updated: Oct 11 '19