Skip to content

10.1 SITL core

terrytaylorbonn edited this page Jun 24, 2024 · 2 revisions

24.0624

(24.0508 was "Total sim P1 core")

The Gdrive document 10.1_(1.1)_sim-all_core_v49_24.0215.docx shows how to set up the basic core Gazebo world/drone simulation in Linux (old versions of this doc with a lot of mistakes, testing data, etc, are in dir /old). Below left shows the flying sim copter with sim camera, and below right is the camera view (the brown box is a book shelf). All screenshots in P1-P4 are from my PC.

image

The following diagram shows the components . These are described in more detail in the docx (24.0214). (need to combine these 2 diagrams)

image image

The numbers in the diagram above refer to the youtube video numbers:

  • Video 02: SITL, Mavproxy. @300 Clone SITL, dependencies, @530 install future, pymavlink, Mavproxy (GCS). bashrc. @700 build arducopter. @800 run sitl.
  • Video 03: Install QGC (QGroundControl, used to display flight path (no Gazebo installed yet). Not really needed here.. use console map @110 download, chmod and run. @300 start SITL. autoconnected. add waypoint. upload and fly.
  • Video 04: Install Gazebo (includes APM (ArduPilot MavROS? plugin ==) and Camera. ROS Plugin installed later??? @100 get gazebo keys, download, install. @215 clone gazebo plugin (to AP). make, install. @420 bashrc. @450 run gazebo. @510 run sitl. @600 mavproxy takeoff.
  • Video 05: Install ROS (includes MavROS, mavlink). @030 install ros (sources, keys, install). desktop full. @200 init rosdep, env update. build packages dependencies. @320 install catkin. dir. dependencies. Install mavros, mavlink (wstool, catkin build, etc). bashrc. @540 clone iq_sim ROS package. @610 again catkin build.
  • Video 06: Ros intro. @100 install ros plugins (already in desktop). @150 roslaunch iq_sim runway.launch. @230 startsitl.sh. @345 rostopic list. rostopic echo. @520 takeoff, see rostopics. @850 launch mavros (roslaunch iq_sim apm.launch). rostopic list (has mavros topics, from fc). rostopic echo. rostopic list -v. rosmsg show (structure).
  • Video 09: Mavproxy commands. @000 mode guided, arm throttle, takeoff 3. pos 30 0 0 (ned). @200 params. WPNAV_. speed, accel. param show WPNAV_SPEED (cm/sec). param set WPNAV_SPEED 100. pos 30 0 0. @345 setyaw 50 10 1 (degrees, per/sec, relative). @500 RTL_ params. mode rtl. @700 list of commands.
  • Video 10: Gazebo modelling. @30 mercurial. clone gazebo models from osrf. add path to bashrc,source. @140 create hills.world. @250 create hills.launch. @310 roslaunch iq_sim hills.launch. #335 add models to world (hills, drone, standing person, truck). save.

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