-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
Hi, I want to add a wrist-mounted camera for the OpenCabinetDrawer env
I create a config file for the camera
name: "wrist"
position: [0, 0, 1.0]
rotation: [0.9238795, 0, 0.3826834, 0] # transforms3d.euler.euler2quat(-np.pi/3*k, np.pi/4, 0, 'rzyx')
_include: "default_camera.yml"
I try to mount the camera on right_panda_link8 (maybe other link8 is more appropriate) by adding the following code to _load_camera function in base_env.py:
links = self.agent.robot.get_links()
if cam_info['name'] == 'wrist':
camera_mount_actor = links[14]The left image is the world frame image and the right image is my wrist-mounted camera image.
It seems that the camera take a picture from behind the cabinet.
How can I adjust the parameter like position, rotation, and camera_mount_actor to get an appropriate wrist-mounted camera? I have tried a lot but can't get the desired camera.

Metadata
Metadata
Assignees
Labels
No labels