artoo-leapmotion 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +6 -6
- data/README.md +1 -1
- data/artoo-leapmotion.gemspec +3 -3
- data/examples/leap_hands.rb +2 -7
- data/lib/artoo-leapmotion/version.rb +1 -1
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cdcfa679e9c30c0d5e71489195e0ec3c7cbf3d62
|
4
|
+
data.tar.gz: 31896196a3725614be18e60c2b17e363f5886fab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2b61d82ac6af4e83ed49d63ade2f85b6beaba8bbd9050df93757384aee14b0b010037e35c98f78e532bf51004a7c0bd00434052ac3ee3d78314eacb9f0f6e90
|
7
|
+
data.tar.gz: 88f82d63a793e8a7a1e3bd73ff8135b4cd87550c9baade033868a8bc084cae7639086c7a81ef03a49ff9ce0eb0e29cee8b7c33c3e99c40c1ba37c557cd1915e8
|
data/Gemfile.lock
CHANGED
@@ -1,19 +1,19 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
artoo-leapmotion (0.2.
|
5
|
-
artoo (
|
4
|
+
artoo-leapmotion (0.2.1)
|
5
|
+
artoo (>= 1.2.2)
|
6
6
|
hybridgroup-celluloid-websocket-client
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: http://rubygems.org/
|
10
10
|
specs:
|
11
|
-
artoo (1.2.
|
11
|
+
artoo (1.2.2)
|
12
12
|
celluloid (~> 0.15.0)
|
13
13
|
celluloid-io (~> 0.15.0)
|
14
14
|
multi_json (~> 1.6)
|
15
15
|
pry (~> 0.9)
|
16
|
-
rake
|
16
|
+
rake
|
17
17
|
reel (~> 0.4.0)
|
18
18
|
thor (~> 0.18.1)
|
19
19
|
celluloid (0.15.1)
|
@@ -59,6 +59,6 @@ PLATFORMS
|
|
59
59
|
|
60
60
|
DEPENDENCIES
|
61
61
|
artoo-leapmotion!
|
62
|
-
minitest (
|
62
|
+
minitest (>= 5.0)
|
63
63
|
minitest-happy
|
64
|
-
mocha (
|
64
|
+
mocha (>= 0.14.0)
|
data/README.md
CHANGED
@@ -73,4 +73,4 @@ The main steps are:
|
|
73
73
|
|
74
74
|
The normal Windows download of the Leap Motion software from https://www.leapmotion.com/setup should work with Artoo.
|
75
75
|
|
76
|
-
|
76
|
+
We are currently working with the Celluloid team to add Windows support. Please check back soon!
|
data/artoo-leapmotion.gemspec
CHANGED
@@ -19,9 +19,9 @@ Gem::Specification.new do |s|
|
|
19
19
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
20
20
|
s.require_paths = ["lib"]
|
21
21
|
|
22
|
-
s.add_runtime_dependency 'artoo', '
|
22
|
+
s.add_runtime_dependency 'artoo', '>= 1.2.2'
|
23
23
|
s.add_runtime_dependency 'hybridgroup-celluloid-websocket-client'
|
24
|
-
s.add_development_dependency 'minitest', '
|
24
|
+
s.add_development_dependency 'minitest', '>= 5.0'
|
25
25
|
s.add_development_dependency 'minitest-happy'
|
26
|
-
s.add_development_dependency 'mocha', '
|
26
|
+
s.add_development_dependency 'mocha', '>= 0.14.0'
|
27
27
|
end
|
data/examples/leap_hands.rb
CHANGED
@@ -13,15 +13,10 @@ def on_open(*args)
|
|
13
13
|
puts args
|
14
14
|
end
|
15
15
|
|
16
|
-
def on_hand(
|
17
|
-
hand
|
18
|
-
puts "#{scale_to_servo(hand.palm_x, -200, 200)},#{scale_to_servo(hand.palm_y, -130, 130)}" if hand
|
16
|
+
def on_hand(sender, hand)
|
17
|
+
puts "#{hand.palm_x},#{hand.palm_y},#{hand.palm_z}" if hand
|
19
18
|
end
|
20
19
|
|
21
20
|
def on_close(*args)
|
22
21
|
puts args
|
23
22
|
end
|
24
|
-
|
25
|
-
def scale_to_servo(val, min, max)
|
26
|
-
(((val - min) / (max - min)) * 180).ceil
|
27
|
-
end
|
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: artoo-leapmotion
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ron Evans
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-09-
|
11
|
+
date: 2013-09-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: artoo
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - '>='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.2.
|
19
|
+
version: 1.2.2
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - '>='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 1.2.
|
26
|
+
version: 1.2.2
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: hybridgroup-celluloid-websocket-client
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -42,14 +42,14 @@ dependencies:
|
|
42
42
|
name: minitest
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - '>='
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '5.0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - '>='
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '5.0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
@@ -70,14 +70,14 @@ dependencies:
|
|
70
70
|
name: mocha
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - '>='
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: 0.14.0
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- -
|
80
|
+
- - '>='
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: 0.14.0
|
83
83
|
description: Artoo adaptor and driver for Leap Motion
|