Hi Brian,
When i do "bash runDemo.bash" in the main directory of the rl-
competition software I apparently get the same problem, namely the
application freezes when running the experiment by pressing Start or
Unload. I'm sorry i didn't say this earlier, i guess i overlooked it
because i've tried to install the software on three different systems
now, which all gave me problems but different ones :) Still this one
seems to be the closest to being compiled successfully.
When i do make in the main directory of the rl-competition software i
get the following output (i don't think it contains any warnings or
errors):
gpanneba@pc-ow-38 rl-competition $ make
cc -c -I./system/RL-Glue/RL-Glue -O2 ./system/RL-Glue/RL-Glue/
RL_glue.c -o system/build/RL_glue.o
cc -c -I./system/RL-Glue/RL-Glue -O2 ./system/RL-Glue/RL-Glue/
Utilities/C_TaskSpec_Parser.c -o system/build/C_TaskSpec_Parser.o
cc -c -I./system/RL-Glue/RL-Glue -O2 ./system/RL-Glue/RL-Glue/Network/
Glue/RL_server_agent.c -o system/build/RL_server_agent.o
cc -c -I./system/RL-Glue/RL-Glue -O2 ./system/RL-Glue/RL-Glue/Network/
Glue/RL_network_agent.c -o system/build/RL_network_agent.o
cc -c -I./system/RL-Glue/RL-Glue -O2 ./system/RL-Glue/RL-Glue/Network/
Glue/RL_server_environment.c -o system/build/RL_server_environment.o
cc -c -I./system/RL-Glue/RL-Glue -O2 ./system/RL-Glue/RL-Glue/Network/
Glue/RL_network_environment.c -o system/build/RL_network_environment.o
cc -c -I./system/RL-Glue/RL-Glue -O2 ./system/RL-Glue/RL-Glue/Network/
Glue/RL_server_experiment.c -o system/build/RL_server_experiment.o
cc -c -I./system/RL-Glue/RL-Glue -O2 ./system/RL-Glue/RL-Glue/Network/
Glue/RL_network_experiment.c -o system/build/RL_network_experiment.o
cc -c -I./system/RL-Glue/RL-Glue -O2 ./system/RL-Glue/RL-Glue/Network/
RL_network.c -o system/build/RL_network.o
cc -c -I./system/RL-Glue/RL-Glue -O2 ./system/RL-Glue/RL-Glue/Network/
Glue/RL_network_glue.c -o system/build/RL_network_glue.o
cc -o ./system/RL_glue system/build/RL_glue.o system/build/
C_TaskSpec_Parser.o system/build/RL_server_agent.o system/build/
RL_network_agent.o system/build/RL_server_environment.o system/build/
RL_network_environment.o system/build/RL_server_experiment.o system/
build/RL_network_experiment.o system/build/RL_network.o system/build/
RL_network_glue.o -lm
cd ./agents/randomAgentJava/ && make
make[1]: Entering directory `/home/gpanneba/RTS/new/rl-competition/
agents/randomAgentJava'
javac -source 5 -d bin -cp ../../system/libraries/RLVizLib.jar src/
RandomAgent/RandomAgent.java
make[1]: Leaving directory `/home/gpanneba/RTS/new/rl-competition/
agents/randomAgentJava'
cd ./agents/randomAgentCPP/ && make
make[1]: Entering directory `/home/gpanneba/RTS/new/rl-competition/
agents/randomAgentCPP'
g++ -c -I../../system/RL-Glue/RL-Glue -I../../system/RL-Glue/Utils -I./
src -g src/RandomAgent.cpp -o bin/RandomAgent.o
g++ -c -I../../system/RL-Glue/RL-Glue -I../../system/RL-Glue/Utils -I./
src -g ../../system/RL-Glue/RL-Glue/../Utils/Glue_utilities.c -o bin/
Glue_utilities.o
g++ -c -I../../system/RL-Glue/RL-Glue -I../../system/RL-Glue/Utils -I./
src -g ../../system/RL-Glue/RL-Glue/Network/Agent/RL_client_agent.c -o
bin/RL_client_agent.o
g++ -c -I../../system/RL-Glue/RL-Glue -I../../system/RL-Glue/Utils -I./
src -g ../../system/RL-Glue/RL-Glue/Network/RL_network.c -o bin/
RL_network.o
g++ -o ./bin/RL_agent bin/RandomAgent.o bin/Glue_utilities.o bin/
RL_client_agent.o bin/RL_network.o -lm
make[1]: Leaving directory `/home/gpanneba/RTS/new/rl-competition/
agents/randomAgentCPP'
cd ./agents/mountainCarAgentCPP/ && make
make[1]: Entering directory `/home/gpanneba/RTS/new/rl-competition/
agents/mountainCarAgentCPP'
g++ -c -I../../system/RL-Glue/RL-Glue -I../../system/RL-Glue/Utils -I./
src src/MountainCarAgent.cpp -o bin/MountainCarAgent.o
g++ -c -I../../system/RL-Glue/RL-Glue -I../../system/RL-Glue/Utils -I./
src ../../system/RL-Glue/RL-Glue/../Utils/Glue_utilities.c -o bin/
Glue_utilities.o
g++ -c -I../../system/RL-Glue/RL-Glue -I../../system/RL-Glue/Utils -I./
src src/tiles.cpp -o bin/tiles.o
g++ -c -I../../system/RL-Glue/RL-Glue -I../../system/RL-Glue/Utils -I./
src src/RLStruct_util.cpp -o bin/RLStruct_util.o
g++ -c -I../../system/RL-Glue/RL-Glue -I../../system/RL-Glue/Utils -I./
src ../../system/RL-Glue/RL-Glue/Network/Agent/RL_client_agent.c -o
bin/RL_client_agent.o
g++ -c -I../../system/RL-Glue/RL-Glue -I../../system/RL-Glue/Utils -I./
src ../../system/RL-Glue/RL-Glue/Network/RL_network.c -o bin/
RL_network.o
g++ -o ./bin/RL_agent bin/MountainCarAgent.o bin/Glue_utilities.o bin/
tiles.o bin/RLStruct_util.o bin/RL_client_agent.o bin/RL_network.o -lm
make[1]: Leaving directory `/home/gpanneba/RTS/new/rl-competition/
agents/mountainCarAgentCPP'
cd ./agents/realTimeStrategyAgentJava/ && make
make[1]: Entering directory `/home/gpanneba/RTS/new/rl-competition/
agents/realTimeStrategyAgentJava'
javac src/**/*.java -d bin -cp ../../system/libraries/RLVizLib.jar
make[1]: Leaving directory `/home/gpanneba/RTS/new/rl-competition/
agents/realTimeStrategyAgentJava'
cd ./agents/helicopterAgentCPP/ && make
make[1]: Entering directory `/home/gpanneba/RTS/new/rl-competition/
agents/helicopterAgentCPP'
g++ -c -I../../system/RL-Glue/RL-Glue -I../../system/RL-Glue/Utils -I./
src src/weak_baseline_controller.cpp -o bin/weak_baseline_controller.o
g++ -c -I../../system/RL-Glue/RL-Glue -I../../system/RL-Glue/Utils -I./
src ../../system/RL-Glue/RL-Glue/../Utils/Glue_utilities.c -o bin/
Glue_utilities.o
g++ -c -I../../system/RL-Glue/RL-Glue -I../../system/RL-Glue/Utils -I./
src ../../system/RL-Glue/RL-Glue/Network/Agent/RL_client_agent.c -o
bin/RL_client_agent.o
g++ -c -I../../system/RL-Glue/RL-Glue -I../../system/RL-Glue/Utils -I./
src ../../system/RL-Glue/RL-Glue/Network/RL_network.c -o bin/
RL_network.o
g++ -o ./bin/RL_agent bin/weak_baseline_controller.o bin/
Glue_utilities.o bin/RL_client_agent.o bin/RL_network.o -lm
make[1]: Leaving directory `/home/gpanneba/RTS/new/rl-competition/
agents/helicopterAgentCPP'
cd ./agents/zeroAgentCPP/ && make
make[1]: Entering directory `/home/gpanneba/RTS/new/rl-competition/
agents/zeroAgentCPP'
g++ -c -I../../system/RL-Glue/RL-Glue -I../../system/RL-Glue/Utils -I./
src -g src/ZeroAgent.cpp -o bin/ZeroAgent.o
g++ -c -I../../system/RL-Glue/RL-Glue -I../../system/RL-Glue/Utils -I./
src -g ../../system/RL-Glue/RL-Glue/../Utils/Glue_utilities.c -o bin/
Glue_utilities.o
g++ -c -I../../system/RL-Glue/RL-Glue -I../../system/RL-Glue/Utils -I./
src -g ../../system/RL-Glue/RL-Glue/Network/Agent/RL_client_agent.c -o
bin/RL_client_agent.o
g++ -c -I../../system/RL-Glue/RL-Glue -I../../system/RL-Glue/Utils -I./
src -g ../../system/RL-Glue/RL-Glue/Network/RL_network.c -o bin/
RL_network.o
g++ -o ./bin/RL_agent bin/ZeroAgent.o bin/Glue_utilities.o bin/
RL_client_agent.o bin/RL_network.o -lm
make[1]: Leaving directory `/home/gpanneba/RTS/new/rl-competition/
agents/zeroAgentCPP'
cd ./trainers/consoleTrainerJava/ && make
make[1]: Entering directory `/home/gpanneba/RTS/new/rl-competition/
trainers/consoleTrainerJava'
javac -source 5 -d bin -cp ../../system/libraries/RLVizLib.jar src/
*.java
make[1]: Leaving directory `/home/gpanneba/RTS/new/rl-competition/
trainers/consoleTrainerJava'
cd ./trainers/consoleTrainerPython/ && make
make[1]: Entering directory `/home/gpanneba/RTS/new/rl-competition/
trainers/consoleTrainerPython'
echo -e "#! /bin/bash\n PYTHONPATH=../../system/RL-Glue/RL-Glue/
Python:../../system/includes:./src python ./src/consoleTrainer.py " |
cat > RL_experiment
chmod u+x RL_experiment
make[1]: Leaving directory `/home/gpanneba/RTS/new/rl-competition/
trainers/consoleTrainerPython'
cd ./trainers/consoleTrainerCPP/ && make
make[1]: Entering directory `/home/gpanneba/RTS/new/rl-competition/
trainers/consoleTrainerCPP'
g++ -c -ansi -pedantic -Wall -I../../system/RL-Glue/RL-Glue -I../../
system/includes src/consoleTrainer.cpp -o bin/consoleTrainer.o
g++ -c -ansi -pedantic -Wall -I../../system/RL-Glue/RL-Glue -I../../
system/includes ../../system/includes/ParameterHolder.cpp -o bin/
ParameterHolder.o
g++ -c -ansi -pedantic -Wall -I../../system/RL-Glue/RL-Glue -I../../
system/includes ../../system/RL-Glue/RL-Glue/Network/Experiment/
RL_client_experiment.c -o bin/RL_client_experiment.o
g++ -c -ansi -pedantic -Wall -I../../system/RL-Glue/RL-Glue -I../../
system/includes ../../system/RL-Glue/RL-Glue/Network/RL_network.c -o
bin/RL_network.o
g++ -c -ansi -pedantic -Wall -I../../system/RL-Glue/RL-Glue -I../../
system/includes src/consoleTrainerHelper.cpp -o bin/
consoleTrainerHelper.o
g++ bin/consoleTrainer.o bin/consoleTrainerHelper.o bin/
ParameterHolder.o bin/RL_client_experiment.o bin/RL_network.o -o bin/
consoleTrainer
rm -fr bin/*.o
make[1]: Leaving directory `/home/gpanneba/RTS/new/rl-competition/
trainers/consoleTrainerCPP'
cd ./trainers/consoleTrainerRealTimeStrategyJava/ && make
make[1]: Entering directory `/home/gpanneba/RTS/new/rl-competition/
trainers/consoleTrainerRealTimeStrategyJava'
javac src/*.java -d bin -cp ../../system/libraries/RLVizLib.jar
make[1]: Leaving directory `/home/gpanneba/RTS/new/rl-competition/
trainers/consoleTrainerRealTimeStrategyJava'
cd ./trainers/consoleMultiTrainers/ && make
make[1]: Entering directory `/home/gpanneba/RTS/new/rl-competition/
trainers/consoleMultiTrainers'
javac -source 5 -d bin -cp ../../system/libraries/RLVizLib.jar src/
*.java
make[1]: Leaving directory `/home/gpanneba/RTS/new/rl-competition/
trainers/consoleMultiTrainers'
The console java trainer seems to work fine. This is its output:
gpanneba@pc-ow-38 consoleTrainerRealTimeStrategyJava $ bash run.bash
Starting up Real Time Strategy - PID=31634
Starting up RL-glue - PID=31640
Connecting to host=127.0.0.1 on port=4096...Connected
environment connected.
experiment connected.
agent connected.
Running: 100 episodes (each one is a .)
....................................................................................................
-----------------------------------------------
Number of episodes: 100
Average number of steps per episode: 756.75
Average return per episode: 9.0
-----------------------------------------------
Running: 100 episodes (each one is a .)
....................................................................................................
-----------------------------------------------
Number of episodes: 100
Average number of steps per episode: 845.4275
Average return per episode: 8.08
-----------------------------------------------
-- Waiting for Real Time Strategy to die...
++ Real Time Strategy terminated
-- Waiting for RL_glue to die...
++ RL_glue terminated
So its got to be something with the RLVizApp.
I must say that your patience is quite remarkable as well ;)
Thanks,
Gijs
> ...
>
> read more »