This repository offers a solution to render a scene of the AI2THOR virtual navigation environment. The main objective of this project is to offer an solution to the users that want to render scenes of the virtual environment AI2THOR. The offered code gives a solution to discrete navigation.
This code is implemented using AI2THOR virtual envirment package. To install all the dependencies use the following command: pip install -r requirements.txt
.
If any error occured during AI2THOR installation, please refer to the following link: https://ai2thor.allenai.org
The python file ai2thor_scene_render.py
consists on a class to create all the information needed to perform a discrete navigation within AI2THOR environment.
In sort, all we need to do in order to create the render of a new scene is to create an object of the class ai2thor_scene_render()
, as it is shown in the following piece of code:
scene1 = ai2thor_scene_render(
scene_name='FloorPlan28',
hdf5_name='scene_401.h5',
gridSize=0.25
)
It is highlighted three parameters:
- scene_name : It is the name of the scene wished to be rendered.
- hdf5_name : Name of the output name.
- gridSize : This number corresponds to the size of the grid, i.e how much the agent will move within the scene.
Once one has created the object, it is as simple as calling the method scene_render()
of the created object to render the new scene. The following code shows an example of how could be done:
scene1.scene_render()
This project only offers the code to render new scenes of the virtual environment AI2THOR. In order to visualize the output obtained from this code, I would encourage you to visit the following repository: https://github.com/caomw/icra2017-visual-navigation-1 . Here is explained in deep detail the concept of discrete navigation as the corresponding files to visualize a scene.