Class TactileArrayUtilPtr


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

      • TactileArrayUtilPtr

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

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

        public TactileArrayUtilPtr​(TactileArrayUtil 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
      • estimateContacts

        public VectorContact3D estimateContacts​(TactileArrayModel arraySensor,
                                                State state,
                                                double minContactForce)
        Estimate the contacts on the tactile array sensor.
        Parameters:
        arraySensor - [in] the array sensor that describe the tactile array
        state - [in] the current state of the system
        minContactForce - [in] A threshold value that determines when a force is a contact
        force and not just noise.
        Returns:
        All estimated contacts