-
Notifications
You must be signed in to change notification settings - Fork 17
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
Runtime Error on simple Cartesian motion #10
Comments
Hi Jan, thanks for the report! The Cartesian motion generator creates a trajectory based on linear paths between the provided end-effector poses. If the IK fails, as suggested by the error message, there actually is no solution (the IK is analytical and looks for case-consistent solutions). Alternatively, you could try using joint motion generation by converting the Cartesian pose to joint positions using forward kinematics. Except for collisions (including self-collisions) there is always a path in joint state connecting two poses. Maybe what you're looking for is motion or path planning that actually takes joint limits and collisions into account. This is not supported by panda-py directly yet, but I'm looking into solutions (either by integrating it directly in the C++ backend or building a Python model on top of panda-py). To make sure this is not a bug, can you provide me with the initial pose you use to run the code? Is it the standard starting pose? |
Thanks for your response! It was indeed the standard starting pose. So you can execute the code after unlocking your panda. The motion should totally be feasible. And the issue happens exactly when the robot is passing the singularity of joint 0 and joint 2 being aligned. I made the script more precise for you.
results in
You see that the first three joints are very close to zero. |
And here is a video: https://youtu.be/YmotsV75smE?si=sfE6ZL3pELoFK1YH |
Hi @JeanElsner,
thanks for the great work here. I came across an edge case in the Cartesian motion generation. Executing the following code ...
produces the following error:
When I shift the goal pose in
y
(see line 5 in the code above), the motion works but the first joint turns around very quickly. Let me know, if you need more data or how we can debug this.Best,
Jan
The text was updated successfully, but these errors were encountered: