Commit 4277eb4c authored by Sascha Dewes's avatar Sascha Dewes

updated and deleted some scripts

parent 41cd6438
Pipeline #407874 passed with stage
in 22 minutes and 15 seconds
......@@ -8,6 +8,10 @@ ARCH="multistep"
BENCHMARK="none"
AGENT="multistep"
# Make sure that ROS is not running
killall -9 roscore
killall -9 rosmaster
while getopts "sb:" OPTION; do
case $OPTION in
s) ARCH="singlestep"; AGENT="singlestep" ;;
......@@ -29,27 +33,27 @@ cp "${POSTPROCESSOR_BUILD}/forestrl_${ARCH}_postprocessor_master/coordinator/Coo
cp "${AGENT_BUILD}/forestrl_singlestep_agent_master/coordinator/Coordinator_forestrl_singlestep_agent_master" "${BINARY}/agent"
echo "Start ROSCORE..."
xterm -title "ROSCORE" -e "roscore; bash" &
roscore &
sleep 10
echo "Start up environment..."
xterm -title "Forest-Sim" -e "python bin/dummysim/${ARCH}_launcher.py --quiet --eval; bash" &
python bin/dummysim/${ARCH}_launcher.py --quiet --eval &
sleep 2
if [ "$BENCHMARK" = "none" ]; then
echo "Start up preprocessor..."
xterm -title "Preprocessor" -e "${BINARY}/preprocessor; bash" &
${BINARY}/preprocessor &
sleep 2
echo "Start up ${AGENT} agent..."
xterm -title "Agent (${AGENT})" -e "${BINARY}/agent; bash" &
${BINARY}/agent &
sleep 2
else
echo "Start up ${AGENT} agent..."
xterm -title "Agent (${AGENT})" -e "python bin/benchmark_agents/${BENCHMARK}/${BENCHMARK}_agent.py; bash" &
python bin/benchmark_agents/${BENCHMARK}/${BENCHMARK}_agent.py &
sleep 2
fi
echo "Start up postprocessor..."
xterm -title "Postprocessor" -e "${BINARY}/postprocessor; bash" &
${BINARY}/postprocessor &
sleep 2
#!/bin/bash
# (c) https://github.com/MontiCore/monticore
. config.sh
AGENT_BUILD="target/agent/build"
PREPROCESSOR_BUILD="target/preprocessor/build"
POSTPROCESSOR_BUILD="target/postprocessor/build"
rm -rf "${BINARY}"
mkdir "${BINARY}"
cp "${PREPROCESSOR_BUILD}/forestrl_singlestep_preprocessor_master/coordinator/Coordinator_forestrl_singlestep_preprocessor_master" "${BINARY}/preprocessor"
cp "${POSTPROCESSOR_BUILD}/forestrl_multistep_postprocessor_master/coordinator/Coordinator_forestrl_multistep_postprocessor_master" "${BINARY}/postprocessor"
cp "${AGENT_BUILD}/forestrl_singlestep_agent_master/coordinator/Coordinator_forestrl_singlestep_agent_master" "${BINARY}/agent"
echo "Start ROSCORE..."
xterm -title "ROSCORE" -e "roscore; bash" &
sleep 10
echo "Start up environment..."
xterm -title "Forest-Sim" -e "python bin/dummysim/multistep_launcher.py --quiet; bash" &
sleep 2
echo "Start up preprocessor..."
xterm -title "Preprocessor" -e "${BINARY}/preprocessor -t 600; bash" &
sleep 2
echo "Start up postprocessor..."
xterm -title "Postprocessor" -e "${BINARY}/postprocessor -t 600; bash" &
sleep 2
#!/bin/bash
# (c) https://github.com/MontiCore/monticore
. config.sh
# Start the training
cd "target/agent/src/forestrl_singlestep_agent_master/cpp"
python CNNTrainer_forestrl_singlestep_agent_master_net.py
#!/bin/bash
# (c) https://github.com/MontiCore/monticore
. config.sh
AGENT_BUILD="target/agent/forestrl_singlestep_agent_master/build"
PREPROCESSOR_BUILD="target/preprocessor/forestrl_singlestep_preprocessor_master/build"
POSTPROCESSOR_BUILD="target/postprocessor/forestrl_singlestep_postprocessor_master/build"
rm -rf "${BINARY}"
mkdir "${BINARY}"
cp "${PREPROCESSOR_BUILD}/forestrl_singlestep_preprocessor_master/coordinator/Coordinator_forestrl_singlestep_preprocessor_master" "${BINARY}/preprocessor"
cp "${POSTPROCESSOR_BUILD}/forestrl_singlestep_postprocessor_master/coordinator/Coordinator_forestrl_singlestep_postprocessor_master" "${BINARY}/postprocessor"
cp "${AGENT_BUILD}/forestrl_singlestep_agent_master/coordinator/Coordinator_forestrl_singlestep_agent_master" "${BINARY}/agent"
echo "Start ROSCORE..."
xterm -title "ROSCORE" -e "roscore; bash" &
sleep 10
echo "Start up environment..."
xterm -title "Forest-Sim" -e "python bin/dummysim/multistep/launcher.py --quiet; bash" &
sleep 2
echo "Start up preprocessor..."
xterm -title "Preprocessor" -e "${BINARY}/preprocessor; bash" &
sleep 2
echo "Start up postprocessor..."
xterm -title "Postprocessor" -e "${BINARY}/postprocessor; bash" &
sleep 2
#!/bin/bash
# (c) https://github.com/MontiCore/monticore
. config.sh
# Start the training
cd "target/agent/forestrl_singlestep_agent_master/src/forestrl_singlestep_agent_master/emadlcpp"
python CNNTrainer_forestrl_singlestep_agent_master_net.py
#!/bin/bash
# (c) https://github.com/MontiCore/monticore
. config.sh
echo "Start ROSCORE..."
xterm -title "ROSCORE" -e "roscore; bash" &
sleep 10
echo "Start up environment..."
xterm -title "Forest-Sim" -e "python bin/dummysim/multistep/launcher.py --quiet --eval; bash" &
sleep 2
echo "Start up random agent..."
xterm -title "RandomAgent" -e "python bin/benchmark_agents/random/randomactions.py; bash" &
sleep 2
echo "Start up postprocessor..."
xterm -title "Postprocessor" -e "${BINARY}/postprocessor; bash" &
sleep 2
......@@ -6,6 +6,10 @@ PREPROCESSOR_BUILD="target/preprocessor/build"
POSTPROCESSOR_BUILD="target/postprocessor/build"
ARCH="multistep"
# Make sure that ROS is not running
killall -9 roscore
killall -9 rosmaster
while getopts "s" OPTION; do
case $OPTION in
s) ARCH="singlestep" ;;
......@@ -21,19 +25,19 @@ cp "${POSTPROCESSOR_BUILD}/forestrl_${ARCH}_postprocessor_master/coordinator/Coo
cp "${AGENT_BUILD}/forestrl_singlestep_agent_master/coordinator/Coordinator_forestrl_singlestep_agent_master" "${BINARY}/agent"
echo "Start ROSCORE..."
xterm -title "ROSCORE" -e "roscore; bash" &
roscore &
sleep 10
echo "Start up environment..."
xterm -title "Forest-Sim" -e "python bin/dummysim/${ARCH}_launcher.py --quiet; bash" &
python bin/dummysim/${ARCH}_launcher.py --quiet &
sleep 2
echo "Start up preprocessor..."
xterm -title "Preprocessor" -e "${BINARY}/preprocessor -t 600; bash" & # execMs can be adjusted to match length of training steps
${BINARY}/preprocessor -t 600 & # execMs can be adjusted to match length of training steps
sleep 2
echo "Start up postprocessor..."
xterm -title "Postprocessor" -e "${BINARY}/postprocessor -t 600; bash" & # execMs can be adjusted to match length of training steps
${BINARY}/postprocessor -t 600 & # execMs can be adjusted to match length of training steps
sleep 2
# Start the training
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment