forked from AgileManufacturing/HUniversal-Production-Utrecht
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathros_benchmark.sh
17 lines (15 loc) · 955 Bytes
/
ros_benchmark.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env sh
echo -n "Choose number of equiplets: "
read numberOfEquiplets
# clean everything up
mysql -u rexos -p equiplet < src/REXOS/databases/knowledgeDatabaseDef.sql ;
ant HAL ;
for((i=0;i<numberOfEquiplets;i++)) do
java -cp build/REXOS/:src/REXOS/external_libraries/* HAL.testerClasses.EquipletRecordLoader EQ$i ;
java -cp build/REXOS/:src/REXOS/external_libraries/* HAL.testerClasses.HALTesterClass --noTranslate EQ$i $i ;
gnome-terminal --title="EQ$i" \
--tab -t "equiplet_node" -e "bash -c \"rosrun equiplet_node equiplet_node --scadaPort $((8000 + $i)) EQ$i\"" \
--tab -t "node_spawner_node" -e "bash -c \"rosrun node_spawner_node node_spawner_node EQ$i\"" \
--tab -t "environment_cache" -e "bash -c \"rosrun environment_cache environment_cache EQ$i\"" \
--tab -t "HAL" -e "bash -c \"java -Xms20m -Xmx50m -cp build/REXOS/:src/REXOS/external_libraries/* HAL.testerClasses.HALTesterClass --noInsert EQ$i $i\"; bash"
done