GithubHelp home page GithubHelp logo

artoo-sphero's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

artoo-sphero's Issues

jruby - artoo connect serial not listening on port

Hi there,

thanks for making artoo. I got a sphero and today I wanted to play with it a bit from ruby. I got jruby-1.7.6 and I tried following the guide but things didn't work as they should.

I'm running Linux Mint Debian Edition latest Update Pack.

Basically it seems to me that the artoo connect serial command does not actually result in something listening on that port. I'll give you my basic shell output:

tobi@speedy:~$ cd github/shoes-artoo/
tobi@speedy:~/github/shoes-artoo$ artoo connect scan
         run  hcitool scan from "."
Scanning ...
    68:86:E7:00:3D:BE   Sphero-OYP
tobi@speedy:~/github/shoes-artoo$ artoo connect bind 68:86:E7:00:3D:BE Sphero-OYP
         run  sudo rfcomm -i hci0 bind /dev/rfcomm0 68:86:E7:00:3D:BE 1 from "."
[sudo] password for tobi: 
         run  sudo ln -s /dev/rfcomm0 /dev/Sphero-OYP from "."
tobi@speedy:~/github/shoes-artoo$ artoo connect serial Sphero-OYP 8023
         run  sudo chmod a+rw /dev/Sphero-OYP from "."

Exception: java.lang.ThreadDeath thrown from the UncaughtExceptionHandler in thread "Thread-17"
         run  socat -d -d FILE:/dev/Sphero-OYP,nonblock,raw,b57600,echo=0 TCP-LISTEN:8023,fork from "."
