Package org.robwork.sdurw_sensor
Class Contact3DCPtr
- java.lang.Object
-
- org.robwork.sdurw_sensor.Contact3DCPtr
-
public class Contact3DCPtr extends java.lang.ObjectPtr stores a pointer and optionally takes ownership of the value.
-
-
Constructor Summary
Constructors Constructor Description Contact3DCPtr()Default constructor yielding a NULL-pointer.Contact3DCPtr(long cPtr, boolean cMemoryOwn)Contact3DCPtr(Contact3D 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 Contact3D__ref__()Dereferencing operator.voiddelete()Contact3Dderef()The pointer stored in the object.booleanequals(Contact3D p)longget_faceIdx()index to the geometric primitive on which the contact is locatedlongget_faceIdx2()static longgetCPtr(Contact3DCPtr obj)doublegetCurvature()surface curvatureContact3DgetDeref()Member access operator.Vector3DgetF()the actual forcedoublegetMu()coulomb friction coefficientVector3DgetN()Surface contact normaldoublegetNormalForce()normal forceVector3DgetP()Contact positionbooleanisNull()checks if the pointer is nullbooleanisShared()check if this Ptr has shared ownership or none
ownership
-
-
-
Constructor Detail
-
Contact3DCPtr
public Contact3DCPtr(long cPtr, boolean cMemoryOwn)
-
Contact3DCPtr
public Contact3DCPtr()
Default constructor yielding a NULL-pointer.
-
Contact3DCPtr
public Contact3DCPtr(Contact3D ptr)
Do not take ownership of ptr.
ptr can be null.
The constructor is implicit on purpose.
-
-
Method Detail
-
getCPtr
public static long getCPtr(Contact3DCPtr obj)
-
delete
public void delete()
-
deref
public Contact3D deref()
The pointer stored in the object.
-
__ref__
public Contact3D __ref__()
Dereferencing operator.
-
getDeref
public Contact3D getDeref()
Member access operator.
-
equals
public boolean equals(Contact3D 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
-
getP
public Vector3D getP()
Contact position
-
getN
public Vector3D getN()
Surface contact normal
-
getF
public Vector3D getF()
the actual force
-
getNormalForce
public double getNormalForce()
normal force
-
get_faceIdx
public long get_faceIdx()
index to the geometric primitive on which the contact is located
-
get_faceIdx2
public long get_faceIdx2()
-
getCurvature
public double getCurvature()
surface curvature
-
getMu
public double getMu()
coulomb friction coefficient
-
-