Commit 41b461a0 authored by Matthew Hausknecht's avatar Matthew Hausknecht

Updated the log directory. Changed start.py to make rcssserver failure more visible.

parent 2311a7d8
cmake_minimum_required(VERSION 2.8.3)
find_package(Threads REQUIRED)
project(hfo)
# Change these to reflect the location of your librcsc-4.1.0 install
......@@ -32,7 +31,6 @@ list(APPEND LINK_LIBS
rcsc_gz
rcsc_time
rcsc_rcg
${CMAKE_THREAD_LIBS_INIT}
)
add_executable(sample_coach ${SOURCE_DIR}/main_coach.cpp ${SOURCE_DIR}/sample_coach.cpp ${SOURCES})
......
......@@ -8,8 +8,8 @@ from signal import SIGKILL
processes, necProcesses = [], []
# Command to run the rcssserver. Edit as needed.
SERVER_CMD = 'rcssserver server::port=6000 server::coach_port=6001 \
server::olcoach_port=6002 server::coach=1 server::game_log_dir=/tmp \
server::text_log_dir=/tmp'
server::olcoach_port=6002 server::coach=1 server::game_log_dir=log \
server::text_log_dir=log'
# Command to run the monitor. Edit as needed.
MONITOR_CMD = 'rcssmonitor'
......@@ -50,8 +50,10 @@ def main(args, team1='left', team2='right', rng=numpy.random.RandomState()):
assert os.path.isdir(team2Dir)
try:
# Launch the Server
launch(SERVER_CMD + serverOptions, name='server')
server = launch(SERVER_CMD + serverOptions, name='server')
time.sleep(0.2)
assert server.poll() is None,\
'Failed to launch Server with command: \"%s\"'%(SERVER_CMD)
if not args.headless:
launch(MONITOR_CMD,name='monitor')
# Launch the Trainer
......
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