artoo-ardrone 1.0.0.pre → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7589a1bb3eda9a42a2379dfe8c46830598c92ce5
4
- data.tar.gz: e828e0273005b701af96b0602d62f7c4c88c3d6b
3
+ metadata.gz: 662857a4aa3a90d614f1585ddb12d898566587ca
4
+ data.tar.gz: b263c084fbac4335c544ea1e80e96a6d3f38fd5b
5
5
  SHA512:
6
- metadata.gz: 5f8362773874b17b647c0f6dce83484d57014a746e5b049182c250392f9c2075d77d1551a17620148f2085b433ee4f2f8d28bab0879263e78847718a7b1aa3bb
7
- data.tar.gz: 22ef1ee72589d71ad1dfb4e2a3ebc7d224e7d6960ae62d76a6c1ae069a9661272218970a46a6ef03b8571845c7a8e717e5b398e6a8bb5dfacba7e7458ac8925f
6
+ metadata.gz: 5d117f4946b046f62a6c68690591c11860f389c398daa8bd195756495ea568e5a4dfd7750d6f061edb449add5cecb6cf0992c4abc35a1db6fff855ce5982e427
7
+ data.tar.gz: 17b3db3f50019b8b2e15d14de0f65cd7dec93435379a029408a3cbb665f31c6b30ce9536147c53709d0e14da7dd539020c6d9a79aaee03a5a228237ab3a64300
data/.gitignore CHANGED
@@ -1,2 +1,3 @@
1
1
  .rvmrc
2
2
  .rbx
3
+ pkg
data/Gemfile.lock CHANGED
@@ -1,24 +1,25 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- artoo-ardrone (1.0.0.pre)
5
- artoo (~> 1.0.0.pre)
6
- hybridgroup-argus (~> 0.3.0)
4
+ artoo-ardrone (1.0.1)
5
+ artoo (~> 1.0.0)
6
+ hybridgroup-argus (~> 0.4.0)
7
7
 
8
8
  GEM
9
9
  remote: http://rubygems.org/
10
10
  specs:
11
- artoo (1.0.0.pre)
12
- celluloid (~> 0.14.0)
13
- celluloid-io (~> 0.14.0)
11
+ artoo (1.0.0)
12
+ celluloid (~> 0.14.1)
13
+ celluloid-io (~> 0.14.1)
14
14
  multi_json (~> 1.6)
15
15
  pry (~> 0.9)
16
16
  rake (~> 10.0)
17
- reel (~> 0.4.pre)
18
- celluloid (0.14.0)
17
+ reel (~> 0.4.0.pre)
18
+ thor (~> 0.18.1)
19
+ celluloid (0.14.1)
19
20
  timers (>= 1.0.0)
20
- celluloid-io (0.14.0)
21
- celluloid (>= 0.13.0)
21
+ celluloid-io (0.14.1)
22
+ celluloid (>= 0.14.1)
22
23
  nio4r (>= 0.4.5)
23
24
  certified (0.1.1)
24
25
  coderay (1.0.9)
@@ -26,28 +27,29 @@ GEM
26
27
  certified
27
28
  http_parser.rb
28
29
  http_parser.rb (0.5.3)
29
- hybridgroup-argus (0.3.0)
30
+ hybridgroup-argus (0.4.0)
30
31
  metaclass (0.0.1)
31
- method_source (0.8.1)
32
+ method_source (0.8.2)
32
33
  minitest (5.0.1)
33
34
  minitest-happy (1.0.0)
34
35
  mocha (0.14.0)
35
36
  metaclass (~> 0.0.1)
36
- multi_json (1.7.3)
37
- nio4r (0.4.5)
37
+ multi_json (1.7.9)
38
+ nio4r (0.5.0)
38
39
  pry (0.9.12.2)
39
40
  coderay (~> 1.0.5)
40
41
  method_source (~> 0.8)
41
42
  slop (~> 3.4)
42
43
  rack (1.5.2)
43
- rake (10.0.4)
44
+ rake (10.1.0)
44
45
  reel (0.4.0.pre)
45
46
  celluloid-io (>= 0.8.0)
46
47
  http (>= 0.2.0)
47
48
  http_parser.rb (>= 0.5.3)
48
49
  rack (>= 1.4.0)
49
50
  websocket_parser (>= 0.1.2)
50
- slop (3.4.5)
51
+ slop (3.4.6)
52
+ thor (0.18.1)
51
53
  timers (1.1.0)
52
54
  websocket_parser (0.1.4)
53
55
  http
data/README.md CHANGED
@@ -1,11 +1,13 @@
1
1
  # Artoo Adaptor For ARDrone
2
2
 
