minosworld / minos

MINOS: Multimodal Indoor Simulator
MIT License
201 stars 33 forks source link

How to get Agent trajectory image? #68

Closed hasifast closed 5 years ago

hasifast commented 6 years ago

How can i get the image as shown in figure1(b)of paper (MINOS: Multimodal Indoor Simulator for Navigation in Complex Environments) of agent trajectory where i have navigated. I actually want to see the path the agent has followed. Image is shown here, image

msavva commented 6 years ago

Please see https://github.com/minosworld/minos/blob/dev/FAQ.md#getting-shortest-path-to-goal-and-navigation-map-data for the relevant parameters. The gym demo.py also includes example code that saves the navigation map and visualized shortest path from agent position to goal at each step. You can try this by running python3 demo.py -s map --save_observations.

If by "path" you mean the traversed path, then that is not actually what the above visualization plots. You can create a path visualization using the minos/server/visualize_traces.js script as follows:

The visualize_traces.js script has additional parameters to control the output that you can see by running with the -h argument.