Class JacobianIKSolverCPtr


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

      • JacobianIKSolverCPtr

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

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

        public JacobianIKSolverCPtr​(JacobianIKSolver ptr)
        Do not take ownership of ptr.

        ptr can be null.

        The constructor is implicit on purpose.
    • Method Detail

      • delete

        public void delete()
      • 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
      • solveLocal

        public boolean solveLocal​(Transform3D bTed,
                                  double maxError,
                                  State state,
                                  int maxIter)
        performs a local search toward the target bTed. No via points
        are generated to support the convergence and robustness.
        Parameters:
        bTed - [in] the target end pose
        maxError - [in] the maximal allowed error
        state - [in/out] the starting position for the search. The end position will
        also be saved in this state.
        maxIter - [in] max number of iterations
        Returns:
        true if error is below max error
        Note: the result will be saved in state
      • getMaxError

        public double getMaxError()
        Returns the maximal error for a solution

        Returns:
        Maximal error
      • getMaxIterations

        public int getMaxIterations()
        Returns the maximal number of iterations