This repo integrates slamtec rplidar LIDARS within Viam's RDK.
It has been tested on the following rplidars:
- Install the rplidar module:
- OSx:
brew tap viamrobotics/brews && brew install rplidar-module
- Linux AArch64 (ARM64) (e.g., on an RPI):
sudo curl -o /usr/local/bin/rplidar-module http://packages.viam.com/apps/rplidar/rplidar-module-latest-aarch64.AppImage sudo chmod a+rx /usr/local/bin/rplidar-module
- Linux x86_64:
sudo curl -o /usr/local/bin/rplidar-module http://packages.viam.com/apps/rplidar/rplidar-module-latest-x86_64.AppImage sudo chmod a+rx /usr/local/bin/rplidar-module
- OSx:
- Run the RDK web server using one of the example config files modules/sample_osx.json or modules/sample_linux.json, depending on your operating system.
Run make install-swig
.
- Build the module:
make build-module
- Run the RDK web server using one of the example config files modules/sample_osx.json or modules/sample_linux.json, depending on your operating system.
RPI (Debian)
- Server:
go run cmd/server/main.go
- Client:
go run cmd/client/main.go
- Script that saves PCD files:
go run cmd/savepcdfiles/main.go -datafolder my_data
macOS
- Find the device path name by following these instructions
- NOTE: It will likely be this path:
/dev/tty.SLAB_USBtoUART
- NOTE: It will likely be this path:
- Server:
go run cmd/server/main.go -device /dev/tty.SLAB_USBtoUART
- Client:
go run cmd/client/main.go -device /dev/tty.SLAB_USBtoUART
- Script that saves PCD files:
go run cmd/savepcdfiles/main.go -device /dev/tty.SLAB_USBtoUART -datafolder my_data
make lint