I’m not sure about that special target to run gazebo separately, but if you go into the build directory (build_posix_sitl_default) and run ninja -t targets you can get a list of all targets.
I assume you launch gazebo and PX4 separately?
If so :
What binary and arguments do you use to launch PX4 and how do you launch gazebo separately?
Could you send me an example?
After digging up in the makefile and in the stil_run.sh I’ve come up with a pretty circuitous way to do it, and I suspect there’s simpler ways to do it (specially the gazebo part).
I set the following as the Debug Command in the IDE (Netbeans in my case)
Oh, I see now… if I run
make posix_sitl_default gazebo_iris_ide
It starts gazebo with the right configuration ( so avoids having to enter all the commands directly like I had) and then also provides executable and parameters to enter in the IDE in the line that starts with:
SITL COMMAND:
-open your terminal in the Firmware folder , type
export GAZEBO_PLUGIN_PATH=${GAZEBO_PLUGIN_PATH}:build/posix_sitl_default/build_gazebo
gazebo Tools/sitl_gazebo/worlds/iris.world --verbose
-it is suggests to open new terminal , type
make posix_sitl_default gazebo no_sim=1
Second solution
-set the environment varliabe
GAZEBO_MODEL_PATH=Tools/sitl_gazebo/models
-run gazebo with the desired world
export GAZEBO_MODEL_PATH=Tools/sitl_gazebo/models
gazebo Tools/sitl_gazebo/worlds/iris.world