Package org.robwork.sdurw_proximity
Class CollisionSetup
- java.lang.Object
-
- org.robwork.sdurw_proximity.CollisionSetup
-
public class CollisionSetup extends java.lang.ObjectSetup for the collision checker
The CollisionSetup contains information about
which frames, not be checked against each other
-
-
Constructor Summary
Constructors Constructor Description CollisionSetup()Default constructor for when no excludes are describedCollisionSetup(long cPtr, boolean cMemoryOwn)CollisionSetup(VectorPair_s_s exclude)Constructs CollisionSetup with list of exclusions
CollisionSetup(VectorPair_s_s exclude, vector_s volatileFrames, boolean excludeStaticPairs)CollisionSetup for a list of pairs to exclude and a sequence
of volatile frames.CollisionSetup(VectorPair_s_s exclude, SWIGTYPE_p_std__setT_std__string_t volatileFrames, boolean excludeStaticPairs)CollisionSetup for a list of pairs to exclude and a sequence
of volatile frames.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddExcludePair(Pair_s_s pair)voiddelete()booleanexcludeStaticPairs()True iff all statically related pairs of frames should be
excluded.
Note that this will exclude also statically related pairs of frames
for which one or both of the pairs are volatile.static CollisionSetupget(PropertyMap map)static CollisionSetupget(WorkCell wc)static CollisionSetupget(WorkCellPtr wc)static longgetCPtr(CollisionSetup obj)VectorPair_s_sgetExcludeList()Returns the exclude listbooleanisVolatile(Frame frame)True iff the collision setup for the frame can change over
time.voidmerge(CollisionSetup b)Combine setup of this and setup of b into this collision setup.voidremoveExcludePair(Pair_s_s pair)static voidset(CollisionSetup setup, PropertyMap map)static voidset(CollisionSetup setup, WorkCellPtr wc)java.lang.StringtoString()
-
-
-
Constructor Detail
-
CollisionSetup
public CollisionSetup(long cPtr, boolean cMemoryOwn)
-
CollisionSetup
public CollisionSetup()
Default constructor for when no excludes are described
-
CollisionSetup
public CollisionSetup(VectorPair_s_s exclude)
Constructs CollisionSetup with list of exclusions
- Parameters:
exclude- [in] pairs to be excluded
-
CollisionSetup
public CollisionSetup(VectorPair_s_s exclude, SWIGTYPE_p_std__setT_std__string_t volatileFrames, boolean excludeStaticPairs)
CollisionSetup for a list of pairs to exclude and a sequence
of volatile frames.- Parameters:
exclude- [in] pairs to be excludedvolatileFrames- [in] names of frames to treat as volatile.excludeStaticPairs- [in] if true exclude statically related pairs.
-
CollisionSetup
public CollisionSetup(VectorPair_s_s exclude, vector_s volatileFrames, boolean excludeStaticPairs)
CollisionSetup for a list of pairs to exclude and a sequence
of volatile frames.- Parameters:
exclude- [in] pairs to be excludedvolatileFrames- [in] names of frames to treat as volatile.excludeStaticPairs- [in] if true exclude statically related pairs.
-
-
Method Detail
-
getCPtr
public static long getCPtr(CollisionSetup obj)
-
delete
public void delete()
-
addExcludePair
public void addExcludePair(Pair_s_s pair)
-
removeExcludePair
public void removeExcludePair(Pair_s_s pair)
-
getExcludeList
public VectorPair_s_s getExcludeList()
Returns the exclude list- Returns:
- the exclude list
-
isVolatile
public boolean isVolatile(Frame frame)
True iff the collision setup for the frame can change over
time.
-
excludeStaticPairs
public boolean excludeStaticPairs()
True iff all statically related pairs of frames should be
excluded.
Note that this will exclude also statically related pairs of frames
for which one or both of the pairs are volatile.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
merge
public void merge(CollisionSetup b)
Combine setup of this and setup of b into this collision setup.
-
get
public static CollisionSetup get(WorkCell wc)
-
get
public static CollisionSetup get(WorkCellPtr wc)
-
get
public static CollisionSetup get(PropertyMap map)
-
set
public static void set(CollisionSetup setup, WorkCellPtr wc)
-
set
public static void set(CollisionSetup setup, PropertyMap map)
-
-