Skip to content

nus/pyURG

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

# What is pyURG?
pyURG is a library for using Hokuyo-URG laser range sensor in Python.

# How to use
$ python
Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56) 
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyurg              # inport this library
>>> urg = pyurg.UrgDevice()   # for Initializing
>>> urg.connect()             # connect to the URG device
True
>>> data, timestamp = urg.capture() # get length datas and timestamp
>>> data  # print length datas
[-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 117, 117, 118, 119, 118, 120, 120, 120, 116, 120, 117, 118, 117, 
117, 117, 118, 119, 120, 120, 120, 120, 127, 2413, 2413, 2413, ...  111, 111, 113, 113, 113, 113, 114, 112]

About

Hokuyo-URG Laser Range Sensor in Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages