cartographer-project / cartographer_ros

Provides ROS integration for Cartographer.
Apache License 2.0
1.66k stars 1.21k forks source link

2D SLAM with Neato LIDAR #254

Closed bliebman closed 7 years ago

bliebman commented 7 years ago

Hi,

I'm currently working on a project where are using a Neato (XV-11) LIDAR sensor for 2D SLAM with cartographer_ros. We have attempted to encode the output from the LIDAR into sensor_msgs/LaserScan messages as input to Cartographer, but the rviz output looks like scattered lines with no loop closure.

My question is, how would you recommend we encode the data into the messages? The LIDAR sensor provides serial output at 4 degrees of distance measurement at a time. Should we populate LaserScan "echoes" with the 4 distances/intensities and send 90 messages with each revolution of the sensor?

Thanks!!!

kentsommer commented 7 years ago

@bliebman

Standalone XV-11 Laser over USB with ROS

If you are using the laser standalone (USB) without the rest of the Neato robot I suggest you take a look at this driver (officially supported up to Indigo but shouldn't be too much work to port to Kinetic if you need): http://wiki.ros.org/xv_11_laser_driver

Tutorial on how to use the above driver can be found here: http://wiki.ros.org/xv_11_laser_driver/Tutorials/Running%20the%20XV-11%20Node

Full Neato Robot Setup with ROS

However, if you are running the full Neato robot you are better off going with this setup which will supply not only the laser scan topic you want but everything else for the Neato robot as well: https://github.com/jmtatsch/neato_robot

Possibly helpful tutorial for Neato running on Indigo can be found here: http://servo.texterity.com/servo/201412/?folio=42&pg=42#pg42

SirVer commented 7 years ago

It sounds to me like you are unsure about how to construct a laserfan from your neato data, which is not a Cartographer related problem. @kentsommer's reply contains every information I could provide either, so I am closing this.

If you believe this is related to Cartographer, please reopen and attach a few screenshots from rviz showing your lasers fans and Carto results.