PX4 simulation stack
|
Package for PX4 SITL Gazebo simulation.
Documentation is available on github pages.
The master branch may not be compatible with the latest master or release of PX4 Firmware. Please see releases page for compatible commit.
You can see file list from https://uenota.github.io/px4_simulation_stack/files.html.
### Build Image
See http://wiki.ros.org/docker/Tutorials/GUI. It is neccessary to build PX4 files for the first time.
See https://dev.px4.io/en/setup/dev_env_linux_ubuntu.html.
See https://dev.px4.io/en/simulation/ros_interface.html.
It is convenient to write settings in .bashrc and .profile.
In Firmware directory,
You need to set environment variable if you want to insert models in this pacakge from Gazebo GUI.
In px4_simulation_stack directory,
If you write these settings in .bashrc and .profile, do not forget to source them for the first time.
In server machine, run
In client machine, run
You can check host_ip of each machine by running
If you want to run only Gazebo, run the following command in server machine.
In client machine, run
If you want to run Gazebo and PX4 SITL, run the following command in server machine.
In client machine, run
In order to launch hexa_j153.launch
, you need to put gazebo models of gazebo model database in your GAZEBO_MODEL_PATH
. Gazebo models of gazebo model database can be downloaded from https://bitbucket.org/osrf/gazebo_models/overview.
This launch file needs Gazebo 7.4.0 or newer to launch because of this problem. Installation of Gazebo from OSRF repository is described here. Note that ROS Kinetic should be used with Gazebo 7.x series according to this page.