sphero_ros contains several packages for controlling and using a sphero with ROS.
Already familiar with ROS and want to get started?
Follow the regular groovy ROS installation instructions:
http://www.ros.org/wiki/groovy/Installation/Ubuntu
Then install sphero_ros:
sudo apt-get install ros-groovy-sphero-bringup
Make sure that the Sphero firmware is up to date. Currently sphero_ros supports firmware 1.20 or later. There currently isn’t a version check in the driver but anyone is welcome to contribute!
Since Sphero has a PIN, the first step is to setup a new bluetooth device.
Now start the Sphero node:
rosrun sphero_node sphero.py
You should see:
Searching for devices............
Found Sphero device with address: XX:XX:XX:XX:XX:XX
Paired with Sphero.
Your Sphero will turn GREEN.
If the pairing process fails, you will see:
[ERROR] [WallTime: 1363235908.174193] Failed to connect to Sphero.
Now that you have confirmed that the sphero_node starts properly, run the launch file that loads the URDF and brings up robot_pose_ekf and robot_state_publisher:
roslaunch sphero_bringup sphero.launch
Your Sphero will turn GREEN.