Ask Your Question
0

Hector SLAM map does not update based on robot motion

asked 2019-04-21 16:40:26 -0500

danielwu gravatar image

Hi, I am having trouble with Hector SLAM using a car with LIDAR and no odometry frame. I started with a recorded bag file that has Velodyne LIDAR data and used rosrun pointcloud_to_laserscan pointcloud_to_laserscan_node to convert from pointcloud2 format to scan format. Now I am trying to run Hector SLAM, without using odometry frame. I am following the information on this page http://wiki.ros.org/hector_slam/Tutor... , part 2, “Use without odom frame.”

I am able to generate a map, but the map just expands radially from the center. My car is definitely driving, but the map looks like the car is sitting in the same spot.

I suspect that there is something wrong with the transformations between the car and the earth. I tried using tf_echo to look at the transform between the robot and the earth, but the values there don’t seem to make sense and the transform seems to always be the same, because the car isn’t always driving at a constant speed.

Here is the launch file: https://drive.google.com/file/d/19eka...

Here is the bag file: https://drive.google.com/file/d/1RInf...

Here is a picture of the tf tree: https://drive.google.com/file/d/1nZma...

Here is the corresponding camera image video: https://drive.google.com/file/d/1e89P...

Here is the current map in rviz: https://drive.google.com/file/d/1zbHZ...

I am using ROS Kinetic with Ubuntu 16.04 dual-booted on a Dell Inspiron computer.

What am I doing wrong that makes the map appear to not move?

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

answered 2019-04-25 01:12:54 -0500

@danielwu, can you try to add

<param name="use_sim_time" value="true" />

to your launch file. Then, play your rosbag file

 rosbag play --clock newVelo.bag
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2019-04-21 16:40:26 -0500

Seen: 39 times

Last updated: Apr 25