public class RigidBodyConstraint
extends java.lang.Object
RigidBodyCoupling
.Modifier and Type | Class and Description |
---|---|
static class |
RigidBodyConstraint.MotionType
Describes the type of motion restricted by this constraint.
|
Modifier and Type | Field and Description |
---|---|
static int |
BILATERAL
Constraint is bilateral.
|
static int |
CONSTANT
Constraint in frame G is constant.
|
static int |
COUPLED
Constraint restricts both rotation and translation
|
static int |
LIMIT
Constraint enforces a coordinate limit.
|
static int |
LINEAR
Constraint primarily restricts translational motion.
|
static int |
ROTARY
Constraint primarily restricts rotary motion.
|
Constructor and Description |
---|
RigidBodyConstraint() |
Modifier and Type | Method and Description |
---|---|
void |
clearFlag(int flag) |
double |
computeContactSpeed(Twist velCD) |
double |
getCompliance() |
double |
getDamping() |
double |
getDistance() |
Wrench |
getDotWrenchG() |
int |
getEngaged() |
int |
getEngagedCnt() |
double |
getFriction() |
int |
getIndex() |
RigidBodyConstraint.MotionType |
getMotionType() |
double |
getMultiplier() |
int |
getSolveIndex() |
int |
getState() |
Wrench |
getWrenchG() |
boolean |
isBilateral() |
boolean |
isConstant() |
boolean |
isLinear() |
boolean |
isRotary() |
boolean |
isUnilateral() |
void |
negateDotWrenchG() |
void |
negateWrenchG() |
void |
setCompliance(double c) |
void |
setDamping(double c) |
void |
setDistance(double d) |
void |
setDotWrenchG(double fx,
double fy,
double fz,
double mx,
double my,
double mz) |
void |
setDotWrenchG(Vector3d f,
Vector3d m) |
void |
setDotWrenchG(Wrench wr) |
void |
setEnaged(int eng) |
void |
setFlag(int flag) |
void |
setFlags(int flags) |
void |
setFriction(double f) |
void |
setMultiplier(double lam) |
void |
setSolveIndex(int idx) |
void |
setState(int s) |
void |
setUnilateral(boolean enabled) |
void |
setWrenchG(double fx,
double fy,
double fz,
double mx,
double my,
double mz) |
void |
setWrenchG(Vector3d f,
Vector3d m) |
void |
setWrenchG(Wrench wr) |
void |
zeroDotWrenchG() |
void |
zeroWrenchG() |
public static final int BILATERAL
public static final int LINEAR
public static final int ROTARY
public static final int COUPLED
public static final int CONSTANT
public static final int LIMIT
public Wrench getWrenchG()
public void setWrenchG(double fx, double fy, double fz, double mx, double my, double mz)
public void setWrenchG(Wrench wr)
public void zeroWrenchG()
public void negateWrenchG()
public Wrench getDotWrenchG()
public void setDotWrenchG(double fx, double fy, double fz, double mx, double my, double mz)
public void setDotWrenchG(Wrench wr)
public void zeroDotWrenchG()
public void negateDotWrenchG()
public void setFlags(int flags)
public void setFlag(int flag)
public void clearFlag(int flag)
public void setUnilateral(boolean enabled)
public boolean isBilateral()
public boolean isUnilateral()
public boolean isConstant()
public boolean isRotary()
public boolean isLinear()
public RigidBodyConstraint.MotionType getMotionType()
public int getSolveIndex()
public void setSolveIndex(int idx)
public void setMultiplier(double lam)
public double getMultiplier()
public void setDistance(double d)
public double getDistance()
public void setCompliance(double c)
public double getCompliance()
public void setDamping(double c)
public double getDamping()
public double computeContactSpeed(Twist velCD)
public void setFriction(double f)
public double getFriction()
public int getIndex()
public int getEngaged()
public void setEnaged(int eng)
public int getEngagedCnt()
public void setState(int s)
public int getState()