Class ProximityFilterStrategyPtr


  • public class ProximityFilterStrategyPtr
    extends java.lang.Object
    Ptr stores a pointer and optionally takes ownership of the value.
    • Constructor Detail

      • ProximityFilterStrategyPtr

        public ProximityFilterStrategyPtr​(long cPtr,
                                          boolean cMemoryOwn)
      • ProximityFilterStrategyPtr

        public ProximityFilterStrategyPtr()
        Default constructor yielding a NULL-pointer.
      • ProximityFilterStrategyPtr

        public ProximityFilterStrategyPtr​(ProximityFilterStrategy ptr)
        Do not take ownership of ptr.

        ptr can be null.

        The constructor is implicit on purpose.
    • Method Detail

      • delete

        public void delete()
      • 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
      • reset

        public void reset​(State state)
        Reset
        Parameters:
        state - [in] the state.
      • createProximityCache

        public ProximityCachePtr createProximityCache()
        creates a FilterData object. This is used for caching relavant data between calls to update

        Returns:
      • update

        public ProximityFilterPtr update​(State state)
        Do an update
        Parameters:
        state - [in] the state.
        Returns:
      • update

        public ProximityFilterPtr update​(State state,
                                         ProximityCachePtr data)
        called once before acquirering all possibly colliding
        frame pairs in the workcell
        Parameters:
        state - [in] the state for which collision detection is performed.
        data -
      • getProximitySetup

        public SWIGTYPE_p_ProximitySetup getProximitySetup()
        get the proximity setup that describe the include/exclude rules of this
        BroadPhaseStrategy
        Returns:
        a reference to the ProximitySetup
      • addGeometry

        public void addGeometry​(Frame frame,
                                GeometryPtr geo)
        Adds geometry associated to frame
        Parameters:
        frame - [in] Frame which has the geometry associated
        geo - [in] Geometry
      • removeGeometry

        public void removeGeometry​(Frame frame,
                                   GeometryPtr geo)
        Removes the geometric model geo associated with
        Frame frame from this strategy.

        Parameters:
        frame - [in] Frame which has the geometry associated
        geo - [in] Geometry
      • removeGeometry

        public void removeGeometry​(Frame frame,
                                   java.lang.String geoName)
        Removes the geometric model with name geoName and which is associated with
        frame.

        Parameters:
        frame - [in] Frame which has the geometry associated
        geoName - [in] Name of geometry
      • addRule

        public void addRule​(ProximitySetupRule rule)
        Adds a ProximitySetupRule
        Parameters:
        rule - [in] the rule to add.
      • removeRule

        public void removeRule​(ProximitySetupRule rule)
        Removes a ProximitySetupRule
        If the rule cannot be found, then noting happens.
        Parameters:
        rule - [in] the rule to remove.