File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed
manipulation/franka_emika_panda Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ def domain_randomize(
7272 'cam_quat' : 0 ,
7373 'light_pos' : 0 ,
7474 'light_dir' : 0 ,
75- 'light_directional ' : 0 ,
75+ 'light_type ' : 0 ,
7676 'light_castshadow' : 0 ,
7777 })
7878 rng = jax .random .key (0 )
@@ -151,15 +151,15 @@ def rand(rng: jax.Array, light_position: jax.Array):
151151 ).astype (jp .float32 )
152152
153153 # No need to randomize into specular lighting
154- light_directional = jp .ones ((nlight ,))
154+ light_type = jp .ones ((nlight ,))
155155
156156 return (
157157 geom_rgba ,
158158 geom_matid ,
159159 cam_pos ,
160160 cam_quat ,
161161 light_dir ,
162- light_directional ,
162+ light_type ,
163163 light_castshadow ,
164164 )
165165
@@ -169,7 +169,7 @@ def rand(rng: jax.Array, light_position: jax.Array):
169169 cam_pos ,
170170 cam_quat ,
171171 light_dir ,
172- light_directional ,
172+ light_type ,
173173 light_castshadow ,
174174 ) = rand (jax .random .split (rng , num_worlds ), light_positions )
175175
@@ -180,7 +180,7 @@ def rand(rng: jax.Array, light_position: jax.Array):
180180 'cam_quat' : cam_quat ,
181181 'light_pos' : light_positions ,
182182 'light_dir' : light_dir ,
183- 'light_directional ' : light_directional ,
183+ 'light_type ' : light_type ,
184184 'light_castshadow' : light_castshadow ,
185185 })
186186
Original file line number Diff line number Diff line change @@ -196,7 +196,7 @@ def _identity_vision_randomization_fn(
196196 'geom_size' : 0 ,
197197 'light_pos' : 0 ,
198198 'light_dir' : 0 ,
199- 'light_directional ' : 0 ,
199+ 'light_type ' : 0 ,
200200 'light_castshadow' : 0 ,
201201 'light_cutoff' : 0 ,
202202 })
@@ -218,8 +218,8 @@ def _identity_vision_randomization_fn(
218218 'light_dir' : jp .repeat (
219219 jp .expand_dims (mjx_model .light_dir , 0 ), num_worlds , axis = 0
220220 ),
221- 'light_directional ' : jp .repeat (
222- jp .expand_dims (mjx_model .light_directional , 0 ), num_worlds , axis = 0
221+ 'light_type ' : jp .repeat (
222+ jp .expand_dims (mjx_model .light_type , 0 ), num_worlds , axis = 0
223223 ),
224224 'light_castshadow' : jp .repeat (
225225 jp .expand_dims (mjx_model .light_castshadow , 0 ), num_worlds , axis = 0
@@ -245,7 +245,7 @@ def _supplement_vision_randomization_fn(
245245 'geom_size' ,
246246 'light_pos' ,
247247 'light_dir' ,
248- 'light_directional ' ,
248+ 'light_type ' ,
249249 'light_castshadow' ,
250250 'light_cutoff' ,
251251 ]
@@ -292,7 +292,7 @@ def __init__(
292292 'geom_size' ,
293293 'light_pos' ,
294294 'light_dir' ,
295- 'light_directional ' ,
295+ 'light_type ' ,
296296 'light_castshadow' ,
297297 'light_cutoff' ,
298298 ]
You can’t perform that action at this time.
0 commit comments