mirror of
https://github.com/AdaCore/OpenUxAS.git
synced 2026-02-12 13:07:16 -08:00
41 lines
1018 B
Bash
Executable File
41 lines
1018 B
Bash
Executable File
#! /bin/bash
|
|
|
|
#save the current directory
|
|
SAVE_DIR=$(pwd)
|
|
|
|
#location of the UxAS binary (executable)
|
|
BIN="../../../build/uxas"
|
|
|
|
#set the UAV ID
|
|
UAV=1000
|
|
#define the runinnig directory
|
|
RUN_DIR=UAV_${UAV}
|
|
#remove old data
|
|
rm -Rf ${RUN_DIR}
|
|
#add new data directory
|
|
mkdir -p ${RUN_DIR}
|
|
# change to the data directory
|
|
cd ${RUN_DIR}
|
|
# run UxAS in a separate terminal. Note: requires "Terminal"
|
|
echo "cd $PWD; $BIN -cfgPath ../cfgDistributedCooperation_$UAV.xml" > runuxas.sh; chmod +x runuxas.sh
|
|
open -a Terminal runuxas.sh
|
|
# change back to the original directory
|
|
cd $SAVE_DIR
|
|
|
|
#set the UAV ID
|
|
UAV=2000
|
|
#define the runinnig directory
|
|
RUN_DIR=UAV_${UAV}
|
|
#remove old data
|
|
rm -Rf ${RUN_DIR}
|
|
#add new data directory
|
|
mkdir -p ${RUN_DIR}
|
|
# change to the data directory
|
|
cd ${RUN_DIR}
|
|
# run UxAS in a separate terminal. Note: requires "Terminal"
|
|
echo "cd $PWD; $BIN -cfgPath ../cfgDistributedCooperation_$UAV.xml" > runuxas.sh; chmod +x runuxas.sh
|
|
open -a Terminal runuxas.sh
|
|
# change back to the original directory
|
|
cd $SAVE_DIR
|
|
|