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​(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 excluded
        volatileFrames - [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 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​(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:
        toString in class java.lang.Object
      • merge

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