| … | … | @@ -246,22 +246,31 @@ The following are optimal action plans the agent learned to get a reward: |
| 246 | 246 | |
| 247 | 247 | ## Usage |
| 248 | 248 | |
| 249 | | 1. Clone malmo https://github.com/Microsoft/malmo |
| 249 | 1. Clone Malmo |
| 250 | ```bash |
| 251 | git clone https://github.com/Microsoft/malmo |
| 252 | ``` |
| 253 | NOTE: No need to compile Malmo, as a pre-built version (MalmoPython) is already |
| 254 | included in the directory `../rocca/malmo`. All that is required is to install |
| 255 | the necessary dependencies ([Windows](https://github.com/microsoft/malmo/blob/master/doc/install_windows.md), [Linux](https://github.com/microsoft/malmo/blob/master/doc/install_linux.md), [MacOSX](https://github.com/microsoft/malmo/blob/master/doc/install_macosx.md)) in order to launch Minecraft. |
| 250 | 256 | |
| 251 | | Note: No need to compile malmo as a pre-built version (MalmoPython) |
| 252 | | has been included under `../rocca/malmo`. Only install the required |
| 253 | | dependencies to launch minecraft. |
| 257 | 2. Once the dependencies are installed, launch Minecraft at `port 10000` |
| 258 | ```bash |
| 259 | cd Minecraft |
| 260 | .launchClient.sh -port 10000 |
| 261 | ``` |
| 254 | 262 | |
| 255 | | 2. Launch `<MALMO>/Minecraft/launchClient.sh`. |
| 256 | | |
| 257 | | 3. Launch collect diamonds `python collect_diamonds.py`. |
| 258 | | |
| 259 | | - Note: If there is a need to visualize mined cognitive schematics, |
| 260 | | do the following before step 3. |
| 261 | | |
| 262 | | - Build and run atompace-explorer here |
| 263 | | https://github.com/tanksha/atomspace-explorer rocca_demo branch. |
| 263 | 3. Launch the example |
| 264 | ```bash |
| 265 | python collect_diamonds.py |
| 266 | ``` |
| 264 | 267 | |
| 265 | | - Start the RESTAPI `python start_rest_service.py` |
| 268 | Note: If there is a need to visualize mined cognitive schematics using atompace-explorer, |
| 269 | the following steps are required before launching the example. |
| 266 | 270 | |
| 267 | | - Open `collect_diamonds.py` and set `self.visualize_cogscm = True` |
| 271 | a. Build and run atompace-explorer [here] (https://github.com/tanksha/atomspace-explorer rocca_demo branch). |
| 272 | b. Start the RESTAPI client (which creates an atomspace to store cognitive schematics to be visualized) |
| 273 | ```bash |
| 274 | python start_rest_service.py |
| 275 | ``` |
| 276 | c. Set `self.visualize_cogscm = True` in `collect_diamonds.py` |