(Linux) Instructions to download, build and run the RoboCup Rescue Simulator (RCRS)
Open a terminal window, navigate to the root directory and executercrs-server
$ ./gradlew gmlEditor --args='<map file path>'where is optional.--args=<map file path>
Open a terminal window, navigate to the root directory and executercrs-server
$ ./gradlew scenarioEditor --args='<scenario path>'where is optional.--args=<scenario path>
Open a terminal window, navigate to the root directory and executercrs-server
$ ./gradlew randomScenario --args="'<map path>' <options>"where is the path to the map directory and <map path> are the minimum and maximum value for each entity in the scenario. The <options> are optional.<options>
Open a terminal window, navigate to the root directory and executercrs-server
$ ./gradlew logViewer --args="'-c' '<config file>' '<log path>'"where is the path to the log viewer configuration file, default <config file>. The config/logviewer.cfg is the rescue log file path, default <log path>.logs/log/rescue.log
Open a terminal window, navigate to the root directory and executercrs-server
$ ./gradlew osm2gml --args="'<osm map path>' '<gml map path>'"The is the path to the OSM map file and the <osm map path> is the destination GML map path.<gml map path>
Open a terminal window, navigate to the root directory and executercrs-server
$ ./gradlew validateMap --args="'<gml map path>'"
The is the path to the GML map file to validate. The result is written to the log, one <gml map path> line per error followed by a VALIDATION_ERROR line.VALIDATION_SAMMARY
VALIDATION_ERROR map=<gml map path> kind=<error kind> id=<object id> message=<message> VALIDATION_SUMMARY map=<gml map path> errors=<number of errors>
The line is written only when the validation is completed, and VALIDATION_SUMMARY means that no errors were found. The task failes only if the map could not be validated, for example when the file cannot be read.errors=0
If the scenario have many agents, the agents connection to the server may slow down at certain moment. To overcome this issue, you should
-
Install the
rng-toolspackage -
Edit the ` /etc/defaults/rng-tools` and add the line
HRNGDEVICE=/dev/urandom -
Start the rng daemon
/etc/init.d/rng-tools start
|
Important
|
This instructions are valid for Ubuntu. The package name and initialization commands may change on other distributions. |
To report a bug, suggest improvements or request support, please open an issue at GitHub https://github.com/roborescue/rcrs-server/issues.