Can't execute command: "ApplyNavMeshObstacleSchema", it wasn't registered or ambigious

I’m currently developing a navigation system using Isaac Sim (version 2024.1 / 4.0+), and I attempted to programmatically add a NavMesh obstacle to a prim using the following command:

import omni.kit
omni.kit.commands.execute(“ApplyNavMeshObstacleSchema”, prim_path=“/World/MyCube”)

However, it throws the following error at runtime:
[Error] [omni.kit.commands.command] Can’t execute command: “ApplyNavMeshObstacleSchema”, it wasn’t registered or ambiguous.

I checked the command list under Window > Commands, and there is no such command registered. I’ve enabled the following extensions:

“isaacsim.exp.base” = {}
“omni.anim.graph.schema” = {}
“omni.physx.commands” = {}
“omni.anim.navigation.schema” = {}
“omni.anim.navigation.core” = {}
“omni.anim.navigation.recast” = {}
“omni.anim.navigation.ui” = {}
“omni.anim.navigation.bundle” = {}

But this mainly covers baking and querying the NavMesh, not assigning obstacle properties to individual prims.

So I would like to ask:
1. Is ApplyNavMeshObstacleSchema a deprecated or internal-only command?
2. What is the correct way to mark a prim as a NavMesh obstacle via Python script (no GUI)?
3. Should I apply a specific USD schema manually, or is there an alternative command/API to achieve this?

Any guidance would be greatly appreciated. Thanks in advance!

To help us investigate this further, could you let us know where you originally found the command ApplyNavMeshObstacleSchema? This will help us determine if it’s a deprecated command, an internal function, or a command from a different version of the documentation or a specific extension.

In the meantime, could you check if Omniverse Extensions API Commands documentation is helpful?

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