Implement the way to run posix simulator directly from IDE without the need to reconfigure command lines, but use runner created via CMake

Steps to debug:
 * Run gazebo (or any other sim) server and client viewers via the terminal: `make posix_sitl_default gazebo_none_ide`
 * In your IDE select `px4_<mode>` target you want to debug (e.g. `px4_iris`)
 * Start debug session directly from IDE

This approach significantly reduces the debug cycle time because simulator (e.g. gazebo) is always running in background and you only re-run px4 process which is very light.
This commit is contained in:
Anton Matosov
2016-12-07 20:41:46 -08:00
committed by Lorenz Meier
parent b79e4ab506
commit 6d3116e30b
4 changed files with 195 additions and 98 deletions
+9
View File
@@ -135,6 +135,15 @@ then
elif [ "$debugger" == "valgrind" ]
then
valgrind $sitl_command
elif [ "$debugger" == "ide" ]
then
echo "######################################################################"
echo
echo "PX4 simulator not started, use your IDE to start PX4_${model} target."
echo "Hit enter to quit..."
echo
echo "######################################################################"
read
else
$sitl_command
fi