Hi everyone,
I’m working on a project using Isaac Sim and I have a 2D NumPy array representing an occupancy map (0 = free, 1 = occupied). I would like to import this map into Isaac Sim.
Specifically, I’m wondering:
- What’s the best way to convert a NumPy occupancy grid into a usable map inside Isaac Sim?
Any code snippets, extensions, or tools that can help would be greatly appreciated!
Thanks in advance!
Hi @inamsajjad9688! You can try to convert your NumPy occupancy map into an image format (e.g. png) and a yaml file which includes map metadata (cell size, origin, etc.). Isaac Sim would work with this format. Here is a tutorial of how Isaac Sim generates an occupancy map: Mapping — Isaac Sim Documentation. You can refer this tutorial to understand what data and format Isaac Sim uses.
I am not sure how you would use the map in Isaac Sim, but here is a tutorial of using block world generator with a map image: Mapping — Isaac Sim Documentation.
1 Like
Thank you zhengwang.
Is there a python code for this as well?
Do you mean converting from numpy occupancy map to an image? I found an example on GeeksforGeeks Convert a NumPy array to an image - GeeksforGeeks
Hello!
We noticed that this topic hasn’t received any recent responses, so we are closing it for now to help keep the forum organized.
If you’re still experiencing this issue or have additional questions, please feel free to create a new topic with updated details. When doing so, we recommend mentioning or linking to this original topic in your new post—this helps provide context and makes it easier for others to assist you.
Thank you for being part of the NVIDIA Isaac Sim community.
Best regards,
The NVIDIA Isaac Sim Forum Team