How to save occupancy map via python

During the process of randomization, I would like to get the occupancy map via Python for different steps.
I went through the doc about occupancy map (Occupancy Extension [omni.isaac.occupancy_map] — isaac_sim 2022.2.1-beta.29 documentation), but get no idea still.

The following are three ways I tried as shown in the figures:

Can you please help me with that? Any example code is preferred!

Thanks a lot!

check this code of mine :) GRADE-RR/ at ac928d7c0d00986e37f4fdab82c44d9d277fc845 · eliabntt/GRADE-RR · GitHub

Dear @eliabntt94 , Thank you so much for your help, the question is solved!


This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.