Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 30 lines (24 sloc) 0.709 kb
#!/bin/bash
#ROBOTS=(2 3 4 5 6)
ROBOTS=(0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18)
N=19
# name of configuration, e.g.1:1
CONF="2:1"
TASK="task_bf_"$CONF".txt"
RATIO="ratio_bf_"$CONF".txt"
echo "TASK: 0 green sourceA sinkA 1 0.04 10.0" > ${TASK}
echo "TASK: 0 blue sourceB sinkB 1 0.02 10.0" >> ${TASK}
for (( g=0; g<$N; g++))
do
for ((b=0; b<$N; b++))
do
GREEN=${ROBOTS[${g}]}
BLUE=${ROBOTS[${b}]}
LOG="./data/fixed_"$CONF$"_"$GREEN"_"$BLUE".dat"
echo running with green: ${GREEN} blue: ${BLUE}
echo "TASK: green =" ${GREEN} > $RATIO
echo "TASK: blue =" ${BLUE} >> $RATIO
stage -g -c -rf=$RATIO -td=$TASK -lf=$LOG world/fasr_fixed.world
rm fasr.log
done
done
Jump to Line
Something went wrong with that request. Please try again.