Robotics StackExchange | Archived questions

Gmapping Husky no map received

Hello, I am new to ROS and trying to do SLAM with my husky Robot. I am trying to launch gmappingdemo as shown in this link: http://wiki.ros.org/huskynavigation/Tutorials/Husky%20Gmapping%20Demo using the real robot (not simulation). Anyway, the gmapping node is stuck at "requesting map" and Rviz shows that "no map received". Time is synchronized between my PC and the robot using Chrony, and tf frames tree shows normal connections between /map -> /odom -> /base_link.

Can anyone help me in debugging the problem?

Asked by AbbasSidaoui on 2017-07-13 05:36:15 UTC

Comments

Can you ping both ways by hostname?

Asked by tonybaltovski on 2017-07-13 20:53:13 UTC

Make sure you did both exports (ROS_MASTER_URI & ROS_IP) in both computers with the IP of the network you are using between them. Edit: it must be done in all consoles or your /.bashrc

Asked by Enriq on 2017-07-14 06:45:43 UTC

Problem Solved. My robot was publishing scans on /front_lidar/scan, while the package I'm using subscribes to /scan.

Asked by AbbasSidaoui on 2017-07-17 05:13:08 UTC

Answers

Problem Solved. My robot was publishing scans on /front_lidar/scan, while the package I'm using subscribes to /scan.

Asked by AbbasSidaoui on 2017-07-17 05:12:33 UTC

Comments

I am facing the exact same issue with a fresh install of ros melodic image on a real husky robot cpr-a200-0501. can you please elaborate on how to fix this problem with the "scan"? should I change the gmapping.launch file? my machine is a fresh install, all I did was install the husky_navigation package from apt (sudo apt install ros-melodic-husky-navigation)

Asked by nurtech on 2021-07-15 02:51:43 UTC