Skip to content

Issue to reach position AND orientation (3axes) target #138

@Benjamin797

Description

@Benjamin797

Hello,

I have been exploring your algorithm for more than a month and my goal is to solve the inverse kinematic for articulated arms that I create directly in python with your functions. My project requires me to solve the problem in position AND orientation on the 3 axes (orientation_mode = 'all'). However, despite several attempts, the optimization gives me results where the position is reached but not the orientation. Does IkPy work well for an orientation_mode = 'all' resolution? If yes, can you help me to solve this problem? I really need it.
Here is my piece of code allowing the resolution of the ik. It is done in two steps (as indicated in your example) but it does not manage to reach the position + orientation (3 axes) even though I know that it is possible to reach it (which I managed to prove previously in my project).

Thanks in advance.

`
res = chain.inverse_kinematics(target.coordToList())
res = chain.inverse_kinematics(target_position=target.coordToList(), target_orientation=targ_ori,
orientation_mode= 'all', initial_position = res)

position = chain.forward_kinematics(res)[:3, 3]
orientation = chain.forward_kinematics(res)[:3, :3]

np.testing.assert_almost_equal(orientation, targ_ori, decimal=5)
np.testing.assert_almost_equal(position, target.coordToList(), decimal=3)
`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions