/SpheroMATLAB

Control Sphero from MATLAB in m-code!

Primary LanguageMATLAB

Sphero API MATLAB SDK

Control Sphero from MATLAB in m-code!

Sphero API MATLAB SDK is also available on MathWorks File Exchange here.

Description

This project provides a few Matlab classes that can be used to control Sphero from Matlab in m-code. Check out the Sphero website for more information about Sphero, the robotic ball.

The base class, SpheroCore:

  • Provides a Matlab interface to Sphero through the Bluetooth object of the Instrument Control Toolbox
  • Implements the low-level Sphero API (see attached pdf)
  • Manages Sphero's state

The interface class, SpheroInterface (inherits from SpheroCore):

  • Adds application-layer functionality to SpheroCore
  • Overloaded Roll method uses right-handed coordinates
  • Wrappers for Roll and Configure Locator allow easy correspondence between Roll and Locator coordinate systems

The class, Sphero (inherits from SpheroInterface):

I've included some examples and graphical user interfaces for inspiration. Future development including bug-fixes, feature extensions, and even custom-tailored examples will be heavily motivated by user comments and ratings!

For more information about how this code communicates with Sphero, stop by my wiki to browse through Sphero API Tutorial and Sphero API MATLAB SDK.