Class PieperSolverPtr


  • public class PieperSolverPtr
    extends java.lang.Object
    Ptr stores a pointer and optionally takes ownership of the value.
    • Constructor Detail

      • PieperSolverPtr

        public PieperSolverPtr​(long cPtr,
                               boolean cMemoryOwn)
      • PieperSolverPtr

        public PieperSolverPtr()
        Default constructor yielding a NULL-pointer.
      • PieperSolverPtr

        public PieperSolverPtr​(PieperSolver ptr)
        Do not take ownership of ptr.

        ptr can be null.

        The constructor is implicit on purpose.
    • Method Detail

      • delete

        public void delete()
      • deref

        public PieperSolver deref()
        The pointer stored in the object.
      • __ref__

        public PieperSolver __ref__()
        Dereferencing operator.
      • getDeref

        public PieperSolver getDeref()
        Member access operator.
      • isShared

        public boolean isShared()
        check if this Ptr has shared ownership or none
        ownership
        Returns:
        true if Ptr has shared ownership, false if it has no ownership.
      • isNull

        public boolean isNull()
        checks if the pointer is null
        Returns:
        Returns true if the pointer is null
      • setCheckJointLimits

        public void setCheckJointLimits​(boolean check)
      • make

        public ClosedFormIKPtr make​(Device device,
                                    State state)
        Closed-form IK solver for a device.

        The device must be a serial device with 6 revolute joints described
        by DH parameters.

        The IK solver is currently implemented in terms of PieperSolver. See
        the documentation of PieperSolver for the specific requirements for
        the DH parameters.

        An exception is thrown if closed-form IK for the device is not
        supported, except that all such cases are currently not discovered.
        You should check for yourself that the closed-form IK for the device
        is correct.