Class MobileDeviceCPtr


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

      • MobileDeviceCPtr

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

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

        public MobileDeviceCPtr​(MobileDevice ptr)
        Do not take ownership of ptr.

        ptr can be null.

        The constructor is implicit on purpose.
    • Method Detail

      • delete

        public void delete()
      • deref

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

        public MobileDevice __ref__()
        Dereferencing operator.
      • getDeref

        public MobileDevice getDeref()
        Member access operator.
      • 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
      • setQ

        public void setQ​(Q q,
                         State state)
      • getQ

        public Q getQ​(State state)
      • getBounds

        public PairQ getBounds()
      • getVelocityLimits

        public Q getVelocityLimits()
      • getAccelerationLimits

        public Q getAccelerationLimits()
      • getDOF

        public long getDOF()
      • getName

        public java.lang.String getName()
        Returns the name of the device
        Returns:
        name of the device
      • baseTframe

        public Transform3D baseTframe​(FrameCPtr f,
                                      State state)
        Calculates the homogeneous transform from base to a frame f
        \robabx{b}{f}{\mathbf{T}}
        Returns:
        the homogeneous transform \robabx{b}{f}{\mathbf{T}}
      • baseTend

        public Transform3D baseTend​(State state)
        Calculates the homogeneous transform from base to the end frame
        \robabx{base}{end}{\mathbf{T}}
        Returns:
        the homogeneous transform \robabx{base}{end}{\mathbf{T}}
      • worldTbase

        public Transform3D worldTbase​(State state)
        Calculates the homogeneous transform from world to base \robabx{w}{b}{\mathbf{T}}

        Returns:
        the homogeneous transform \robabx{w}{b}{\mathbf{T}}
      • baseJCend

        public JacobianCalculatorPtr baseJCend​(State state)
        DeviceJacobian for the end frame.

        By default this method forwards to baseDJframe().
      • baseJCframe

        public JacobianCalculatorPtr baseJCframe​(FrameCPtr frame,
                                                 State state)
        DeviceJacobian for a particular frame.

        By default this method forwards to baseDJframes().