Skip to content

NaNs appear in certain cases when using inverse kinematics #39

@64-B1T

Description

@64-B1T

(Python) In certain transforms, IK will fail due to NANs cropping up. This is because of floating point inaccuracies being fed into np.arccos. (For example in MatrixLog6)
E.g. (-1.0000000002) which will return NaN
To fix this, for each np.arccos(x) in the MR code, replace with np.arccos(np.clip(x,-1,1))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions