@@ -30,13 +30,10 @@ class LibraryBackground(Background):
3030 object_min_z : float
3131 spawn_cfg_addon : dict [str , Any ] = {}
3232 asset_cfg_addon : dict [str , Any ] = {}
33- reset_nested_physics : bool = False
3433
35- def __init__ (self , reset_nested_physics : bool | None = None , ** kwargs ):
34+ def __init__ (self , ** kwargs ):
3635 # Check lazy USD paths are set by here
3736 assert self .usd_path is not None
38- if reset_nested_physics is None :
39- reset_nested_physics = self .reset_nested_physics
4037 super ().__init__ (
4138 name = self .name ,
4239 tags = self .tags ,
@@ -45,7 +42,6 @@ def __init__(self, reset_nested_physics: bool | None = None, **kwargs):
4542 object_min_z = self .object_min_z ,
4643 spawn_cfg_addon = self .spawn_cfg_addon ,
4744 asset_cfg_addon = self .asset_cfg_addon ,
48- reset_nested_physics = reset_nested_physics ,
4945 ** kwargs ,
5046 )
5147
@@ -62,9 +58,6 @@ class KitchenBackground(LibraryBackground):
6258 initial_pose = Pose (position_xyz = (0.772 , 3.39 , - 0.895 ), rotation_xyzw = (0 , 0 , - 0.70711 , 0.70711 ))
6359 object_min_z = - 0.2
6460
65- def __init__ (self ):
66- super ().__init__ ()
67-
6861
6962@register_asset
7063class KitchenWithOpenDrawerBackground (LibraryBackground ):
@@ -80,9 +73,6 @@ class KitchenWithOpenDrawerBackground(LibraryBackground):
8073 initial_pose = Pose (position_xyz = (0.772 , 3.39 , - 0.895 ), rotation_xyzw = (0 , 0 , - 0.70711 , 0.70711 ))
8174 object_min_z = - 0.2
8275
83- def __init__ (self ):
84- super ().__init__ ()
85-
8676
8777@register_asset
8878class PackingTableBackground (LibraryBackground ):
@@ -96,9 +86,6 @@ class PackingTableBackground(LibraryBackground):
9686 initial_pose = Pose (position_xyz = (0.72193 , - 0.04727 , - 0.92512 ), rotation_xyzw = (0.0 , 0.0 , - 0.70711 , 0.70711 ))
9787 object_min_z = - 0.2
9888
99- def __init__ (self ):
100- super ().__init__ ()
101-
10289
10390@register_asset
10491class GalileoBackground (LibraryBackground ):
@@ -112,9 +99,6 @@ class GalileoBackground(LibraryBackground):
11299 initial_pose = Pose (position_xyz = (4.420 , 1.408 , - 0.795 ), rotation_xyzw = (0.0 , 0.0 , 0.0 , 1.0 ))
113100 object_min_z = - 0.2
114101
115- def __init__ (self ):
116- super ().__init__ ()
117-
118102
119103@register_asset
120104class GalileoLocomanipBackground (LibraryBackground ):
@@ -128,9 +112,6 @@ class GalileoLocomanipBackground(LibraryBackground):
128112 initial_pose = Pose (position_xyz = (4.420 , 1.408 , - 0.795 ), rotation_xyzw = (0.0 , 0.0 , 0.0 , 1.0 ))
129113 object_min_z = - 0.2
130114
131- def __init__ (self ):
132- super ().__init__ ()
133-
134115
135116@register_asset
136117class Table (LibraryBackground ):
@@ -143,9 +124,6 @@ class Table(LibraryBackground):
143124 usd_path = f"{ ISAAC_NUCLEUS_DIR } /Props/Mounts/SeattleLabTable/table_instanceable.usd"
144125 object_min_z = - 0.05
145126
146- def __init__ (self ):
147- super ().__init__ ()
148-
149127
150128@register_asset
151129class OfficeTableBackground (LibraryBackground ):
@@ -162,8 +140,8 @@ class OfficeTableBackground(LibraryBackground):
162140 "rigid_props" : sim_utils .RigidBodyPropertiesCfg (kinematic_enabled = True ),
163141 }
164142
165- def __init__ (self ):
166- super ().__init__ (scale = self .scale )
143+ def __init__ (self , ** kwargs ):
144+ super ().__init__ (scale = self .scale , ** kwargs )
167145
168146
169147@register_asset
@@ -179,7 +157,6 @@ class LightwheelKitchenBackground(LibraryBackground):
179157 object_min_z = - 0.2
180158 layout_id = 1
181159 style_id = 1
182- reset_nested_physics = True
183160
184161 def __init__ (
185162 self ,
@@ -228,9 +205,9 @@ class MapleTableRobolab(LibraryBackground):
228205 tags = ["background" , "robolab" ]
229206 usd_path = f"{ ARENA_NUCLEUS_DIR } /Arena/assets/object_library/srl_robolab_assets/scenes/maple_table.usda"
230207 object_min_z = - 0.05
231-
232- def __init__ ( self ):
233- super (). __init__ ()
208+ spawn_cfg_addon = {
209+ "rigid_props" : sim_utils . RigidBodyPropertiesCfg ( kinematic_enabled = True ),
210+ }
234211
235212
236213@register_asset
@@ -239,6 +216,9 @@ class TableOakRobolab(LibraryBackground):
239216 tags = ["background" , "robolab" ]
240217 usd_path = f"{ ARENA_NUCLEUS_DIR } /Arena/assets/object_library/srl_robolab_assets/fixtures/table_oak.usd"
241218 object_min_z = - 0.05
219+ spawn_cfg_addon = {
220+ "rigid_props" : sim_utils .RigidBodyPropertiesCfg (kinematic_enabled = True ),
221+ }
242222
243223
244224# -----------------------------------------------------------------------------
@@ -252,7 +232,6 @@ class ReplicatorKitchenBackground(LibraryBackground):
252232 tags = ["background" , "replicator" ]
253233 initial_pose = Pose .identity ()
254234 object_min_z = - 0.2
255- reset_nested_physics = True
256235
257236 def get_viewer_cfg (self ) -> ViewerCfg :
258237 return ViewerCfg (eye = (0.0 , - 1.0 , 1.65 ), lookat = (0.0 , 0.0 , 1.35 ))
0 commit comments