When I try to create navmesh and get its interface in a random policy run on omniisaacgymenvs, it seems to be unable to access/find the volumes. Also, I am running on the latest isaacsim (2023.1.1) and I am enabling the following extensions:
enable_extension(“omni.anim.navigation.bundle”)
enable_extension(“omni.anim.navigation.core”)
enable_extension(“omni.anim.navigation.ui”)
For example, in the latest omniisaacgymenvs, if I run:
python random_policy.py task=Ant
and I create an navmesh in the script editor window.
import omni.usd, omni.kit
from pxr import Sdf
stage = omni.usd.get_context().get_stage()
omni.kit.commands.execute(“CreateNavMeshVolumeCommand”,
parent_prim_path=Sdf.Path(“/World”),
layer=stage.GetRootLayer()
)
Which is successful.
Then, if I run:
import omni.anim.navigation.core as nav
import omni.usd
stage = omni.usd.get_context().get_stage()
inav = nav.acquire_interface()
bake_result = inav.start_navmesh_baking()
volume_count = inav.get_navmesh_volume_count()
print(bake_result, volume_count)
I get: False 0
I tried adjusting the settings of the navmesh and rebaking.
However, if I open IsaacSim with Omniverse, and run a test environment, this process works and I get True 1.
Any thoughts?