Save Segmentation Image


I’m currently trying to write my own application to save .png images received from Isaac Sim on the disk. It works well for color images. But when i try to save depth or label images i get this error:

“PANIC ./engine/alice/hooks/message_hook.hpp@199: No message available”

Here is my code :

Where rx_segmentation_image() channel receives message from type SegmentationCameraProto.

I use application navsim_training.subgraph.json to stream the different image types from Isaac Sim and i can visualize the received images in isaac sight.

Thanks in advance.