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

rviz cannot set initial pose with button 2D Pose Estimate

asked 2020-03-23 08:41:08 -0600

Gerry gravatar image

I'm a newbie to ROS Navigation and I will try to elaborate my problem as detailed as possible. Basically, I'd like to implement navigation stack with RGBD camera. To this end, I use maplab (https://github.com/ethz-asl/maplab) with its localization mode enabled as my localization system(a global map is created beforehand with maplab to be used in navigation). I have followed Navigation tutorials (http://wiki.ros.org/navigation/Tutori...) to create related tfs and publish necessary topics. The application is launched without any error and rviz is showing the 2D global map correctly. Then, I tried to click the button '2D Pose Estimate' in rviz to set robot's initial pose. Now the problem comes such that there is no effect shown in rviz, the robot still stays at the same place. I checked the topic /initialpose which is published by rviz. Everytime I click the button '2D Pose Estimate' and drag it to some place on the map, there is a message published from this topic that has position and orientation information. Why rviz failed to set initial pose of the robot?

I have some doubt about the subscribers of the topic /initialpose. In my navigation setup, actually, there is no subscriber of topic /initialpose currently. But I find out that AMCL is the subscriber of topic /initialpose in case laser scan is used. In my case, maplab is the localization system. Then, whether do I need to do some work to make maplab subscribe to topic /initialpose? If yes, how the localization system should use the subscribed topic /initialpose in general?

I'm really puzzled by this problem and any help is highly appreciated. Thanks in advance.

Best regards, Gerry

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2020-03-23 13:52:21 -0600

The /initialpose topic is unique to AMCL. Some other localization packages may also use that topic just to be trivially compatible with AMCL, but there's no promise that a package will do this. Or that the package even itself has the capability for relocalization to be "assisted" in this way.

Its not clear to me from a 5 minute review of maplab that it has this capability implemented, but you should consult the authors.

edit flag offensive delete link more

Comments

OK, I managed to get some comments from the author of maplab. No, this capability is not implemented. The author, however, provided some hints on how to feed data of the topic into the localization message flow. Some coding work ahead :)

Gerry gravatar image Gerry  ( 2020-03-24 19:26:38 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2020-03-23 08:41:08 -0600

Seen: 1,730 times

Last updated: Mar 23 '20