Skip to content

Commit

Permalink
Update shadowhand with old tiled camera
Browse files Browse the repository at this point in the history
  • Loading branch information
Dhoeller19 committed Jul 31, 2024
1 parent b77e4b6 commit 7929f1b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -161,4 +161,4 @@ def reshape_tiled_image_old(

# copy the pixel values into the batched image
for i in range(num_channels):
batched_image[camera_id, height_id, width_id, i] = tiled_image_buffer[pixel_start + i]
batched_image[camera_id, height_id, width_id, i] = tiled_image_buffer[pixel_start + i]
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
from omni.isaac.lab.assets import Articulation, RigidObject
from omni.isaac.lab.scene import InteractiveSceneCfg
from omni.isaac.lab.sensors import TiledCamera, TiledCameraCfg, save_images_to_file
from omni.isaac.lab.sensors.camera.tiled_camera import TiledCameraOld
from omni.isaac.lab.sim import PhysxCfg, SimulationCfg
from omni.isaac.lab.sim.spawners.materials.physics_materials_cfg import RigidBodyMaterialCfg
from omni.isaac.lab.sim.spawners.from_files import GroundPlaneCfg, spawn_ground_plane
Expand All @@ -35,6 +36,8 @@ class ShadowHandRGBCameraEnvCfg(ShadowHandEnvCfg):
offset=TiledCameraCfg.OffsetCfg(pos=(0.0, -0.27, 1.5), rot=(0.0, 0.0, 0.0, -1.0), convention="opengl"),
# offset=TiledCameraCfg.OffsetCfg(pos=(-2.0, 0.0, 0.75), rot=(-0.5, -0.5, 0.5, 0.5), convention="opengl"),
data_types=["rgba"],
# data_types=["rgb"],
# class_type=TiledCameraOld,
spawn=sim_utils.PinholeCameraCfg(
focal_length=24.0, focus_distance=400.0, horizontal_aperture=20.955, clipping_range=(0.1, 20.0)
),
Expand Down

0 comments on commit 7929f1b

Please sign in to comment.