mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-27 10:23:33 +08:00
New strategy to build and run jMAVSIM
This commit is contained in:
+4
-2
@@ -60,9 +60,11 @@ SIM_PID=0
|
|||||||
if [ "$program" == "jmavsim" ] && [ "$no_sim" == "" ]
|
if [ "$program" == "jmavsim" ] && [ "$no_sim" == "" ]
|
||||||
then
|
then
|
||||||
cd Tools/jMAVSim
|
cd Tools/jMAVSim
|
||||||
ant
|
ant create_run_jar copy_res
|
||||||
java -Djava.ext.dirs= -cp lib/*:out/production/jmavsim.jar me.drton.jmavsim.Simulator -udp 127.0.0.1:14560 &
|
cd out/production
|
||||||
|
java -Djava.ext.dirs= -jar jmavsim_run.jar -udp 127.0.0.1:14560 &
|
||||||
SIM_PID=`echo $!`
|
SIM_PID=`echo $!`
|
||||||
|
cd ../..
|
||||||
elif [ "$program" == "gazebo" ] && [ "$no_sim" == "" ]
|
elif [ "$program" == "gazebo" ] && [ "$no_sim" == "" ]
|
||||||
then
|
then
|
||||||
if [ -x "$(command -v gazebo)" ]
|
if [ -x "$(command -v gazebo)" ]
|
||||||
|
|||||||
Reference in New Issue
Block a user