Package org.robwork.sdurw_proximity
Class DistanceStrategy.DistanceStrategyFactory
- java.lang.Object
-
- org.robwork.sdurw_proximity.ExtensionPointDistanceStrategy
-
- org.robwork.sdurw_proximity.DistanceStrategy.DistanceStrategyFactory
-
- Enclosing class:
- DistanceStrategy
public static class DistanceStrategy.DistanceStrategyFactory extends ExtensionPointDistanceStrategy
A factory for a DistanceStrategy. This factory also defines an ExtensionPoint.
Extensions providing a DistanceStrategy implementation can extend this factory by
registering the extension using the id "rw.proximity.DistanceStrategy".
Typically one or more of the following DistanceStrategy types will be available:
- RW - rw::proximity::ProximityStrategyRW - Internal RobWork proximity strategy
- Bullet - rwlibs::proximitystrategies::ProximityStrategyBullet - Bullet Physics
- PQP - rwlibs::proximitystrategies::ProximityStrategyPQP - Proximity Query Package
- FCL - rwlibs::proximitystrategies::ProximityStrategyFCL - Flexible Collision Library
-
-
Constructor Summary
Constructors Constructor Description DistanceStrategyFactory(long cPtr, boolean cMemoryOwn)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delete()
static long
getCPtr(DistanceStrategy.DistanceStrategyFactory obj)
static vector_s
getStrategies()
Get the available strategies.static boolean
hasStrategy(java.lang.String strategy)
Check if strategy is available.static DistanceStrategyPtr
makeStrategy(java.lang.String strategy)
Create a new strategy.-
Methods inherited from class org.robwork.sdurw_proximity.ExtensionPointDistanceStrategy
getCPtr, getExtensionDescriptors, getExtensions, getId, getName, getSchema
-
-
-
-
Method Detail
-
getCPtr
public static long getCPtr(DistanceStrategy.DistanceStrategyFactory obj)
-
delete
public void delete()
- Overrides:
delete
in classExtensionPointDistanceStrategy
-
getStrategies
public static vector_s getStrategies()
Get the available strategies.- Returns:
- a vector of identifiers for strategies.
-
hasStrategy
public static boolean hasStrategy(java.lang.String strategy)
Check if strategy is available.- Parameters:
strategy
- [in] the name of the strategy.- Returns:
- true if available, false otherwise.
-
makeStrategy
public static DistanceStrategyPtr makeStrategy(java.lang.String strategy)
Create a new strategy.- Parameters:
strategy
- [in] the name of the strategy.- Returns:
- a pointer to a new DistanceStrategy.
-
-