Class CollisionSetup


  • public class CollisionSetup
    extends java.lang.Object
    Setup for the collision checker

    The CollisionSetup contains information about
    which frames, not be checked against each other
    • Constructor Detail

      • CollisionSetup

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

        public CollisionSetup()
        Default constructor for when no excludes are described
      • CollisionSetup

        public CollisionSetup​(StringPairVector exclude)
        Constructs CollisionSetup with list of exclusions

        Parameters:
        exclude - [in] pairs to be excluded
      • CollisionSetup

        public CollisionSetup​(StringPairVector exclude,
                              VectorString volatileFrames,
                              boolean excludeStaticPairs)
        CollisionSetup for a list of pairs to exclude and a sequence
        of volatile frames.

        Parameters:
        exclude - [in] pairs to be excluded

        volatileFrames - [in] names of frames to treat as volatile.

        excludeStaticPairs - [in] if true exclude statically related pairs.
    • Method Detail

      • delete

        public void delete()
      • addExcludePair

        public void addExcludePair​(StringPair pair)
      • removeExcludePair

        public void removeExcludePair​(StringPair pair)
      • getExcludeList

        public StringPairVector 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.
      • merge

        public void merge​(CollisionSetup b)
        Combine setup of this and setup of b into this collision setup.