Creating chain from URDF
See original GitHub issueHi, 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:
- Created 7 years ago
- Comments:8 (2 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

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
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.