Forward kinematics running into recursion error for a robot with a prismatic joint (MWE provided). #566
-
ContextI am testing the forward kinematics by building off of the example script here: https://github.com/facebookresearch/theseus/blob/main/examples/inverse_kinematics.py I am testing a UR5. I have two urdf files, and one has the UR5 base is attached to a linear slider so that it has a translation (prismatic) joint. So, the UR5 can translate its base along that linear slider, in addition to the usual revolute DOFs for the robot joints. Visually it looks something like this. I have found that running the forward kinematics function from the Minimum Working Example (MWE)Here is the minimum working example code to test:
You will also need the URDF files.
These can be put in the same directory as the URDF of the Panda which Theseus provides:
Testing the MWETo test, suppose the script above is named
Values of 1 and 2 work in that the code does not error out and produces target poses, while a value of 3 results in this recursion depth error:
One can increase the recursion depth, but that hasn't worked for me (I tested up to 3000) and raising it too much can be a bit dangerous. Are prismatic joints supported for the forward kinematics? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Thanks for flagging this and providing the extensive details to reproduce it! @fantaosha can help with this in the next few days soon after he is back from break. |
Beta Was this translation helpful? Give feedback.
Hi @DanielTakeshi, thanks for your interests in Theseus. This is a bug and has been fixed in #568. Let us know if it works.