Skip to content

Latest commit

 

History

History
67 lines (47 loc) · 1.82 KB

README.rst

File metadata and controls

67 lines (47 loc) · 1.82 KB

Hokuyo LX

A Python module for working with Hokuyo LX laser scanners.

Documentation Status PyPI version MIT License

Introduction

This module aims to implement communication protocol with Hokuyo laser rangefinder scaners, specifically with the following models: UST-10LX, UST-20LX, UST-30LX. It was tested only with UST-10LX but should work with others as well. It's Python 2 and 3 compatible but was mainly tested using Python 3.

For protocol specifications please refer to the following documents:

Installing

You can install hokuyolx using pip:

$ sudo pip install hokuyolx

Or for Python 3:

$ sudo pip3 install hokuyolx

Documentation

View the latest hokuyolx documentation at http://hokuyolx.rtfd.org/.

Usage example

Simple example:

>>> from hokuyolx import HokuyoLX
>>> laser = HokuyoLX()
>>> timestamp, scan = laser.get_dist() # Single measurment mode
>>> # Continous measurment mode
>>> for timestamp, scan in laser.iter_dist(10):
...     print(timestamp)

In addition to it you can view example applications inside examples directory.