tobi@speedy:~/github/shoes-artoo$ netstat -a | grep 8023
tobi@speedy:~/github/shoes-artoo$ ruby try.rb 
I, [2013-11-08T00:56:46.400000 #4674]  INFO -- : Registering connection 'sphero'...
I, [2013-11-08T00:56:46.407000 #4674]  INFO -- : Registering device 'sphero'...
hereeee
I, [2013-11-08T00:56:46.410000 #4674]  INFO -- : Preparing work...
I, [2013-11-08T00:56:46.438000 #4674]  INFO -- : Initializing connection sphero...
I, [2013-11-08T00:56:46.490000 #4674]  INFO -- : Initializing device sphero...
I, [2013-11-08T00:56:46.537000 #4674]  INFO -- : Starting work...
I, [2013-11-08T00:56:46.540000 #4674]  INFO -- : Connecting to 'sphero' on port '127.0.0.1:8023'...
E, [2013-11-08T00:56:46.616000 #4674] ERROR -- : Connection refused
E, [2013-11-08T00:56:46.617000 #4674] ERROR -- : Artoo::Adaptors::Sphero crashed!
Java::JavaNet::ConnectException: Connection refused
(snipppp)

When I rerun artoo connect serial Sphero-OYP 8023 it just does:

tobi@speedy:~/github/shoes-artoo$ artoo connect serial Sphero-OYP 8023
         run  sudo chmod a+rw /dev/Sphero-OYP from "."
         run  socat -d -d FILE:/dev/Sphero-OYP,nonblock,raw,b57600,echo=0 TCP-LISTEN:8023,fork from "."

But yeah. still no effect.

Ah yes, try.rb is the sample from the guide e.g. the connection code is:

require 'artoo'

connection :sphero, :adaptor => :sphero, :port => '127.0.0.1:8023'
device :sphero, :driver => :sphero

So yes, 8023 is the right port :-)

Help? =D

Cheers,
Tobi

PS: Oh btw. I got sphero 2.0

How do we orient the Sphero?

In the iPhone app, there's an option to orient the Sphero to where you're currently standing. How do we know which direction it's going in?

undefined method `configure_collision_detection'

Exception: undefined method `configure_collision_detection' for #Celluloid::WebSocket::Client::Connection:0x007fb3fb89fad8

I'm assuming with celluloid in the call stack that this is the correct repo :)

$ artoo connect socat 4560 tty.Sphero-RRB
         run  socat -d -d FILE:/dev/tty.Sphero-RRB,nonblock,raw,echo=0 TCP-LISTEN:4560,fork from "."
2013/08/26 15:27:53 socat[10071] N opening character device "/dev/tty.Sphero-RRB" for reading and writing
2013/08/26 15:27:55 socat[10071] N listening on LEN=16 AF=2 0.0.0.0:4560

In another tab, I run:
https://gist.github.com/whoisjake/6e93cbd45a515d000d35

and

I get this: https://gist.github.com/whoisjake/5edbace26a33fd1bafc9

License missing from gemspec

RubyGems.org doesn't report a license for your gem. This is because it is not specified in the gemspec of your last release.

via e.g.

spec.license = 'MIT'
# or
spec.licenses = ['MIT', 'GPL-2']

Including a license in your gemspec is an easy way for rubygems.org and other tools to check how your gem is licensed. As you can image, scanning your repository for a LICENSE file or parsing the README, and then attempting to identify the license or licenses is much more difficult and more error prone. So, even for projects that already specify a license, including a license in your gemspec is a good practice. See, for example, how rubygems.org uses the gemspec to display the rails gem license.

There is even a License Finder gem to help companies/individuals ensure all gems they use meet their licensing needs. This tool depends on license information being available in the gemspec. This is an important enough issue that even Bundler now generates gems with a default 'MIT' license.

I hope you'll consider specifying a license in your gemspec. If not, please just close the issue with a nice message. In either case, I'll follow up. Thanks for your time!

Appendix:

If you need help choosing a license (sorry, I haven't checked your readme or looked for a license file), GitHub has created a license picker tool. Code without a license specified defaults to 'All rights reserved'-- denying others all rights to use of the code.
Here's a list of the license names I've found and their frequencies

p.s. In case you're wondering how I found you and why I made this issue, it's because I'm collecting stats on gems (I was originally looking for download data) and decided to collect license metadata,too, and make issues for gemspecs not specifying a license as a public service :). See the previous link or my blog post aobut this project for more information.

Support of MS-Windows

Hi.

What is the status about a setup for MS-Windows?
We would like to train kids on Artoo with Sphero, but available desktops we have are installed on MS-Windows.
Thanks.

More object oriented API? (Documentation)

Hi all,

I would love it if there were some docs for a more object oriented API for the sphero. I think the possibility is there it's just hard to find it I guess (just read the code for like 30 minutes). If it's not there I'd love to have such an API.

I'm looking for something that's more like:

my_sphero = Artoo::Sphero.new '127.0.0.1:4567'
my_sphero.roll 60, 70

Not only that I think that it's a cool API, but I try to use my sphero from inside a shoes4 app, which instance_evals a block of code... so getting all the methods to work is kind of hard. Extending Artoo::Delegator made the method calls (device, connect, work...) possible but somehow processing does not start... e.g. my sphero actually does nothing when I say roll or set_color (it's connected etc.). Maybe it's some kind of threading issue (there is like a main GUI thread that waits for events which I start, it's JRuby though so multiple threads are possible) - the sphero just reports being started after I kill the app.

Anyhow, I'm positive that it can work as a friend of mine got shoes4 running with the artoo AR drone.

Just the sphero gem looks a bit more like what I want to do (at least the docs there) API wise and I know that it's a dependency of this gem so something should be there. However I'm confused about what artoo-sphero adds to that...

Help would be highly appreciated!

Ruby on Robots!
Tobi

Trouble with Artoo Sphero and OSX

Hi

I've just discovered Artoo and the support of the Sphero 2.
I'm new in Ruby and Sphero.
I'm using a Mac OSX (10.9.5), Ruby 2.1.3.
The pairing of the Sphero works even if the connection failed to keep alive.
I tried to upload a sample app to the Sphero using the description from the Artoo's website. No success.
I have used the MultiCom application.
The problem I have is that the sample application freezes on:
Connecting to 'sphero' on port '/dev/tty.Sphero-RPR-AMP-SPP'...
I probably missed some steps.
Do you have some step by step process to setup my OSX platform from scratch with Artoo and Sphero ?

Thanks for your help

Said

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.