-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathREADME
17 lines (16 loc) · 868 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# 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]