Package org.robwork.sdurw_pathplanning
Class PlannerConstraintPtr
- java.lang.Object
-
- org.robwork.sdurw_pathplanning.PlannerConstraintPtr
-
public class PlannerConstraintPtr extends java.lang.ObjectPtr stores a pointer and optionally takes ownership of the value.
-
-
Constructor Summary
Constructors Constructor Description PlannerConstraintPtr()Default constructor yielding a NULL-pointer.PlannerConstraintPtr(long cPtr, boolean cMemoryOwn)PlannerConstraintPtr(PlannerConstraint 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 PlannerConstraint__ref__()Dereferencing operator.PlannerConstraintCPtrcptr()voiddelete()PlannerConstraintderef()The pointer stored in the object.booleanequals(PlannerConstraint p)static longgetCPtr(PlannerConstraintPtr obj)PlannerConstraintgetDeref()Member access operator.QConstraintgetQConstraint()The configuration constraint.QConstraintPtrgetQConstraintPtr()The configuration constraint pointer.QEdgeConstraintgetQEdgeConstraint()The edge constraint.QEdgeConstraintPtrgetQEdgeConstraintPtr()The edge constraint pointer.booleaninCollision(Q q)Forwards call to the QConstraint wrapped by the PlannerConstraintbooleaninCollision(Q q1, Q q2)Forwards call to the QEdgeConstraint wrapped by the PlannerConstraintbooleanisNull()checks if the pointer is nullbooleanisShared()check if this Ptr has shared ownership or none
ownershipPlannerConstraintmake(QConstraintPtr constraint, QEdgeConstraintPtr edge)A (QConstraintPtr, QEdgeConstraintPtr) tuple.
This is equivalent to the standard constructor.PlannerConstraintmake(CollisionDetectorPtr detector, DeviceCPtr device, State state)Planner constraint for a collision detector.
Path are checked discretely for a default device dependent
resolution.PlannerConstraintmake(CollisionStrategyPtr strategy, WorkCellPtr workcell, DeviceCPtr device, State state)Planner constraint for a collision strategy.
Path are checked discretely for a default device dependent
resolution.
The default collision setup of the workcell is used.PlannerConstraintmake(CollisionStrategyPtr strategy, CollisionSetup setup, WorkCellPtr workcell, DeviceCPtr device, State state)Planner constraint for a collision strategy and collision
setup.
Path are checked discretely for a default device dependent
resolution.
-
-
-
Constructor Detail
-
PlannerConstraintPtr
public PlannerConstraintPtr(long cPtr, boolean cMemoryOwn)
-
PlannerConstraintPtr
public PlannerConstraintPtr()
Default constructor yielding a NULL-pointer.
-
PlannerConstraintPtr
public PlannerConstraintPtr(PlannerConstraint ptr)
Do not take ownership of ptr.
ptr can be null.
The constructor is implicit on purpose.
-
-
Method Detail
-
getCPtr
public static long getCPtr(PlannerConstraintPtr obj)
-
delete
public void delete()
-
deref
public PlannerConstraint deref()
The pointer stored in the object.
-
__ref__
public PlannerConstraint __ref__()
Dereferencing operator.
-
getDeref
public PlannerConstraint getDeref()
Member access operator.
-
equals
public boolean equals(PlannerConstraint 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
-
cptr
public PlannerConstraintCPtr cptr()
-
inCollision
public boolean inCollision(Q q)
Forwards call to the QConstraint wrapped by the PlannerConstraint
-
inCollision
public boolean inCollision(Q q1, Q q2)
Forwards call to the QEdgeConstraint wrapped by the PlannerConstraint
-
getQConstraint
public QConstraint getQConstraint()
The configuration constraint.
-
getQEdgeConstraint
public QEdgeConstraint getQEdgeConstraint()
The edge constraint.
-
getQConstraintPtr
public QConstraintPtr getQConstraintPtr()
The configuration constraint pointer.
-
getQEdgeConstraintPtr
public QEdgeConstraintPtr getQEdgeConstraintPtr()
The edge constraint pointer.
-
make
public PlannerConstraint make(QConstraintPtr constraint, QEdgeConstraintPtr edge)
A (QConstraintPtr, QEdgeConstraintPtr) tuple.
This is equivalent to the standard constructor.
-
make
public PlannerConstraint make(CollisionDetectorPtr detector, DeviceCPtr device, State state)
Planner constraint for a collision detector.
Path are checked discretely for a default device dependent
resolution.
-
make
public PlannerConstraint make(CollisionStrategyPtr strategy, WorkCellPtr workcell, DeviceCPtr device, State state)
Planner constraint for a collision strategy.
Path are checked discretely for a default device dependent
resolution.
The default collision setup of the workcell is used.
-
make
public PlannerConstraint make(CollisionStrategyPtr strategy, CollisionSetup setup, WorkCellPtr workcell, DeviceCPtr device, State state)
Planner constraint for a collision strategy and collision
setup.
Path are checked discretely for a default device dependent
resolution.
-
-