Class FTSensorPtr


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

      • FTSensorPtr

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

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

        public FTSensorPtr​(FTSensor ptr)
        Do not take ownership of ptr.

        ptr can be null.

        The constructor is implicit on purpose.
    • Method Detail

      • getCPtr

        public static long getCPtr​(FTSensorPtr obj)
      • delete

        public void delete()
      • deref

        public FTSensor deref()
        The pointer stored in the object.
      • __ref__

        public FTSensor __ref__()
        Dereferencing operator.
      • getDeref

        public FTSensor getDeref()
        Member access operator.
      • equals

        public boolean equals​(FTSensor p)
      • 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
      • acquire

        public void acquire()
        acquires force data from the tactile cells
      • getMaxForce

        public double getMaxForce()
        gets the maximum force in Newton that this sensor can measure on any of its
        axis.
        Returns:
        max force in Newton.
      • getMaxTorque

        public double getMaxTorque()
        gets the maximum torque in Newton Meter (N m)that this sensor can measure on any
        of its axis.
        Returns:
        max torque in Newton Meter(N m).
      • getForce

        public Vector3D getForce()
        gets the force in N that is acting on the origin. The
        force is described in relation to the origin.
        Returns:
        force acting on origin.
      • getTorque

        public Vector3D getTorque()
        gets the torgue in Nm that is acting on the origin. The
        torque is described in relation to the origin.
        Returns:
        torque acting on origin.
      • getTransform

        public Transform3D getTransform()
        the transform from the sensor frame to the point of origin.
        Returns:
        transform from sensor frame to point of origin.
      • getName

        public java.lang.String getName()
        returns the name of this sensor
        Returns:
        name of sensor
      • getDescription

        public java.lang.String getDescription()
        returns a description of this sensor
        Returns:
        reference to this sensors description
      • getSensorModel

        public SensorModelPtr getSensorModel()
        The frame to which the sensor is attached.

        The frame can be NULL.
      • setSensorModel

        public void setSensorModel​(SensorModelPtr smodel)
        Sets the frame to which the sensor should be attached

        Parameters:
        smodel -
      • getPropertyMap

        public PropertyMap getPropertyMap()
        gets the propertymap of this sensor