Skip to content

Commit 1961f89

Browse files
committed
fixing some comments and double checking functionality
1 parent 71f9086 commit 1961f89

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

Diff for: source/extensions/omni.isaac.lab/test/envs/test_scale_randomization.py

+4-14
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,7 @@
44
# SPDX-License-Identifier: BSD-3-Clause
55

66
"""
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.
188
"""
199

2010
from __future__ import annotations
@@ -310,7 +300,7 @@ def test_scale_randomization(self):
310300

311301
stage = omni.usd.get_context().get_stage()
312302

313-
# Test to make sure randomized values are truly random
303+
# test to make sure randomized values are truly random
314304
applied_scaling_randomization = set()
315305
prim_paths = sim_utils.find_matching_prim_paths("/World/envs/env_.*/cube1")
316306
for i in range(3):
@@ -322,7 +312,7 @@ def test_scale_randomization(self):
322312
)
323313
applied_scaling_randomization.add(scale_spec.default)
324314

325-
# Test to make sure that fixed values are assigned correctly
315+
# test to make sure that fixed values are assigned correctly
326316
prim_paths = sim_utils.find_matching_prim_paths("/World/envs/env_.*/cube2")
327317
for i in range(3):
328318
prim_spec = Sdf.CreatePrimInLayer(stage.GetRootLayer(), prim_paths[i])
@@ -343,7 +333,7 @@ def test_scale_randomization(self):
343333
# update counter
344334
count += 1
345335

346-
# After 2 iterations finish the test and close env
336+
# after 2 iterations finish the test and close env
347337
if count >= 200:
348338
env.close()
349339
break

0 commit comments

Comments
 (0)