4
4
# SPDX-License-Identifier: BSD-3-Clause
5
5
6
6
"""
7
- This script creates a simple environment with a floating cube. The cube is controlled by a PD
8
- controller to track an arbitrary target position.
9
-
10
- While going through this tutorial, we recommend you to pay attention to how a custom action term
11
- is defined. The action term is responsible for processing the raw actions and applying them to the
12
- scene entities. The rest of the environment is similar to the previous tutorials.
13
-
14
- .. code-block:: bash
15
-
16
- # Run the script
17
- ./isaaclab.sh -p source/standalone/tutorials/03_envs/create_cube_base_env.py --num_envs 32
7
+ This script checks the functionality of scale randomization.
18
8
"""
19
9
20
10
from __future__ import annotations
@@ -310,7 +300,7 @@ def test_scale_randomization(self):
310
300
311
301
stage = omni .usd .get_context ().get_stage ()
312
302
313
- # Test to make sure randomized values are truly random
303
+ # test to make sure randomized values are truly random
314
304
applied_scaling_randomization = set ()
315
305
prim_paths = sim_utils .find_matching_prim_paths ("/World/envs/env_.*/cube1" )
316
306
for i in range (3 ):
@@ -322,7 +312,7 @@ def test_scale_randomization(self):
322
312
)
323
313
applied_scaling_randomization .add (scale_spec .default )
324
314
325
- # Test to make sure that fixed values are assigned correctly
315
+ # test to make sure that fixed values are assigned correctly
326
316
prim_paths = sim_utils .find_matching_prim_paths ("/World/envs/env_.*/cube2" )
327
317
for i in range (3 ):
328
318
prim_spec = Sdf .CreatePrimInLayer (stage .GetRootLayer (), prim_paths [i ])
@@ -343,7 +333,7 @@ def test_scale_randomization(self):
343
333
# update counter
344
334
count += 1
345
335
346
- # After 2 iterations finish the test and close env
336
+ # after 2 iterations finish the test and close env
347
337
if count >= 200 :
348
338
env .close ()
349
339
break
0 commit comments