Ask Your Question
0

How to use i2c port based lidar scanner to get laser data to ros ?

asked 2017-09-06 02:32:07 -0600

updated 2017-09-06 02:35:46 -0600

I have a garmin lidar lite v3 sensor attached to the i2c port of the beagle bone black that running ros on ubuntu. Is there any implementation on i2c port instead of serial port to get laser data for ros. Because many examples for serial laser data scanners not for i2c interface based lidar scanner .

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2017-09-06 06:27:29 -0600

I'm not aware of any. The lidar-lite-ros-scanner-driver appears to use an Arduino that performs the i2c interfacing and then data is transmitted to a ROS PC via USB (Serial). There is code for interfacing the sensor via a Pi out there (Python code here for instance), so if you want to interface directly, you might have to write some code yourself.

edit flag offensive delete link more

Comments

I think I'd agree with Stefan: this is not a common thing, as most of the time ROS nodes will not interface with I2C buses directly. If you're lucky the serial port access will be abstracted enough in existing nodes so you can replace it with a (buffered) I2C wrapper class.

gvdhoorn gravatar imagegvdhoorn ( 2017-09-06 08:46:34 -0600 )edit

@gvdhoorn Finally I found that ! . This is a working example of lidar lite wrapper class for ros laser node . This example for hector-slam and they have included their partial-research paper with this repository.

kaviranga gravatar imagekaviranga ( 2017-12-20 10:19:01 -0600 )edit

@Stefan Kohlbrecher@gvdhoorn This i2c wrapper written in c language. hector-slam-wreck .

kaviranga gravatar imagekaviranga ( 2017-12-20 10:20:31 -0600 )edit

Your Answer

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

Add Answer

Question Tools

3 followers

Stats

Asked: 2017-09-06 02:32:07 -0600

Seen: 593 times

Last updated: Sep 06 '17