mavros
-communication with pixhawk4
mocap_optitrack
-read the optitrack datas
offboard
-generate the path and pass to px4
mavlink
-the communication protocol of pixhawk4
cd MaRS_Offboard
catkin build
source devel/setup.bash
roslaunch mocap_optitrack mocap.launch
- open a new terminal and move into MaRS_Offboard directory
source devel/setup.bash
roslaunch mavros px4.launch
- open a new terminal and move into MaRS_Offboard directory
source devel/setup.bash
rosrun offboard offboard_node
after these steps, arm the pixhawk and switch into offboard mode through RC, the UAV will autonomous fly.