Skip to content

This repository provides a simulation of 4-Room-World environment.

License

Notifications You must be signed in to change notification settings

LinghengMeng/4_Room_World_Environment

Repository files navigation

4_Room_World_Environment

This repository provides a simulation of 4-Room-World environment based on V-REP, and the virtual environments implemented in this repository share the same interfaces with OpenAi Gym.

There are in totall 4 Types of 4-Room-World Environment with various complexities implemented in this repository. For more detail information on these virtual environments, please refer to 4 Types of 4-Room-World Environment.

Step 1: Create 4-Room-World Scene (Optional)

FourRoomScene folder contains files to create a scene using V-REP api(If you do not have V-REP, please download from V-REP).

  • 4room_world_models: V-REP models used to create a scene

  • VrepRemoteApiBindings: V-REP dynamic lib and api-script

  • CSV files: specify position of loaded objects

     * "wall_brick_location.csv": position of wall brick
     * "floor_tile_location.csv": position of wall floor tile
     * "hallway_location.csv": position of hallway
     * "goal_location.csv": position of goal
     * "standing_participant_location.csv": initial position of standing participant which is static.
    
  • Script to create a scene: create_4room_world.py

  • V-REP scene created by script: 4_room_world.ttt

                                           

                                                                            Figure 1. 4Room World Screenshots

Step 2: Load Scene to V-REP

Load scene pre-created or scene created by yourself into V-REP.

  • FourRoomGridWorld & FourRoomContinuousWorld: 4_room_world.ttt
  • FourRoomOverheadVisionWorld: 4_room_overhead_vision_world.ttt
  • FourRoomFirstPersonVisionWorld: 4_room_first_person_vision_world.ttt

Step 3: Choose 4-Room-World Virtual Environment

For detailed information on these virtual environments, please refer to 4 Types of 4-Room-World Environment.

  1. FourRoomGridWorld
  2. FourRoomContinuousWorld
  3. FourRoomOverheadVisionWorld
  4. FourRoomFirstPersonVisionWorld

Step 4: Use 4-Room-World Virtual Environment as You Using OpenAi Gym

Demo scripts on how to use these virtual environments can be found in:

  1. interaction_participant_and_4room_grid_world_env.py
  2. interaction_participant_and_4room_continuous_world_env.py

You are welcom to contribute to this reposity and make it more versatile :)