From 89df3ecb3f719f945cc02760c991011b78a4ef09 Mon Sep 17 00:00:00 2001 From: Mayank Mittal Date: Sun, 6 Oct 2024 21:13:10 +0200 Subject: [PATCH] runs formatter --- .../omni.isaac.lab/omni/isaac/lab/envs/manager_based_env.py | 3 ++- .../omni.isaac.lab/omni/isaac/lab/envs/mdp/events.py | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/source/extensions/omni.isaac.lab/omni/isaac/lab/envs/manager_based_env.py b/source/extensions/omni.isaac.lab/omni/isaac/lab/envs/manager_based_env.py index f193faad05..b2b83677c5 100644 --- a/source/extensions/omni.isaac.lab/omni/isaac/lab/envs/manager_based_env.py +++ b/source/extensions/omni.isaac.lab/omni/isaac/lab/envs/manager_based_env.py @@ -118,6 +118,7 @@ def __init__(self, cfg: ManagerBasedEnvCfg): # check for valid config type from omni.isaac.lab.managers import EventTermCfg + # randomization at scene level for term_name, term_cfg in self.cfg.events.__dict__.items(): # check for non config @@ -132,7 +133,7 @@ def __init__(self, cfg: ManagerBasedEnvCfg): if self.scene.cfg.replicate_physics: carb.log_warn("You are not smart.") term_cfg.func(self, None, **term_cfg.params) - + # set up camera viewport controller # viewport is not available in other rendering modes so the function will throw a warning # FIXME: This needs to be fixed in the future when we unify the UI functionalities even for diff --git a/source/extensions/omni.isaac.lab/omni/isaac/lab/envs/mdp/events.py b/source/extensions/omni.isaac.lab/omni/isaac/lab/envs/mdp/events.py index 0f74f59803..1246609104 100644 --- a/source/extensions/omni.isaac.lab/omni/isaac/lab/envs/mdp/events.py +++ b/source/extensions/omni.isaac.lab/omni/isaac/lab/envs/mdp/events.py @@ -19,8 +19,8 @@ from typing import TYPE_CHECKING, Literal import carb -import omni.usd import omni.physics.tensors.impl.api as physx +import omni.usd from pxr import Gf, Sdf import omni.isaac.lab.sim as sim_utils @@ -40,8 +40,8 @@ def randomize_shape_color( asset_cfg: SceneEntityCfg, ): """Randomize the color of a shape. - - This function randomizes the color of USD shapes created using :class:`omni.isaac.lab.sim.spawn.ShapeCfg` + + This function randomizes the color of USD shapes created using :class:`omni.isaac.lab.sim.spawn.ShapeCfg` class. It modifies the attribute: "geometry/material/Shader.inputs:diffuseColor" under the prims corresponding to the asset. """