Questions tagged [sphero-api]

Sphero API is a set of tools to enable developers to build apps for the Sphero robotic ball.

Sphero API is a set of tools provided by http://www.gosphero.com/ to enable developers to build apps for the Sphero robotic ball.

More information about the API can be found on the developer site:

http://developer.sphero.com/

Where you will find multiple downloads for various platforms and instructions for installing / using them.

Here are some links to help you get started with Sphero.

  • iOS SDK - https://github.com/orbotix/Sphero-iOS-SDK
  • Android SDK - https://github.com/orbotix/Sphero-Android-SDK
  • Unity Plugin - http://u3d.as/content/orbotix-inc-/sphero-unity-plugin/4co
  • Developer Resources - https://github.com/orbotix/DeveloperResources
  • 108 questions
    2
    votes
    0 answers

    Sphero 2.0 Turning in place

    I tried running mRobot.drive(0f, 90f); or RollCommand.SendCommand(mRobot, 90f, 0f); with my sphero 2.0 and it does not move really at all sounds like the motors are trying to twitch but don't. Tried it with a sphero 1.0 and it works fine. Same…
    2
    votes
    1 answer

    How to make the sphero keep rotate on the spot?

    I am new to Sphero development. I saw the app 'Drive' could make Sphero keep rotating before calibration. Anyone have idea how to make it? I tried [RKRollCommand sendCommandWithHeading:90 velocity:0.01f stopped:YES] to adjust the header, but it just…
    2
    votes
    2 answers

    Connecting Sphero 2.0 to Mac OSX 10.9

    I just bought a Sphero 2.0 and I want to connect it to my Mac so I could use the Unity SDK. I cannot seem to connect it via bluetooth on my macbook pro. What do I need to do to get my sphero connected so I could start developing. I have the desktop…
    2
    votes
    1 answer

    Example of orbBasic Indexed User Variables

    I'd appreciate it if an example code could be given using the Z(Y) user variables, as I can't seem to figure out the syntax.
    Si-Malik
    • 49
    • 7
    2
    votes
    1 answer

    How can I emulate 2D collisions in the physical world with Sphero using CollisionDetectedAsyncData?

    I'm using the sphero Android SDK. Consider a breakout clone (like Arkanoid) and how the ball in the 2D game bounces off the lateral edges of the screen and also the top of the screen. I believe that the way it bounces uses basic "reflection" and…
    2
    votes
    1 answer

    Sphero Connecting: Should I call setupRobotConnection and handleRobotOnline in each UIViewController or only once per app?

    I created an iOS app that has 3 Sphero enabled flows. I ended up rewriting setupRobotConnection and handleRobot online in each viewDidLoad then closing the connection in each prepareForSegue method. It works for the most part but the…
    Slomojamma
    • 95
    • 7
    2
    votes
    1 answer

    Autonomous behaviour via Orbbasic or streaming?

    The Orbbasic language is suggested as a good way for kids to have hands on controlling the sphero in this interview. What are the limitations of orbbasic? Does it achieves the same 1ms granularity as macros ? In which range of time granularity…
    2
    votes
    1 answer

    Do you need a Sphero to use the Sphero SDK?

    So I finally found a programmer to program my "Orb Warriors" game idea I had posted on the original Sphero Dev forums a while back. Since I know very little about programming, and will be doing the graphics part of the game, I was wondering will he…
    2
    votes
    1 answer

    Sphero: Asynchronous data streaming of multiple datasets

    I am Developing an App which maps a room by steering a Sphero robot ball along it's edges. For this I need three datasets continously streamed from sphero to the (android) app: Collission detection to detect corners which go "inside" the…
    oxygen0211
    • 98
    • 7
    2
    votes
    2 answers

    Android NullPointerException no line number

    I'm coming from the C++ world and I think i'm missing something when it comes to managed code and android development. It makes sense to separate out all the UI stuff like strings into xml files. But I would expect errors to be caught at build…
    darKoram
    • 1,113
    • 1
    • 14
    • 25
    1
    vote
    0 answers

    Robot-Relative Movement

    By default, Sphero movement commands are user-relative, set by the initial orientation calibration (blue tail light). I have added FPV hardware to one of my Spheros and wish to issue robot-relative movement commands. Seems like this should actually…
    1
    vote
    0 answers

    How to detect Sphero collisions in Unity (for Android) using C#

    I'm new using the Unity-Plugin for the Sphero API, that can be downloaded here: https://github.com/orbotix/UNITY-PLUGIN I understand the examples here, but I don't know how to detect when the Sphero collides? I want to play a sound in the Android…
    Cris
    • 11
    • 1
    1
    vote
    0 answers

    Sphero AR Unity SDK for IOS

    I am currently trying to get the Sphero AR SDK running. I tried it with a various combination of different Xcodes and Unitys and it keeps crashing at the splash screen. So my guess would be that the frameworks are outdated for the newer IOS versions…
    Lyphage
    • 11
    • 3
    1
    vote
    1 answer

    Build error using Parse.framework on iOS

    I try to use parse.framework in my project, so besides added parse.framework I added these as…
    Jay Hu
    • 6,041
    • 3
    • 22
    • 33
    1
    vote
    1 answer

    Using RobotKit/Sphero SDK on iOS

    I try to connect Sphere and drive it thru iPhone. I include ExternalAccessory.framework, Foundation.framework, and RobotKit.framework under Build Phases binary. I have following in ViewController.h #import and I am using…
    Jay Hu
    • 6,041
    • 3
    • 22
    • 33