Class 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 Detail

      • DistanceStrategyFactory

        public DistanceStrategyFactory​(long cPtr,
                                       boolean cMemoryOwn)
    • Method Detail

      • 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.