Class PDControllerPtr


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

      • PDControllerPtr

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

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

        public PDControllerPtr​(PDController 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 PDController deref()
        The pointer stored in the object.
      • __ref__

        public PDController __ref__()
        Dereferencing operator.
      • getDeref

        public PDController 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
      • setParameters

        public void setParameters​(PDParamVector params)
      • getSampleTime

        public double getSampleTime()
      • setSampleTime

        public void setSampleTime​(double stime)
      • reset

        public void reset​(State state)
      • getController

        public Controller getController()
      • getControllerName

        public java.lang.String getControllerName()
      • setEnabled

        public void setEnabled​(boolean enabled)
      • isEnabled

        public boolean isEnabled()
      • getControlModes

        public long getControlModes()
      • setTargetPos

        public void setTargetPos​(Q target)
      • setTargetVel

        public void setTargetVel​(Q vals)
      • setTargetAcc

        public void setTargetAcc​(Q vals)
      • getQ

        public Q getQ()
      • getQd

        public Q getQd()