Skip to content

10.2 SITL cpp mission as ROS node

terrytaylorbonn edited this page Jun 24, 2024 · 3 revisions

24.0624

(24.0508 was "Total sim P2 ROS")

The Gdrive document 10.2_(1.2)_sim-all_ros_node_mission_v44_24.0215.docx (draft) shows how to write a C++ program 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

(8a) AI Nano PX4

(8b) AI Nano AP

(8c) AI PI PX4

(8d) AI PI AP


EPIC 4 – Advanced AI

(9a) SIH (frame+world sim)

(11) FC FW Mavlink API (via CC/GCS APIs) (5.3)

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


EPIC 5 – Advanced platforms

(14) Firmware dev (5)

(15) Mission platforms (6b)

(16) Special projects (5.6,5.5)


EPIC 6 – PITS (Pie in the sky)

(9b) HITL (frame+world sim)

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

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

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



Clone this wiki locally