Skip to content

Commit

Permalink
disable hand camera on panda (people should use the real sense panda …
Browse files Browse the repository at this point in the history
…config
  • Loading branch information
StoneT2000 committed Jan 25, 2024
1 parent f4ea56c commit 29497ae
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 14 deletions.
1 change: 0 additions & 1 deletion examples/benchmarking/benchmark_gpu_sim.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ def main(args):
env = gym.make(args.env_id, num_envs=num_envs, obs_mode=args.obs_mode, enable_shadow=True, render_mode=args.render_mode, control_mode="pd_joint_delta_pos", sim_freq=100, control_freq=50)
print(f"[INFO]: Gym observation space: {env.observation_space}")
print(f"[INFO]: Gym action space: {env.action_space}")

images = []
video_nrows=int(np.sqrt(num_envs))
with torch.inference_mode():
Expand Down
26 changes: 13 additions & 13 deletions mani_skill2/agents/robots/panda/panda.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,16 +308,16 @@ def build_grasp_pose(approaching, closing, center):
T[:3, 3] = center
return sapien.Pose(T)

sensor_configs = [
CameraConfig(
uid="hand_camera",
p=[0.0464982, -0.0200011, 0.0360011],
q=[0, 0.70710678, 0, 0.70710678],
width=128,
height=128,
fov=1.57,
near=0.01,
far=10,
entity_uid="panda_hand",
)
]
# sensor_configs = [
# CameraConfig(
# uid="hand_camera",
# p=[0.0464982, -0.0200011, 0.0360011],
# q=[0, 0.70710678, 0, 0.70710678],
# width=128,
# height=128,
# fov=1.57,
# near=0.01,
# far=10,
# entity_uid="panda_hand",
# )
# ]

0 comments on commit 29497ae

Please sign in to comment.