The version I used is 4.0.0, and I used the following code to try to get the depth image, but it failed. How to get depth image?
self._camera = scene.add(Camera(
prim_path="/World/camera1",
name="camera1",
position=self.camera_position,
frequency=20,
resolution=(256, 256),
orientation=rot_utils.euler_angles_to_quats(np.array([0, 20, 180]), degrees=True),
))
self._camera.initialize()
...
self._camera.add_motion_vectors_to_frame()
self._camera.add_distance_to_camera_to_frame()
...
self._camera.get_data() # error 'Camera' object has no attribute 'get_data'
self._camera.get_depth() # return None