forked from clvrai/furniture
-
Notifications
You must be signed in to change notification settings - Fork 0
/
__init__.py
46 lines (36 loc) · 1.23 KB
/
__init__.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
""" Define all environments and provide helper functions to load environments. """
from env.base import make_env, make_vec_env
# register all environment to use
from env.furniture_baxter import FurnitureBaxterEnv
from env.furniture_sawyer import FurnitureSawyerEnv
from env.furniture_cursor import FurnitureCursorEnv
from env.furniture_baxter_block import FurnitureBaxterBlockEnv
# OpenAI gym interface
from gym.envs.registration import register
# add cursor environment to Gym
register(
id='furniture-cursor-v0',
entry_point='env.furniture_gym:FurnitureGym',
kwargs={'name': 'FurnitureCursorEnv',
'furniture_id': 0,
'background': 'Lab',
'port': 1050}
)
# add sawyer environment to Gym
register(
id='furniture-sawyer-v0',
entry_point='env.furniture_gym:FurnitureGym',
kwargs={'name': 'FurnitureSawyerEnv',
'furniture_name': 'swivel_chair_0700',
'background': 'Industrial',
'port': 1050}
)
# add baxter environment to Gym
register(
id='furniture-baxter-v0',
entry_point='env.furniture_gym:FurnitureGym',
kwargs={'name': 'FurnitureBaxterEnv',
'furniture_id': 1,
'background': 'Interior',
'port': 1050}
)