cartographer-project / cartographer_turtlebot

Provides TurtleBot integration for Cartographer.
Apache License 2.0
151 stars 96 forks source link

VERY VERY poor quality of map? Please help #70

Closed krishnaallani closed 6 years ago

krishnaallani commented 7 years ago

Hello all,

I recently came across google cartographer for turtlebot and gave it a try. This is the specification of my system:

1) Ubuntu 14.04 2) Turtlebot 3) ROS Indigo 4) Using Kinect 1.0

I collected a data bag using the turtlebot I have and generated a map using demo_lidar_2d.launch. I have modified the launch file so that it listens to right topics. Here is the link to the launch file:

https://drive.google.com/file/d/0B433_L9e51r-dmRZQlItMkR4ODA/view?usp=sharing

Here is the link to the bag file:

https://drive.google.com/file/d/0B433_L9e51r-aHpHbGRuVmxBaDQ/view?usp=sharing

here is the map I got:

screenshot from 2017-08-28 14 57 22

Can someone please help me? I am not able to figure out what I am doing wrong.

Thanks.

krishnaallani commented 6 years ago

@wohe can you help me, please?

wohe commented 6 years ago

I'll be on vacation until October 2. If you still need help by then, I can have a look.

krishnaallani commented 6 years ago

Please take a look once you are back from vacation. Happy vacation!!!

SirVer commented 6 years ago

I looked into your data now. Some assorted comments:

Generally speaking your data is of very poor quality. I suggest you start out by fixing your IMU timing and calibrating your wheel odometry. You will have a much easier time getting good maps then.

You can see the tuning that I did in this branch, it makes the map much better than the one you posted, but still unusable, see screenshot below.

2017-10-17-090841_1918x1123_scrot

krishnaallani commented 6 years ago

Hello @SirVer , Thanks for looking into the problem, I added a few comments:

Generally speaking your data is of very poor quality. I suggest you start out by fixing your IMU timing and calibrating your wheel odometry. You will have a much easier time getting good maps then.

Repeating the same questions at above, what can i do to imprve my sensor data i.e IMU and odom?

Also, Is there any documentation that I can go through to understand what each parameter in the algorithm means?

You can see the tuning that I did in this branch, it makes the map much better than the one you posted, but still unusable, see screenshot below.

I am not very versed with github, i don't know how to make a pull request so I manually changed the files and i got better results. Thank you very much for your help.

SirVer commented 6 years ago

How can i fix my IMU data so that it doesn't jump back in time?

You have to record it properly. It depends entirely on your recording setup, nothing I can help you with.

I am using turtlebot 2.0 and I checked their documentation and they mentioned that their is no need fo any calibration. But I have been using that turtlebot for awhile. If i want to calibrate it how can should i do it?

I'd drive it along a known path that returns to its starting location. Then calculate wheel odometry and optimize the wheel sizes or so. There are papers for wheel odometry calculations too. Again, this is out of scope of Cartographer.

Also, Is there any documentation that I can go through to understand what each parameter in the algorithm means?

there is https://google-cartographer-ros.readthedocs.io/en/latest/tuning.html and https://google-cartographer.readthedocs.io/en/latest/configuration.html, both are still incomplete. The source is the most reliable documentation for now.