Package org.robwork.sdurw_sensor
Class Contact3D
- java.lang.Object
-
- org.robwork.sdurw_sensor.Contact3D
-
public class Contact3D extends java.lang.Object
data structure for describing a contact in 3D
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delete()
long
get_faceIdx()
index to the geometric primitive on which the contact is locatedlong
get_faceIdx2()
static long
getCPtr(Contact3D obj)
double
getCurvature()
surface curvatureVector3D
getF()
the actual forcedouble
getMu()
coulomb friction coefficientVector3D
getN()
Surface contact normaldouble
getNormalForce()
normal forceVector3D
getP()
Contact positionvoid
set_faceIdx(long value)
index to the geometric primitive on which the contact is locatedvoid
set_faceIdx2(long value)
void
setCurvature(double value)
surface curvaturevoid
setF(Vector3D value)
the actual forcevoid
setMu(double value)
coulomb friction coefficientvoid
setN(Vector3D value)
Surface contact normalvoid
setNormalForce(double value)
normal forcevoid
setP(Vector3D value)
Contact position
-
-
-
Constructor Detail
-
Contact3D
public Contact3D(long cPtr, boolean cMemoryOwn)
-
Contact3D
public Contact3D()
constructor
-
Contact3D
public Contact3D(Vector3D tp, Vector3D tn, double normalf)
constructor- Parameters:
tp
- [in] point contacttn
- [in] contact normalnormalf
- [in] normal force in the contact
-
-
Method Detail
-
getCPtr
public static long getCPtr(Contact3D obj)
-
delete
public void delete()
-
setP
public void setP(Vector3D value)
Contact position
-
getP
public Vector3D getP()
Contact position
-
setN
public void setN(Vector3D value)
Surface contact normal
-
getN
public Vector3D getN()
Surface contact normal
-
setF
public void setF(Vector3D value)
the actual force
-
getF
public Vector3D getF()
the actual force
-
setNormalForce
public void setNormalForce(double value)
normal force
-
getNormalForce
public double getNormalForce()
normal force
-
set_faceIdx
public void set_faceIdx(long value)
index to the geometric primitive on which the contact is located
-
get_faceIdx
public long get_faceIdx()
index to the geometric primitive on which the contact is located
-
set_faceIdx2
public void set_faceIdx2(long value)
-
get_faceIdx2
public long get_faceIdx2()
-
setCurvature
public void setCurvature(double value)
surface curvature
-
getCurvature
public double getCurvature()
surface curvature
-
setMu
public void setMu(double value)
coulomb friction coefficient
-
getMu
public double getMu()
coulomb friction coefficient
-
-