1.2 Sim AP cpp mission as ROS node - terrytaylorbonn/auxdrone GitHub Wiki

(24.0508 was "Total sim P2 ROS")

The Gdrive document 1_sim-all_P2_ros_node_mission_.docx (draft) shows how to write program C++ that becomes a ROS node and sends mission commands to FC via MavROS.

In the diagram below:

  • Video 07: Create ROS node code. @100 catkin dirs in sublime. @140 clone iq_gnc (his api). @210 Add to CMakeLists.txt. square.cpp. (just use gnc_tutorial.cpp, completed version). Creates the ROS node that sends ROS commands to MAVROS (MAVROS sends Mavlink commands to FC). @850 catkin build. source bashrc. @930 startup sequence 1 Roslaunch iq_sim runway.launch (starts GAZ and the non-existent ROS master) 2 startsitl.sh 3 roslaunch iq_sim apm.launch (MavROS) 4 rosrun iq_gnc square.cpp @1135 takeoff.

  • Video 08: Create ROS node mission code. .cpp code that runs a mission.

I will add the port numbers later.

image image image