Package org.robwork.sdurwsim
Class SuctionCupPtr
- java.lang.Object
-
- org.robwork.sdurwsim.SuctionCupPtr
-
public class SuctionCupPtr extends java.lang.ObjectPtr stores a pointer and optionally takes ownership of the value.
-
-
Constructor Summary
Constructors Constructor Description SuctionCupPtr()Default constructor yielding a NULL-pointer.SuctionCupPtr(long cPtr, boolean cMemoryOwn)SuctionCupPtr(SuctionCup ptr)Do not take ownership of ptr.
ptr can be null.
The constructor is implicit on purpose.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SuctionCup__ref__()Dereferencing operator.voidaddForceTorque(Q forceTorque, State state)SuctionCupCPtrcptr()voiddelete()SuctionCupderef()The pointer stored in the object.booleanequals(SuctionCup p)BodyPtrgetBase()BodyPtrgetBaseBody()BodyPtrgetContactBody(State state)static longgetCPtr(SuctionCupPtr obj)SuctionCupgetDeref()Member access operator.BodyPtrgetEndBody()doublegetHeight()QgetJointVelocities(State state)DevicePtrgetKinematicModel()BodyPtrVectorgetLinks()Transform3DgetOffset()doublegetPressure(State state)QgetQ(State state)doublegetRadius()QgetSpringParamsClosed()QgetSpringParamsOpen()booleanisClosed(State state)booleanisNull()checks if the pointer is nullbooleanisShared()check if this Ptr has shared ownership or none
ownershipvoidsetClosed(boolean closed, State state)voidsetContactBody(BodyPtr b, State state)voidsetJointVelocities(Q vel, State state)voidsetPressure(double pressure, State state)voidsetQ(Q q, State state)
-
-
-
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
-
getCPtr
public static long getCPtr(SuctionCupPtr obj)
-
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
-
cptr
public SuctionCupCPtr cptr()
-
getBaseBody
public BodyPtr getBaseBody()
-
getEndBody
public BodyPtr getEndBody()
-
getRadius
public double getRadius()
-
getHeight
public double getHeight()
-
getSpringParamsOpen
public Q getSpringParamsOpen()
-
getSpringParamsClosed
public Q getSpringParamsClosed()
-
getOffset
public Transform3D getOffset()
-
getLinks
public BodyPtrVector getLinks()
-
isClosed
public boolean isClosed(State state)
-
setClosed
public void setClosed(boolean closed, State state)
-
getPressure
public double getPressure(State state)
-
setPressure
public void setPressure(double pressure, State state)
-
getKinematicModel
public DevicePtr getKinematicModel()
-
getBase
public BodyPtr getBase()
-
-