BreezySLAM icon indicating copy to clipboard operation
BreezySLAM copied to clipboard

Can I run BreezySLAM from pcap Lidar data.

Open nickponline opened this issue 9 years ago • 8 comments

I have a .pcap file of LIDAR data captured from VLP-16. Can I run BreezySLAM on it?

nickponline avatar Jul 26 '16 18:07 nickponline

Not as its stands. But if you're interested, I can try to write some Python code that'll parse the pcap and run it through BreezySLAM.

simondlevy avatar Jul 26 '16 18:07 simondlevy

That would be really useful. I can provide you with a pcap file if that helps .. What would be required to do this - what format does BreezySLAM expect.

nickponline avatar Jul 26 '16 18:07 nickponline

BreezySLAM only requires a list of millimeter scan distances. It knows how to interpret these because you first instantiate a class representing the parameters of your Lidar (scans per second, readings per scan, scan angle, etc.) If you want, you can also pass odometry values (forward and rotational speed), but it's best to avoid those at first. This example shows how it works with a Hokuyo URG04LX:

https://github.com/simondlevy/BreezySLAM/blob/master/examples/urgslam.py

The Velodyne VLP-16 may be providing more data per scan that BreezySLAM knows how to handle. I'll fool around a little with the PCAP file you posted, to see whether this is the case.

simondlevy avatar Jul 26 '16 21:07 simondlevy

So this PCAP stuff turns out to be nontrivial. This guy's post looks promising, but I was unable to follow it through to an actual usable Python code sample: http://binarymillennium.blogspot.com/2008/08/more-python-pcap-with-pcapy.html

There's also an ROS driver that will read PCAP files containing Velodyne output: http://wiki.ros.org/velodyne_driver

If you can get the PCAP data into a format where there is a sequence of distance values for each successive scan, we can try and write a new BreezySLAM class for the VLP-16. Otherwise I suggest you look into ROS.

simondlevy avatar Jul 26 '16 23:07 simondlevy

Hello nickponline, I would like to know what results you get using a velodyne lidar, if you please. I have been using low cost lidars (rplidar and another home-made-one), and it seems that when the number of points per scan increases, it becomes harder for the algorithm to converge. For example how many points you have per scan, and if it is possible to send an image of the generated map it would be great.

ali-robot avatar Jul 27 '16 17:07 ali-robot

@ALHarake going to work on this over the next few days and then can respond with some data.

nickponline avatar Jul 27 '16 20:07 nickponline

@nickponline great, I'm eagerly waiting the results as buying a velodyne lidar isn't possible.

ali-robot avatar Jul 27 '16 20:07 ali-robot

@simondlevy I am also working with VLP-16 LiDAR. Could you let me know how to write a Laser class for VLP-16, i.e, how do I specify the no of beams and their verticle angle?

@nickponline were you able to get breezySLAM working with VLP-16?

Sanatramesh avatar Mar 08 '18 05:03 Sanatramesh