14
14
import omni .isaac .lab .sim as sim_utils
15
15
from omni .isaac .lab .assets import Articulation , RigidObject
16
16
from omni .isaac .lab .scene import InteractiveSceneCfg
17
- from omni .isaac .lab .sensors import TiledCamera , TiledCameraCfg , save_images_to_file
17
+ from omni .isaac .lab .sensors import Camera , CameraCfg , TiledCamera , TiledCameraCfg , save_images_to_file
18
18
from omni .isaac .lab .sensors .camera .tiled_camera import TiledCameraOld
19
19
from omni .isaac .lab .sim import PhysxCfg , SimulationCfg
20
20
from omni .isaac .lab .sim .spawners .materials .physics_materials_cfg import RigidBodyMaterialCfg
28
28
@configclass
29
29
class ShadowHandRGBCameraEnvCfg (ShadowHandEnvCfg ):
30
30
# scene
31
- scene : InteractiveSceneCfg = InteractiveSceneCfg (num_envs = 64 , env_spacing = 5.0 , replicate_physics = True )
31
+ scene : InteractiveSceneCfg = InteractiveSceneCfg (num_envs = 128 , env_spacing = 5.0 , replicate_physics = True )
32
32
33
33
# camera
34
34
tiled_camera : TiledCameraCfg = TiledCameraCfg (
@@ -43,6 +43,19 @@ class ShadowHandRGBCameraEnvCfg(ShadowHandEnvCfg):
43
43
width = 320 ,
44
44
height = 240 ,
45
45
)
46
+ # tiled_camera: CameraCfg = CameraCfg(
47
+ # prim_path="/World/envs/env_.*/Camera",
48
+ # offset=TiledCameraCfg.OffsetCfg(pos=(0.0, -0.27, 1.5), rot=(0.0, 0.0, 0.0, -1.0), convention="opengl"),
49
+ # # offset=TiledCameraCfg.OffsetCfg(pos=(-2.0, 0.0, 0.75), rot=(-0.5, -0.5, 0.5, 0.5), convention="opengl"),
50
+ # data_types=["rgb"],
51
+ # # class_type=TiledCameraOld,
52
+ # spawn=sim_utils.PinholeCameraCfg(
53
+ # focal_length=24.0, focus_distance=400.0, horizontal_aperture=20.955, clipping_range=(0.1, 20.0)
54
+ # ),
55
+ # width=320,
56
+ # height=240,
57
+ # )
58
+
46
59
write_image_to_file = False
47
60
48
61
# env
0 commit comments