forked from saulrh/Liberty-Daemon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
81 lines (51 loc) · 2.1 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
OVERVIEW
========
Liberty-Daemon is the daemon process that communicates over USB with
the Polhemus High-Speed Liberty motion tracker and reads data from
the eight sensors and puts them onto the "liberty" ach channel.
The daemon reads position (x, y, z) and rotation (quaternion w, i, j, k).
COMMUNICATION
=============
* Set up for USB (but RS-232 is possible)
PREQUISITES
===========
The following are necessary prerequites to use Liberty:
1. install libusb-1.0.0-dev
`sudo apt-get install libusb-1.0.0-dev`
2. install ach (up-to-date instruction are at http://github.com/golems/ach)
* Add the following to /etc/apt/sources.list (substitute the codename for your distribution in place of squeeze,
e.g. wheezy, precise):
deb http://code.golems.org/debian squeeze golems.org
`sudo apt-get update && sudo apt-get install libach-dev ach-utils`
`sudo dpkg-reconfigure ach-utils`
CLONE THIS REPO
===============
1. Close this Liberty-Daemon repo to your desired location on your computer.
`git clone https://github.com/golems/Liberty-Daemon.git`
INSTALLATION
============
1. go to the Liberty-Daemon directory
`cd Liberty-Daemon`
2. compile libertyd.cpp
`make`
USAGE (Single computer)
=====
1. create an ach channel called 'liberty' ("-o 666" gives permissions)
`ach -C liberty -o 666`
2. run the libertyd executable on the main computer
`sudo ./libertyd`
USAGE (Two computers: from main computer to remote computer)
=====
1. create an ach channel on both computers called 'liberty' ("-o 666" gives sudo permissions)
`ach -C liberty -o 666`
2. run the libertyd executable on the main computer
`sudo ./libertyd`
3. push the data from the liberty channel to the remote computer using "achd" and the ip address of the remote computer
`sudo achd -r push 192.168.1.1 liberty`
QUIRKS
======
- Device takes about ten seconds to initialize after switched on. You
must wait this time before starting the daemon.
- The sensor can only measure a positive displacement in X. DO NOT
BREAK THE YZ PLANE!
- The daemon does not use Euler angles, and you shouldn't either.