一次性启动多机,这种无法实时查看终端的显示信息:
cd PX4-Autopilot
./Tools/sitl_multiple_run.sh 2 # 2 here is the number of vehicles/instances
分别启动:
cd PX4
mkdir -p Scripts
cd Scripts
wget https://github.com/microsoft/AirSim/raw/master/PX4Scripts/sitl_kill.sh
wget https://github.com/microsoft/AirSim/raw/master/PX4Scripts/run_airsim_sitl.sh
#Run the sitl_kill.sh script to kill all active PX4 SITL instances
./sitl_kill.sh
#Run the run_airsim_sitl.sh script while specifying which instance you would like to run in the current terminal window (the first instance would be numbered 0)
./run_airsim_sitl.sh 0 # first instance = 0
#Open a new terminal and go to the Scripts directory and start the next instance
./run_airsim_sitl.sh 1 # ,2,3,4,..,etc