Package org.robwork.sdurwsim
Class SuctionCupPtr
- java.lang.Object
-
- org.robwork.sdurwsim.SuctionCupPtr
-
public class SuctionCupPtr extends java.lang.Object
Ptr 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.void
addForceTorque(Q forceTorque, State state)
SuctionCupCPtr
cptr()
void
delete()
SuctionCup
deref()
The pointer stored in the object.boolean
equals(SuctionCup p)
BodyPtr
getBase()
BodyPtr
getBaseBody()
BodyPtr
getContactBody(State state)
static long
getCPtr(SuctionCupPtr obj)
SuctionCup
getDeref()
Member access operator.BodyPtr
getEndBody()
double
getHeight()
Q
getJointVelocities(State state)
DevicePtr
getKinematicModel()
BodyPtrVector
getLinks()
Transform3D
getOffset()
double
getPressure(State state)
Q
getQ(State state)
double
getRadius()
Q
getSpringParamsClosed()
Q
getSpringParamsOpen()
boolean
isClosed(State state)
boolean
isNull()
checks if the pointer is nullboolean
isShared()
check if this Ptr has shared ownership or none
ownershipvoid
setClosed(boolean closed, State state)
void
setContactBody(BodyPtr b, State state)
void
setJointVelocities(Q vel, State state)
void
setPressure(double pressure, State state)
void
setQ(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()
-
-