Describe the bug
When export depth data from TiledCamera, I got image data filled with [0, 1, 2, ...] (values with int type). I try to debug it, and find it's the following codes leading to this bug.
source code in /source/isaaclab/isaaclab/sensors/camera/tiled_camera.py, line 249-253, branch release/2.2.0:
# convert data buffer to warp array
if isinstance(tiled_data_buffer, np.ndarray):
tiled_data_buffer = wp.array(tiled_data_buffer, device=self.device, dtype=wp.uint8)
else:
tiled_data_buffer = tiled_data_buffer.to(device=self.device)
In each simulation steps, the depth data (float) is written into tiled_data_buffer. And in here, it converted into uint8.
I don't know why it should make a type conversion, but the results is, for example, the depth data [0.12, 1.3, 2.44, ..] is converted into [0, 1, 2, ...], leading to the bug.
Pleas help to fix this bug. Thanks.