Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] Missing References for Visual and Collision Attributes When Loading Local .usd Files #1342

Open
yilin404 opened this issue Oct 30, 2024 · 0 comments

Comments

@yilin404
Copy link

I appreciate your hard work on this project, and I hope to contribute by sharing an issue I've encountered.
Description: When using sim_utils.UsdFileCfg in Isaac Sim to import a .usd file, I encounter a warning message stating Missing references found for visual and collision attributes. However, I can successfully import the .usd file by dragging and dropping it, and it displays correctly.
My code is:

CABINET_CFG = ArticulationCfg(
        prim_path="/World/envs/env_.*/Cabinet",
        spawn=sim_utils.UsdFileCfg(
            usd_path=f"{LOCAL_ISAAC_NUCLEUS_DIR}/Props/Sektion_Cabinet/sektion_cabinet_instanceable.usd",
            activate_contact_sensors=False,
        ),
        init_state=ArticulationCfg.InitialStateCfg(
            pos=(0.8, 0, 0.0),
            rot=(0.0, 0.0, 0.0, 1.0),
            joint_pos={
                "door_left_joint": 0.0,
                "door_right_joint": 0.0,
                "drawer_bottom_joint": 0.0,
                "drawer_top_joint": 0.0,
            },
        ),
        actuators={
            "drawers": ImplicitActuatorCfg(
                joint_names_expr=["drawer_top_joint", "drawer_bottom_joint"],
                effort_limit=87.0,
                velocity_limit=100.0,
                stiffness=10.0,
                damping=1.0,
            ),
            "doors": ImplicitActuatorCfg(
                joint_names_expr=["door_left_joint", "door_right_joint"],
                effort_limit=87.0,
                velocity_limit=100.0,
                stiffness=10.0,
                damping=2.5,
            ),
        },
    )

And the result is:
Screenshot from 2024-10-30 19-59-49
Screenshot from 2024-10-30 19-59-10
And when i dragg and dropp it into Isaac Sim, the result is:
Screenshot from 2024-10-30 20-02-42
My Analysis: I suspect this issue may be related to the relative path of the file, but I haven’t been able to resolve it. If you have any insights or suggestions, they would be greatly appreciated.

Thank you very much for your time and help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant