Skip to content

Commit

Permalink
runs formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
Mayankm96 committed Oct 6, 2024
1 parent e0caec0 commit 89df3ec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.
"""
Expand Down

0 comments on commit 89df3ec

Please sign in to comment.