- ManualDrive()
- GetMCUReport()
- GetImage()
- Create a rovio_ws workspace for catkin
mkdir -p ~/rovio_ws/src
cd ~/rovio_ws/src
catkin_init_workspace
cd ~/rovio_ws/
catkin_make
source devel/setup.bash (To make sure the workspace is in your ROS environment variable)
- Copy the rovio_base package to ~/rovio_ws/src/
- Build the workspace
cd ~/rovio_ws/
catkin_make
- run the node of rovio_base, roslaunch the Server
roslaunch rovio_base rovioServer.launch
The Rovio WowWee would head middle and head down, and you would view the images from camera 2 seconds.
- Copy the rovio_test package to ~/rovio_ws/src/
- Build the workspace
cd ~/rovio_ws/
catkin_make (if you get the error tell you "rovio_base/manDrv.h: No file or directory", Please source ~/rovio_ws/setup.bash)
The Rovio WowWee would avoid the obstacle and keep moving.
- Copy the obstacle_avoidence package to ~/rovio_ws/src/
- Build the workspace
cd ~/rovio_ws/
catkin_make (if you get the error tell you "rovio_base/manDrv.h: No file or directory", Please source ~/rovio_ws/setup.bash)
The Rovio WowWee could be controlled by keyboard.
- Copy the rovio_keyboard package to ~/rovio_ws/src/
- Build the workspace
cd ~/rovio_ws/
catkin_make (if you get the error tell you "rovio_base/manDrv.h: No file or directory", Please source ~/rovio_ws/setup.bash)
- run the follow commands in three terminals respectively
roscore
roslaunch rovio_base rovioService.launch
rosrun rovio_test rovioTest
(rosrun obstacle_avoidence obstacleAvoidence)
(rosrun rovio_keyboard roviokeyboard)
This work would be impossible without the excellent open source projects:
- Rovio WowWee API document
- The driver and based on ROS by yuanboshe
- The package of obstacle avoidence by yuanboshe
- 张子洋: [email protected]
Cheers! :panda_face: