|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmaspack.matrix.VectorObject
maspack.spatialmotion.SpatialVector
maspack.spatialmotion.Wrench
A spatial vector that represents a spatial force, comprised of a translation force f and a moment m. A wrench is a covariant spatial vector, with m being the free vector and f being the line vector.
Field Summary | |
Vector3d |
f
Translational force |
Vector3d |
m
Moment (rotational force) |
Constructor Summary | |
Wrench()
Creates a Wrench and initializes its contents to zero. |
|
Wrench(double fx,
double fy,
double fz,
double mx,
double my,
double mz)
Creates a Wrench and initializes its components to the specified values. |
|
Wrench(Vector3d f,
Vector3d m)
Creates a Wrench and initializes its components to the specified values. |
|
Wrench(Wrench wr)
Creates a Wrench and initializes its contents to the values of an existing Wrench. |
Method Summary | |
void |
absolute(Wrench wr1)
Sets the elements of this wrench to their absolute values. |
void |
add(Wrench wr1)
Adds this wrench to wr1 and places the result in this wrench. |
void |
add(Wrench wr1,
Wrench wr2)
Adds wrench wr1 to wr2 and places the result in this wrench. |
void |
combine(double s1,
Wrench wr1,
double s2,
Wrench wr2)
Computes s1 wr1 + s2 wr2 and places the result in this wrench. |
void |
interpolate(double s,
Wrench wr1)
Computes the interpolation (1-s) this + s wr1 and places the result in this wrench. |
void |
interpolate(Wrench wr1,
double s,
Wrench wr2)
Computes the interpolation (1-s) wr1 + s wr2 and places the result in this wrench. |
void |
inverseTransform(RigidTransform3d X,
Wrench wr1)
Applies an inverse rigid spatial transformation to the wrench wr1, and places the result in this wrench. |
void |
inverseTransform(RotationMatrix3d R,
Wrench wr1)
Applies an inverse rotational transformation to the wrench wr1, and stores the result in this wrench. |
void |
negate(Wrench wr1)
Sets this wrench to the negative of wr1. |
void |
normalize(Wrench wr1)
Computes a unit wrench in the direction of wr1 and places the result in this wrench. |
void |
scale(double s,
Wrench wr1)
Scales the elements of wrench wr1 by s and places the results in this wrench. |
void |
scaleAdd(double s,
Wrench wr1)
Computes s this + wr1 and places the result in this wrench. |
void |
scaleAdd(double s,
Wrench wr1,
Wrench wr2)
Computes s wr1 + wr2 and places the result in this wrench. |
void |
set(double fx,
double fy,
double fz,
double mx,
double my,
double mz)
Sets the values of this wrench to the specified component values. |
void |
set(Vector3d f,
Vector3d m)
Sets the values of this wrench to the specified component values. |
void |
set(Wrench wr)
Sets the values of this wrench to those of wrench tw. |
void |
sub(Wrench wr1)
Subtracts wr1 from this wrench and places the result in this wrench. |
void |
sub(Wrench wr1,
Wrench wr2)
Subtracts wrench wr1 from wr2 and places the result in this wrench. |
void |
transform(RigidTransform3d X,
Wrench wr1)
Applies a rigid spatial transformation to the wrench wr1, and places the result in this wrench. |
void |
transform(RotationMatrix3d R,
Wrench wr1)
Applies a rotational transformation to the wrench wr1 and stores the result in this wrench. |
Methods inherited from class maspack.spatialmotion.SpatialVector |
absolute, dot, epsilonEquals, equals, get, get, infinityNorm, inverseTransform, inverseTransform, isContravariant, maxElement, minElement, negate, norm, normalize, normSquared, oneNorm, scale, set, set, setRandom, setRandom, setRandom, setZero, size, toString, transform, transform |
Methods inherited from class maspack.matrix.VectorObject |
dot, epsilonEquals, equals, equals, get, isFixedSize, scan, set, setSize, toString, toString |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public final Vector3d f
public final Vector3d m
Constructor Detail |
public Wrench()
public Wrench(Wrench wr)
wr
- wrench whose values are to be copiedpublic Wrench(double fx, double fy, double fz, double mx, double my, double mz)
fx
- force x componentfy
- force y componentfz
- force z componentmx
- moment x componentmy
- moment y componentmz
- moment z componentpublic Wrench(Vector3d f, Vector3d m)
f
- forcem
- momentMethod Detail |
public void set(double fx, double fy, double fz, double mx, double my, double mz)
fx
- force x componentfy
- force y componentfz
- force z componentmx
- moment x componentmy
- moment y componentmz
- moment z componentpublic void set(Vector3d f, Vector3d m)
f
- forcem
- momentpublic void set(Wrench wr)
wr
- wrench whose values are to be copiedpublic void add(Wrench wr1, Wrench wr2)
wr1
- left-hand wrenchwr2
- right-hand wrenchpublic void add(Wrench wr1)
wr1
- right-hand wrenchpublic void sub(Wrench wr1, Wrench wr2)
wr1
- left-hand wrenchwr2
- right-hand wrenchpublic void sub(Wrench wr1)
wr1
- right-hand wrenchpublic void negate(Wrench wr1)
wr1
- wrench to negatepublic void scale(double s, Wrench wr1)
s
- scaling factorwr1
- wrench to be scaledpublic void interpolate(Wrench wr1, double s, Wrench wr2)
wr1
- left-hand wrenchs
- interpolation factorwr2
- right-hand wrenchpublic void interpolate(double s, Wrench wr1)
s
- interpolation factorwr1
- right-hand wrenchpublic void scaleAdd(double s, Wrench wr1, Wrench wr2)
s
- scaling factorwr1
- wrench to be scaledwr2
- wrench to be addedpublic void scaleAdd(double s, Wrench wr1)
s
- scaling factorwr1
- wrench to be addedpublic void combine(double s1, Wrench wr1, double s2, Wrench wr2)
s1
- left-hand scaling factorwr1
- left-hand wrenchs2
- right-hand scaling factorwr2
- right-hand wrenchpublic void normalize(Wrench wr1)
wr1
- wrench to normalizepublic void absolute(Wrench wr1)
public void transform(RotationMatrix3d R, Wrench wr1)
R
- rotational transformation matrixwr1
- wrench to transformpublic void inverseTransform(RotationMatrix3d R, Wrench wr1)
R
- rotational transformation matrixwr1
- wrench to transformpublic void transform(RigidTransform3d X, Wrench wr1)
X
- rigid spatial transformationwr1
- wrench to be transformedpublic void inverseTransform(RigidTransform3d X, Wrench wr1)
X
- rigid spatial transformationwr1
- wrench to be transformed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |