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

Add IK Test Cases for Non serial chains #43

Merged
merged 3 commits into from
Aug 29, 2024

Conversation

StoneT2000
Copy link
Contributor

@StoneT2000 StoneT2000 commented Aug 29, 2024

Tests for #42

Visualized looks like this:

image

Not sure why some generated IK goals are under the floor, maybe the robot URDF has poorly set joint limits?

Otherwise seems to all solve anyway:

Testing kuka_iiwa IK
IK took 0.373344 seconds
IK converged number: 2673 / 10000
IK took 30 iterations
IK solved 912 / 1000 goals
Testing widowx IK
IK took 0.244910 seconds
IK converged number: 3472 / 10000
IK took 30 iterations
IK solved 977 / 1000 goals

@LemonPi
Copy link
Member

LemonPi commented Aug 29, 2024

The tests failed because of some pathing issues to the new ur5 robot I added for a test - could you rebase this branch onto the latest master?

The goals are generated by sampling joint values within the joint limits without considering obstacles, so the floor is actually cosmetic. Adding constraints to IK would be interesting. The naive way is probably to accept soft constraints as a differentiable external cost function on the joint values q. Another way would be to do gradient projection using the null space of the Jacobian to satisfy the constraints.

@LemonPi LemonPi merged commit b744dd0 into UM-ARM-Lab:master Aug 29, 2024
3 checks passed
@StoneT2000 StoneT2000 deleted the add-ik-test-cases branch August 29, 2024 23:42
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

Successfully merging this pull request may close these issues.

2 participants