README.md 1.2 KB
Newer Older
Simon Markus Haller-Seeber's avatar
Simon Markus Haller-Seeber committed
1
# Sphero RVR
2
3


Simon M. Haller-Seeber's avatar
Simon M. Haller-Seeber committed
4
5
6
7
This ros modules contain an experimental ROS Node for the Sphero RVR.
The cpp version is based on Rud Merriam's "RVR CPP" https://bitbucket.org/rmerriam/rvr-cpp/src/master/ (see sphero_rvr_hw/src/base_controller.cpp). The python(3) version is based on the official Sphero RVR Pyhton SDK (see sphero_rvr_hw/scripts/rvr-ros.py)
Both version use /cmd_vel and publish to odom.
There is still no real ros_control package (the stubs are already there - see sphero_rvr_hw/src/sphero_rvr_*).
8

Simon Markus Haller-Seeber's avatar
Simon Markus Haller-Seeber committed
9
## Startup
10

Simon Markus Haller-Seeber's avatar
Simon Markus Haller-Seeber committed
11
12
13
14
15
16
17
18
19
20
21
22
23
- Make sure that the robot is turned on
- To run the python version
 ```
 source ~/minibot/catkin_ws/devel.setup.bash
 roscore &
 python3 ~/minibot/catkin_ws/src/sphero_rvr/spehro_rvr_hw/scripts/rvr-ros.py
 ```
- To run the cpp version 
 ```
 source ~/minibot/catkin_ws/devel.setup.bash
 catkin build
 roslaunch sphero_rvr_hw rvr_ros.launch
 ```
Simon Markus Haller-Seeber's avatar
Simon Markus Haller-Seeber committed
24

Simon Markus Haller-Seeber's avatar
Simon Markus Haller-Seeber committed
25
26
27
28
29
30
- To load the urdf (depending on what you want to do)
 ```
 source ~/minibot/catkin_ws/devel.setup.bash
 roslaunch sphero_rvr_descritipon display.launch
 # or roslaunch sphero_rvr_descritipon sphero_rvr.launch
 ```
31

Simon Markus Haller-Seeber's avatar
Simon Markus Haller-Seeber committed
32
33
34
35
36
## Moving the robot
- To move the robot publish on /cmd_vel (for testing you could use rqt)
- odom is updated by both the c++ and the python version