3
- This repository contains the Artoo (http://artoo.io/) adaptor for the ARDrone 2.0 quadcopter.
3
+ This repository contains the Artoo (http://artoo.io/) adaptor for the ARDrone 2.0 quadcopter (http://ardrone2.parrot.com/).
4
4
 
5
5
  Artoo is a open source micro-framework for robotics using Ruby.
6
6
 
7
7
  For more information abut Artoo, check out our repo at https://github.com/hybridgroup/artoo
8
8
 
9
+ The artoo-ardrone adaptor is based on the hybridgroup fork of the argus gem (https://github.com/hybridgroup/argus).
10
+
9
11
  [![Code Climate](https://codeclimate.com/github/hybridgroup/artoo-ardrone.png)](https://codeclimate.com/github/hybridgroup/artoo-ardrone) [![Build Status](https://travis-ci.org/hybridgroup/artoo-ardrone.png?branch=master)](https://travis-ci.org/hybridgroup/artoo-ardrone)
10
12
 
11
13
  ## Installing
@@ -13,3 +15,32 @@ For more information abut Artoo, check out our repo at https://github.com/hybrid
13
15
  ```
14
16
  gem install artoo-ardrone
15
17
  ```
18
+
19
+ ## Using
20
+
21
+ ```ruby
22
+ require 'artoo'
23
+
24
+ connection :ardrone, :adaptor => :ardrone, :port => '192.168.0.43:5556'
25
+ device :drone, :driver => :ardrone, :connection => :ardrone
26
+
27
+ work do
28
+ drone.start
29
+ drone.take_off
30
+
31
+ after(25.seconds) { drone.hover.land }
32
+ after(30.seconds) { drone.stop }
33
+ end
34
+ ```
35
+
36
+ ## Connecting to ARDrone
37
+
38
+ The ARDrone is a WiFi device, so there is no additional work to establish a connection to a single drone. However, in order to connect to multiple drones, you need to perform some configuration steps on each drone via SSH.
39
+
40
+ ## Contributing
41
+
42
+ 1. Fork it
43
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
44
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
45
+ 4. Push to the branch (`git push origin my-new-feature`)
46
+ 5. Create new Pull Request
@@ -19,8 +19,8 @@ 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', '~> 1.0.0.pre'
23
- s.add_runtime_dependency 'hybridgroup-argus', '~> 0.3.0'
22
+ s.add_runtime_dependency 'artoo', '~> 1.0.0'
23
+ s.add_runtime_dependency 'hybridgroup-argus', '~> 0.4.0'
24
24
  s.add_development_dependency 'minitest', '~> 5.0'
25
25
  s.add_development_dependency 'minitest-happy'
26
26
  s.add_development_dependency 'mocha', '~> 0.14.0'
@@ -0,0 +1,12 @@
1
+ require 'artoo'
2
+
3
+ connection :ardrone, :adaptor => :ardrone, :port => '192.168.1.1:5556'
4
+ device :drone, :driver => :ardrone, :connection => :ardrone
5
+
6
+ work do
7
+ drone.start
8
+ drone.take_off
9
+
10
+ after(15.seconds) { drone.hover.land }
11
+ after(20.seconds) { drone.stop }
12
+ end
@@ -1,5 +1,5 @@
1
1
  module Artoo
2
2
  module Ardrone
3
- VERSION = '1.0.0.pre'
3
+ VERSION = '1.0.1'
4
4
  end
5
5
  end
@@ -20,7 +20,7 @@ module Artoo
20
20
  # @return [Boolean]
21
21
  def connect
22
22
  require 'argus' unless defined?(::Argus)
23
- @ardrone = Argus::Drone.new(connect_to_udp, port.host, port.port)
23
+ @ardrone = Argus::Drone.new(socket: connect_to_udp, host: port.host, port: port.port)
24
24
  super
25
25
  end
26
26
 
@@ -11,7 +11,7 @@ module Artoo
11
11
  # @return [Boolean]
12
12
  def connect
13
13
  require 'argus' unless defined?(::Argus)
14
- @ardrone = Argus::NavStreamer.new(connect_to_udp, port.host, port.port.to_i)
14
+ @ardrone = Argus::NavStreamer.new(socket: connect_to_udp, host: port.host, port: port.port.to_i)
15
15
  @ardrone.start
16
16
  super
17
17
  end
@@ -13,7 +13,7 @@ module Artoo
13
13
  # @return [Boolean]
14
14
  def connect
15
15
  require 'argus' unless defined?(::Argus)
16
- @ardrone = Argus::VideoStreamer.new(connect_to_tcp, port.host, port.port)
16
+ @ardrone = Argus::VideoStreamer.new(socket: connect_to_tcp, host: port.host, post: port.port)
17
17
  @ardrone.start(connect_to_udp)
18
18
  super
19
19
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: artoo-ardrone
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.pre
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ron Evans
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-05-24 00:00:00.000000000 Z
12
+ date: 2013-08-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: artoo
@@ -17,28 +17,28 @@ dependencies:
17
17
  requirements:
18
18
  - - ~>
19
19
  - !ruby/object:Gem::Version
20
- version: 1.0.0.pre
20
+ version: 1.0.0
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - ~>
26
26
  - !ruby/object:Gem::Version
27
- version: 1.0.0.pre
27
+ version: 1.0.0
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: hybridgroup-argus
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
32
  - - ~>
33
33
  - !ruby/object:Gem::Version
34
- version: 0.3.0
34
+ version: 0.4.0
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
39
  - - ~>
40
40
  - !ruby/object:Gem::Version
41
- version: 0.3.0
41
+ version: 0.4.0
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: minitest
44
44
  requirement: !ruby/object:Gem::Requirement
@@ -97,6 +97,7 @@ files:
97
97
  - README.md
98
98
  - Rakefile
99
99
  - artoo-ardrone.gemspec
100
+ - examples/ardrone.rb
100
101
  - lib/artoo-ardrone.rb
101
102
  - lib/artoo-ardrone/version.rb
102
103
  - lib/artoo/adaptors/ardrone.rb
@@ -124,9 +125,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
124
125
  version: '0'
125
126
  required_rubygems_version: !ruby/object:Gem::Requirement
126
127
  requirements:
127
- - - '>'
128
+ - - '>='
128
129
  - !ruby/object:Gem::Version
129
- version: 1.3.1
130
+ version: '0'
130
131
  requirements: []
131
132
  rubyforge_project: artoo-ardrone
132
133
  rubygems_version: 2.0.3