BBBSnowball / ld06_lidar

ROS1 package for LDRobotic LD06 Lidar

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LD06 Lidar demo in Python

This is based on a fork of the ROS driver but it doesn't use ROS.

Quick start:

  1. Install gcc, make, pyserial and tkinter, e.g. run nix-shell.
  2. Build the native library: make
  3. Start the Python script: python3 ld06.py

If your LD06 is not at dev/ttyUSB0, you have to edit this in the Python script.

Screenshot

Why?

I want to test my LD06 on my desktop because I don't have the Raspberry Pi, yet. The build instructions for ROS start by installing multiple things from custom APT repositories (and I couldn't find any documentation for building those) so I don't think I could have installed it on NixOS in reasonable time. Writing the Python script was easier.

About

ROS1 package for LDRobotic LD06 Lidar


Languages

Language:C++ 82.7%Language:Python 14.8%Language:Nix 2.2%Language:Makefile 0.3%