ROS在机器人领域很厉害,国外朋友使用一个crazyradio同时采集多个crazyflie1.0和crazyflie2.0,而且开源所有ROS文件,给力!之前没有对ROS学习,所以这里仅仅是运行了下这个功能,简单步骤如下:
1,Install ROS(version indigo)
$ sudo apt-get install ros-indigo-desktop-full
then need some init and setup,please see http://wiki.ros.org/indigo/Installation/Ubuntu
2,Create a ROS Workspace(catkin workspace)
$ mkdir -p ~/catkin_ws/src
$ cd ~/catkin_ws/src
$ catkin_init_workspace
$ cd ~/catkin_ws/
$ catkin_make
$ source devel/setup.bash
$ echo $ROS_PACKAGE_PATH
/home/youruser/catkin_ws/src:/opt/ros/indigo/share:/opt/ros/indigo/stacks
please see: http://wiki.ros.org/ROS/Tutorials/InstallingandConfiguringROSEnvironment
3,control two crazyflie2.0
$ cd ~/catkin_ws/sr