Depth and RGB pixel array from camera in Mujoco py

Discussion in 'Simulation' started by Kez Smithson, Apr 25, 2019.

  1. Hello,

    I have added a camera to my xml model and am training it with gym and mujoco_py. I would like to use the depth and rgb values form my camera for training. Do you know how I can access the depth and rgb values in Mujoco py? is there a function?

    Many Thanks,

    Kez
     
  2. Something like below
    image,depth = copy.deepcopy(sim.render(width = width_img, height = height_img, camera_name = 'gripper_camera',depth=True))