Difference between revisions of "Day 1"

From Bambi
Jump to: navigation, search
 
(2 intermediate revisions by the same user not shown)
Line 3: Line 3:
 
Installation of ROS Kinetic + Gazebo was already done (apt **-full**)
 
Installation of ROS Kinetic + Gazebo was already done (apt **-full**)
  
== General Structure Overview ==
 
 
[[File:px4_sitl_overview.png|920px]]
 
 
Taken from [https://dev.px4.io/en/simulation/#sitl-simulation-environment https://dev.px4.io/en/simulation/#sitl-simulation-environment].
 
  
 
== Guide for PX4 SITL + Gazebo ==
 
== Guide for PX4 SITL + Gazebo ==
Line 14: Line 9:
 
# QtCreator: we used [https://dev.px4.io/en/setup/building_px4.html#qt-creator-on-linux https://dev.px4.io/en/setup/building_px4.html#qt-creator-on-linux] that checkout needed gazebo sitl files
 
# QtCreator: we used [https://dev.px4.io/en/setup/building_px4.html#qt-creator-on-linux https://dev.px4.io/en/setup/building_px4.html#qt-creator-on-linux] that checkout needed gazebo sitl files
 
# <code>make posix_sitl_default gazebo</code> executed in <code>~/src/Firmware</code> launches gazebo and px4 sitl with the default iris model
 
# <code>make posix_sitl_default gazebo</code> executed in <code>~/src/Firmware</code> launches gazebo and px4 sitl with the default iris model
 +
# Init script for px4 console which configures also mavlink, is found under <code>%Firmware%/posix-configs/SITL/init/ekf2/iris</code>
 +
 +
== Gazebo World ==
 +
 +
Followed the following tutorial to get a simple gazebo world with 2D ground plane image. [http://gazebosim.org/tutorials?tut=static_map_plugin&cat=build_world http://gazebosim.org/tutorials?tut=static_map_plugin&cat=build_world]

Latest revision as of 19:03, 4 August 2018

Focus: Simulation Setup

Installation of ROS Kinetic + Gazebo was already done (apt **-full**)


Guide for PX4 SITL + Gazebo

  1. We used this script https://dev.px4.io/en/setup/dev_env_linux.html#gazebo-with-ros, paying attention on not redoing stuff already done and changing the catkin workspace to our project directory.
  2. QtCreator: we used https://dev.px4.io/en/setup/building_px4.html#qt-creator-on-linux that checkout needed gazebo sitl files
  3. make posix_sitl_default gazebo executed in ~/src/Firmware launches gazebo and px4 sitl with the default iris model
  4. Init script for px4 console which configures also mavlink, is found under %Firmware%/posix-configs/SITL/init/ekf2/iris

Gazebo World

Followed the following tutorial to get a simple gazebo world with 2D ground plane image. http://gazebosim.org/tutorials?tut=static_map_plugin&cat=build_world