question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Creating chain from URDF

See original GitHub issue

Hi, I am trying to create a chain from URDF file of Baxter and is facing following error. I can’t figure out why? What is wrong in this declaration? Any help please

my_chain = ikpy.chain.Chain.from_urdf_file("../baxter_common/baxter_description/urdf/baxter.urdf",
    base_elements=["right_upper_shoulder", "right_lower_shoulder", "right_upper_elbow", "right_lower_elbow", 
                   "right_upper_forearm", "right_lower_forearm", "right_wrist", "right_hand"], 
    last_link_vector=[0.0, 0.0, 0.025], 
    active_links_mask=[False, True, True, True, True, True, True,True])

I am using this file: Baxter URDF

And get this error!!!

raise ValueError("Your active links mask length of {} is different from the number of your links, which is {}".format(len(active_links_mask), len(self.links)))
ValueError: Your active links mask length of 8 is different from the number of your links, which is 2

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Rogerpicommented, Feb 9, 2017

Check https://github.com/Phylliade/ikpy/blob/master/src/ikpy/chain.py , from_urdf_file function

Maybe the issue is that you have a diferent base link name. I used a urdf file generated from a xacro file and I had the same trouble. Change it in the arguments:

my_chain = ikpy.chain.Chain.from_urdf_file(“./src/moveo/urdf/moveo.urdf”,base_elements=[“base”])

“./src/moveo/urdf/moveo.urdf” is my urdf file “base” the base link name on the urdf file

0reactions
stale[bot]commented, May 3, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ikpy.chain module — ikpy 3.3.3 documentation
ikpy.chain module¶ ... This module implements the Chain class. ... IKPY works with links, whereras URDF works with joints and links. The mapping...
Read more >
URDF and SRDF — moveit_tutorials Kinetic documentation
A serial chain is specified using the base link and the tip link. The tip link in a chain is the child link...
Read more >
[ROS Q&A] Parallel Robots - Implementing closed kinematic ...
Creating robots with Closed Kinematics structures in URDF is not supported. Thats why we have to use SDF format to be able to...
Read more >
IKpy Quick-start - Jupyter Notebooks Gallery
The basic element of IKPy is the kinematic Chain . To create a chain from an URDF file : In [5]:. my_chain =...
Read more >
URDF, Kinematics, and KDL - Nick Rotella
There are several functions to build the KDL tree directly from a string or parameter here as well, but they all first convert...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found