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/Tutorials/RobotSetup) 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
Originally posted by Gerry on ROS Answers with karma: 23 on 2020-03-23
Post score: 0