Skip to content

1.2 Sim AP cpp mission as ROS node

terrytaylorbonn edited this page May 13, 2024 · 1 revision

(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

Home

Getting into the air ASAP

(0) Reference


EPIC 1 - Build/fly FPV drone

(1) FPV simulators (inav notes 0608)

(2) SBeeF405/INAV (1a)

(3) SBeeF405/BF (1b)

(4) SBeeF405/AP (1c)


EPIC 2 - Build/fly Pixhawk drone

(5) Pix6c/PX4 (2a)

(6) Pix6c/AP (2b)


EPIC 3 - Add AI to Pixhawk drone

(7) AI cc + cam

(8) AI CC+FW

(9a) SIH (frame+world sim)


EPIC 4 – Basic Autonomy

(13) CC AI (+ Mavlink) (2)

(11) FC_Mavlink_API (via CC/GCS APIs) (5.3)

(13c) CC autonomy algorithms


EPIC 5 – Advanced Autonomy

(20) Kalman KK (+Python,vectornav)

(14) Firmware dev (5)

(22) AI


EPIC 6 – Project management 24.0903


EPIC 7 – Mission platforms / special projects

(15) Mission platforms (6b)

(16) Special projects (5.6,5.5)


EPIC 8 – PITS (Pie in the sky)

(12) ROS (+ROSMAV) (was E4)

(14b) Matlab (was E5/4(HITL))

(9b) HITL (frame+world sim)

(10) (skip) SITL (total sim) (1) (was E4)

Clone this wiki locally