Browse Source
This commit adds SITL support for ignition gazebo. Ignition gazebo is a replacement for the "classic" gazebo for future applications. The simulation can be run as the following ``` make px4_sitl ignition ```master
5 changed files with 48 additions and 0 deletions
@ -0,0 +1,23 @@
@@ -0,0 +1,23 @@
|
||||
#!/bin/bash |
||||
# |
||||
# Setup environment to make PX4 visible to Gazebo. |
||||
# |
||||
# Note, this is not necessary if using a ROS catkin workspace with the px4 |
||||
# package as the paths are exported. |
||||
# |
||||
# License: according to LICENSE.md in the root directory of the PX4 Firmware repository |
||||
|
||||
if [ "$#" != 2 ]; then |
||||
echo -e "usage: source setup_gazebo.bash src_dir build_dir\n" |
||||
return 1 |
||||
fi |
||||
|
||||
SRC_DIR=$1 |
||||
BUILD_DIR=$2 |
||||
|
||||
# setup Gazebo env and update package path |
||||
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${SRC_DIR}/build/px4_sitl_default/build_ign_gazebo |
||||
export IGN_GAZEBO_SYSTEM_PLUGIN_PATH=$IGN_GAZEBO_SYSTEM_PLUGIN_PATH:${SRC_DIR}/build/px4_sitl_default/build_ign_gazebo |
||||
export IGN_GAZEBO_RESOURCE_PATH=$IGN_GAZEBO_RESOURCE_PATH:${SRC_DIR}/Tools/simulation-ignition/models |
||||
|
||||
echo -e "LD_LIBRARY_PATH $LD_LIBRARY_PATH" |
@ -0,0 +1 @@
@@ -0,0 +1 @@
|
||||
Subproject commit 794a8dc50538e3476f6d874744d3d3ef24da594d |
Loading…
Reference in new issue