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

ValueError: Error: link base_link given but not found in the URDF #156

Open
tekntrash opened this issue Sep 20, 2024 · 1 comment
Open

Comments

@tekntrash
Copy link

No matter what URDF file we use the result is always the error ValueError: Error: link base_link given but not found in the URDF

@dariooo512
Copy link

dariooo512 commented Sep 23, 2024

if your urdf model does not contain any link with name base_link you will need to specify the base of the chain using base_elements. See Docs

Sample:

ikpy.chain.Chain.from_urdf_file("dofbot.urdf") # has base_link 
ikpy.chain.Chain.from_urdf_file("g1_right_arm.urdf", base_elements=['right_shoulder_pitch_link']) # does not have base link

I think the error can be improved by explaining this

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