Sphero API MATLAB SDK

Control Orbotix Sphero from Matlab in m-code!
456 Downloads
Updated 26 Nov 2016

Control Sphero from MATLAB in m-code!

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.

Check out this Preview video on YouTube to see what this package can do,
https://www.youtube.com/watch?v=YohxMa_z4Ww

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):

Adds backwards compatibility with Yi Jui's Sphero MATLAB Interface
Wrapper for Roll allows for use of Yi Jui's roll method among others http://www.mathworks.com/matlabcentral/fileexchange/48359-sphero-matlab-interface
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.

Cite As

Mark Tomaszewski (2024). Sphero API MATLAB SDK (https://github.com/mark-toma/SpheroMATLAB), GitHub. Retrieved .

MATLAB Release Compatibility
Created with R2011b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Optimization Toolbox in Help Center and MATLAB Answers
Acknowledgements

Inspired by: Sphero MATLAB Interface

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Versions that use the GitHub default branch cannot be downloaded

Version Published Release Notes
2.1.0.0

Updates to v2.1, Changes log properties to row vector samples

2.0.0.0

Repairs missing description
Fixed the title
New major release; moved source to GitHub repo; some breaking changes; some new features; see GitHub repo commits for more info

1.0.1.0

only modified description; added new link to wiki docs; added link to sphero web; minor formatting
added preview video

1.0.0.0

Removed some folders listed in "MATLAB Search Path" to reduce clutter in file preview pane; Noticed that I have a typo in the "SpheroCore" directory name; Updated "Other Requirements" with system hardware (BT) and Matlab Bluetooth object dependencies

To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.