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

Navigation, AMCL, amcl_pose

asked 2014-09-18 01:14:14 -0500

ROSCMBOT gravatar image

updated 2014-09-18 18:07:46 -0500

Hello,

I'm debugging the navigation stack set up on my robot. My question is about amcl_pose. This topic is published by amcl (or fake_localization), and in my robot amcl_pose is being published to by the localization module too, but no topic is subscribed to amcl_pose.

As I understand, local planner should use amcl_pose and I'm using DWAPlannerROS in the navigation stack, and DWAPlannerROS is only subscribed to odom.

So, the question is which component is using the result of the localization module.

UPDATE 1: Another suspicious thing with amcl (or fake_localization) is, although it is publishing to /particlecloud, but I can not visualize the particles in Rviz using /particlecloud topic. Nothing appears in Rviz.

Thanks

edit retag flag offensive close merge delete

Comments

Regarding the /particlecloud visualization in Rviz: I vaguely recall having trouble seeing this topic and I think it was because I had the wrong FixedFrame selected in Rviz. You can see the /particlecloud topic in Rviz if you have the right settings.

Rick Armstrong gravatar image Rick Armstrong  ( 2014-09-18 23:05:32 -0500 )edit

My FixedFrame is map. and everything works and looks fine in rviz, except particlecloud

ROSCMBOT gravatar image ROSCMBOT  ( 2014-09-19 16:19:25 -0500 )edit

Please forgive if this is a dumb question, but have you given the robot an initialpose? Another: does your particlecloud topic show up in the 'By Topic ' tab of the Add dialog in Rviz?

Rick Armstrong gravatar image Rick Armstrong  ( 2014-09-26 15:33:56 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
2

answered 2014-09-18 14:50:50 -0500

paulbovbel gravatar image

updated 2014-09-18 14:52:32 -0500

From the wiki on DWAPlannerROS,

odom - Odometry information that gives the local planner the current speed of the robot

So the planner uses odom only for the instantaneous velocities. While it could extract the robot_pose from amcl_pose, it actually does this using the tf library (/tf topic) instead.

In more detail, the plugin doesn't actually obtain the pose itself, but actually gets the pose from move_base's costmap.


Also going by the wiki, amcl publishes /particlecloud as a PoseArray, which would be why you can't visualize it directly in rviz. You should be able to tap into the topic using rostopic echo though.

edit flag offensive delete link more

Comments

Thanks Paul, So it is normal that no topic is subscribed to /amcl_pose?

ROSCMBOT gravatar image ROSCMBOT  ( 2014-09-18 17:06:08 -0500 )edit

Yes .

paulbovbel gravatar image paulbovbel  ( 2014-09-18 20:43:52 -0500 )edit

regarding /particlecloud, according to this video, the topic should be visualizable in rviz

ROSCMBOT gravatar image ROSCMBOT  ( 2014-09-19 16:24:58 -0500 )edit

As an update, PoseArrays can be visualized now.

jayess gravatar image jayess  ( 2018-07-17 10:54:37 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2014-09-18 01:14:14 -0500

Seen: 3,280 times

Last updated: Sep 18 '14