ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

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

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

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

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

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

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


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 image gvdhoorn  ( 2017-09-06 08:46:34 -0500 )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 image kaviranga  ( 2017-12-20 10:19:01 -0500 )edit

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

kaviranga gravatar image kaviranga  ( 2017-12-20 10:20:31 -0500 )edit

Question Tools



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

Seen: 846 times

Last updated: Sep 06 '17