Coder Social home page Coder Social logo

xv11_lidar_python's Introduction

ROS 2 Driver for XV-11 Lidar

This is a reimplementation of existing XV-11 drivers (credit to this, firmware=2) in python for use in ROS 2, called xv11_lidar_python.

This driver works well for a broad range of vacuum robot lidars, which are cost efficiently available.

Usage

The common pinout of these chinese lidars are usually as follows:

drawing

It is confirmed to be for working for Xiaomi Lidars (S7, S70, S75) and probably many more. Let me know if it worked for your model, so the list can be updated!

Install

Place this repository in your colcon_ws workspace

cd ~/colcon_ws/src
git clone <this-repository>
cd ..
colcon build

Once it has been made and registered by sourcing it to your environment you may run it as follows:

The following ROS2 parameters are defaulted as below and can be set using parameters

port              /dev/ttyXV11
frame_id          xv11_lidar
range_min         0.06
range_max         13.0

Run the driver and it should generate scan data on topic /scan

ros2 run xv11_lidar_python xv11_lidar

Run the driver using a different port and frame_id

ros2 run xv11_lidar_python xv11_lidar --ros-args -p port:=/dev/ttyAMA0 -p frame_id:=xiaomi_lidar

If all goes well this will produce messages of type LaserScan on topic /scan.

❤️ Credits and many thanks to

https://wiki.recessim.com/view/Xiaomi_Roborock_LIDAR

https://wiki.recessim.com/view/Neato_XV-11#LIDAR_Sensor

https://github.com/mjstn/xv_11_driver

https://notblackmagic.com/bitsnpieces/lidar-modules/

xv11_lidar_python's People

Contributors

n1kn4x avatar

Stargazers

 avatar Nathan Lewis avatar  avatar  avatar Yasin Yağın avatar Lapin Boris S. avatar Lou avatar  avatar Fabse avatar

Watchers

 avatar

Forkers

morrieg

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.