Package org.robwork.sdurw_invkin
Class IKMetaSolverCPtr
- java.lang.Object
-
- org.robwork.sdurw_invkin.IKMetaSolverCPtr
-
public class IKMetaSolverCPtr extends java.lang.ObjectPtr stores a pointer and optionally takes ownership of the value.
-
-
Constructor Summary
Constructors Constructor Description IKMetaSolverCPtr()Default constructor yielding a NULL-pointer.IKMetaSolverCPtr(long cPtr, boolean cMemoryOwn)IKMetaSolverCPtr(IKMetaSolver ptr)Do not take ownership of ptr.
ptr can be null.
The constructor is implicit on purpose.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description IKMetaSolver__ref__()Dereferencing operator.voiddelete()IKMetaSolverderef()The pointer stored in the object.booleanequals(IKMetaSolver p)static longgetCPtr(IKMetaSolverCPtr obj)IKMetaSolvergetDeref()Member access operator.doublegetMaxError()Returns the maximal error for a solution
intgetMaxIterations()Returns the maximal number of iterationsFrameCPtrgetTCP()booleanisNull()checks if the pointer is nullbooleanisShared()check if this Ptr has shared ownership or none
ownershipVectorQsolve(Transform3D baseTend, State state)
Searches for a valid solution using the parameters set in the IKMetaSolverVectorQsolve(Transform3D baseTend, State state, long cnt, boolean stopatfirst)Solves the inverse kinematics problem
Tries to solve the inverse kinematics problem using the iterative
inverse kinematics solver provided in the constructor.
-
-
-
Constructor Detail
-
IKMetaSolverCPtr
public IKMetaSolverCPtr(long cPtr, boolean cMemoryOwn)
-
IKMetaSolverCPtr
public IKMetaSolverCPtr()
Default constructor yielding a NULL-pointer.
-
IKMetaSolverCPtr
public IKMetaSolverCPtr(IKMetaSolver ptr)
Do not take ownership of ptr.
ptr can be null.
The constructor is implicit on purpose.
-
-
Method Detail
-
getCPtr
public static long getCPtr(IKMetaSolverCPtr obj)
-
delete
public void delete()
-
deref
public IKMetaSolver deref()
The pointer stored in the object.
-
__ref__
public IKMetaSolver __ref__()
Dereferencing operator.
-
getDeref
public IKMetaSolver getDeref()
Member access operator.
-
equals
public boolean equals(IKMetaSolver p)
-
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
-
solve
public VectorQ solve(Transform3D baseTend, State state)
Searches for a valid solution using the parameters set in the IKMetaSolver
-
solve
public VectorQ solve(Transform3D baseTend, State state, long cnt, boolean stopatfirst)
Solves the inverse kinematics problem
Tries to solve the inverse kinematics problem using the iterative
inverse kinematics solver provided in the constructor. It tries at
most cnt times and can either be stopped after the first solution
is found or continue to search for solutions. If multiple solutions
are returned there might be duplicates in the list.
- Parameters:
baseTend- [in] Desired base to end transformstate- [in] State of the workcellcnt- [in] Maximal number of attempts
stopatfirst- [in] If true the method will return after the first
solution is found. If false it will continue searching for more solution
until the maximal number of attemps is met.
-
getTCP
public FrameCPtr getTCP()
-
getMaxError
public double getMaxError()
Returns the maximal error for a solution
- Returns:
- Maximal error
-
getMaxIterations
public int getMaxIterations()
Returns the maximal number of iterations
-
-