@@ -34,14 +34,6 @@ def main(random_selection=False, headless=False, short_exec=False):
34
34
"type" : scene_type ,
35
35
"scene_model" : scene_model ,
36
36
},
37
- "robots" : [
38
- {
39
- "type" : "Turtlebot" ,
40
- "obs_modalities" : ["scan" , "rgb" , "depth" ],
41
- "action_type" : "continuous" ,
42
- "action_normalize" : True ,
43
- },
44
- ],
45
37
}
46
38
47
39
# If the scene type is interactive, also check if we want to quick load or full load the scene
@@ -52,7 +44,15 @@ def main(random_selection=False, headless=False, short_exec=False):
52
44
}
53
45
load_mode = choose_from_options (options = load_options , name = "load mode" , random_selection = random_selection )
54
46
if load_mode == "Quick" :
55
- cfg ["scene" ]["load_object_categories" ] = ["floors" , "walls" , "ceilings" ]
47
+ cfg ["scene" ]["load_object_categories" ] = [
48
+ "floors" ,
49
+ "walls" ,
50
+ "ceilings" ,
51
+ "lawn" ,
52
+ "driveway" ,
53
+ "roof" ,
54
+ "rail_fence" ,
55
+ ]
56
56
57
57
# Load the environment
58
58
env = og .Environment (configs = cfg )
@@ -62,16 +62,13 @@ def main(random_selection=False, headless=False, short_exec=False):
62
62
og .sim .enable_viewer_camera_teleoperation ()
63
63
64
64
# Run a simple loop and reset periodically
65
- max_iterations = 10 if not short_exec else 1
66
- for j in range (max_iterations ):
67
- og .log .info ("Resetting environment" )
68
- env .reset ()
69
- for i in range (100 ):
70
- action = env .action_space .sample ()
71
- state , reward , terminated , truncated , info = env .step (action )
72
- if terminated or truncated :
73
- og .log .info ("Episode finished after {} timesteps" .format (i + 1 ))
74
- break
65
+ steps = 0
66
+ while not short_exec or steps < 1000 :
67
+ state , reward , terminated , truncated , info = env .step (None )
68
+ if terminated or truncated :
69
+ og .log .info ("Episode finished after {} timesteps" .format (steps + 1 ))
70
+ break
71
+ steps += 1
75
72
76
73
# Always close the environment at the end
77
74
og .clear ()
0 commit comments