Class SuctionCupPtr


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

      • SuctionCupPtr

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

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

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

        public SuctionCup __ref__()
        Dereferencing operator.
      • getDeref

        public SuctionCup getDeref()
        Member access operator.
      • equals

        public boolean equals​(SuctionCup 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
      • getBaseBody

        public BodyPtr getBaseBody()
      • getEndBody

        public BodyPtr getEndBody()
      • getRadius

        public double getRadius()
      • getHeight

        public double getHeight()
      • getSpringParamsOpen

        public Q getSpringParamsOpen()
      • getSpringParamsClosed

        public Q getSpringParamsClosed()
      • getJointVelocities

        public Q getJointVelocities​(State state)
      • setJointVelocities

        public void setJointVelocities​(Q vel,
                                       State state)
      • addForceTorque

        public void addForceTorque​(Q forceTorque,
                                   State state)
      • isClosed

        public boolean isClosed​(State state)
      • setClosed

        public void setClosed​(boolean closed,
                              State state)
      • getContactBody

        public BodyPtr getContactBody​(State state)
      • setContactBody

        public void setContactBody​(BodyPtr b,
                                   State state)
      • getPressure

        public double getPressure​(State state)
      • setPressure

        public void setPressure​(double pressure,
                                State state)
      • getQ

        public Q getQ​(State state)
      • setQ

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

        public DevicePtr getKinematicModel()
      • getBase

        public BodyPtr getBase()