Slamtec's RPLidar scanner is used in robotics, SLAM and solid modelling 
applications.  It's a small, light and cheap Lidar solution - versions are 
available for about $80.

Slamtec publish what they describe as an SDK.  Strictly it's just a C++ 
library of control methods and a few example applications.

I've written a wrapper for the C++ library that allows you to control the 
scanner from a Go program.  You can find that here: 
https://github.com/goblimey/rplidar_sdk_go.

Slamtec's C++ library is open source and is implemented for Windows, Mac 
and Linux systems.  I've only tested it under Linux so far.  Unfortunately, 
the Windows build requires a particular version of Visual Studio, which was 
a blocker for me.

I used cgo to call the C++ methods from Go.  There is a huge range of C and 
C++ libraries out there, and cgo potentially opens up access to them.  
However, the Slamtec library is not directly compatible with cgo and I had 
to jump through a few hoops to use it.  I describe them in the project 
README.  Anybody planning a similar project may get some useful advice 
there.

Enjoy!

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to