Robotics StackExchange | Archived questions

Import Custom Gazebo World, Model, and Plugin into PX4

Hello, I am completely new to Gazebo and PX4. My environment is: Ubuntu 20.04 Gazebo 9.15

I installed PX4 by doing:

~$ mkdir src && cd src ~/src$ git clone https://github.com/garrettgibo/Firmware

In Gazebo, I have made a custom world “contact.world” that includes a custom model “landingzone”. In the landingzone.sdf, I have implemented a custom version of the Contact Sensor Plugin.

I am trying to import my custom .world, .cc, .hh, .sdf, CMakeLists.txt into the Firmware directory. I learned that PX4 separates all of these files into different directories.

How do I know which directory to put my files in and what adjustments I need to make in order for PX4 to load my custom world, model, and plugins?

I could not find any information on https://docs.px4.io/master/en/simulation/gazebo.html. Could someone please help me get started on importing custom Gazebo files into PX4?

Thank you very much for your time!

Thanh Tran

Asked by letmeetran on 2020-11-21 17:48:09 UTC

Comments

Answers