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

RuntimeError: setJointOrder failed #101

Open
hesic73 opened this issue Dec 13, 2024 · 1 comment
Open

RuntimeError: setJointOrder failed #101

hesic73 opened this issue Dec 13, 2024 · 1 comment

Comments

@hesic73
Copy link

hesic73 commented Dec 13, 2024

I am using mplib version 0.1.1 with a custom robot setup (an Allegro Hand mounted on a Franka Panda arm) in ManiSkill. When I attempt to provide only the Franka Panda links and joints to the ArticulatedModel, I encounter the following error:

        link_names = ['panda_link0', 'panda_link1', 'panda_link2', 'panda_link3', 'panda_link4',
                      'panda_link5', 'panda_link6', 'panda_link7', 'part_studio_link', 'base_link']
        joint_names = ['panda_joint1', 'panda_joint2', 'panda_joint3', 'panda_joint4',
                       'panda_joint5', 'panda_joint6', 'panda_joint7', ]

        print(link_names)
        print(joint_names)

        urdf_path = Path(self.env_agent.urdf_path)
        srdf_path = urdf_path.with_name(urdf_path.stem + "_mplib.srdf")
        # urdf_path = self.env_agent.urdf_path
        # srdf_path = urdf_path.replace(".urdf", ".srdf")
        planner = mplib.Planner(
            urdf=str(urdf_path),
            srdf=str(srdf_path),
            user_link_names=link_names,
            user_joint_names=joint_names,
            move_group="base_link",
            joint_vel_limits=np.ones(7) * self.joint_vel_limits,
            joint_acc_limits=np.ones(7) * self.joint_acc_limits,
        )
File "/home/abrar/miniconda3/envs/hsc_py39/lib/python3.9/site-packages/mplib/planner.py", line 65, in __init__
    self.robot = ArticulatedModel(
RuntimeError: setJointOrder failed

Does anyone know how to resolve this issue? Thanks!

@Lexseal
Copy link
Collaborator

Lexseal commented Jan 24, 2025

What happens if you remove the joint orders? In newer versions there should be a default joint order. Thanks!

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

2 participants