Noobie question. I am struggling on how to add an usd asset into a scene in Isaac Sim via python code. In the default library under /Isaac/Props/Mounts there is an asset called “ur10_mount.usd”, how should the code look like if I tried to add this .usd file?
Here’s how my code looks like now…
def setup_scene(self):
world = self.get_world()
world.scene.add_default_ground_plane()
stand = world.scene.add_usd("ur10_mount.usd")
from omni.isaac.core.utils.nucleus import find_nucleus_server
from omni.isaac.core.utils.stage import add_reference_to_stage
import carb
def setup_scene(self):
world = World.instance()
result, nucleus_server = find_nucleus_server()
if result is False:
carb.log_error("Could not find nucleus server with /Isaac folder")
usd_path = nucleus_server + "/Isaac/Props/Mounts/ur10_mount.usd"
stand = add_reference_to_stage(usd_path=usd_path, prim_path="/World/Stand")
I noticed the added asset is down-scaled by a factor of 100, have you encountered this problem? I’ll keep on looking and trying to fix it as for now :)