|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.kuka.math.physics.LoadData
public class LoadData
LoadData represents the physical load of a .
Because objects can be connected to each other, a combined load can be calculated using the helper methods of the
SpatialObjectUtils class.
Note that LoadData is mutable while the contained CenterOfMass and Inertia are immutable.
The Robotics API always assumes the translation part of transformations to be given in [mm].
| Constructor Summary | |
|---|---|
LoadData()
Creates a new instance with zero inertia and mass. |
|
LoadData(double mass,
ITransformation centerOfMass,
Inertia inertia)
Creates a new instance. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
void |
fill(LoadData newData)
Fills the load data object with the data of another load data object. |
Transformation |
getCenterOfMass()
Gets the center of mass. |
Inertia |
getInertia()
Gets the inertia. |
double |
getMass()
Gets the mass in [kg]. |
int |
hashCode()
|
void |
setCenterOfMass(double x,
double y,
double z)
Sets the center of mass for this object. |
void |
setCenterOfMass(ITransformation centerOfMassMillimeter)
Sets the center of mass for this object. |
void |
setInertia(Inertia loadInertia)
Sets the load inertia for this object. |
void |
setMass(double mass)
Sets the mass in [kg]. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LoadData()
public LoadData(double mass,
ITransformation centerOfMass,
Inertia inertia)
mass - the mass of the physical object in [kg].centerOfMass - center of mass transformation from the base in [mm].inertia - the inertia of the physical object.| Method Detail |
|---|
public double getMass()
public Transformation getCenterOfMass()
public Inertia getInertia()
public final void setMass(double mass)
mass - the mass in [kg].
IllegalArgumentException - if mass is negativepublic final void setCenterOfMass(ITransformation centerOfMassMillimeter)
The center of mass must be given relative to the object base.
centerOfMassMillimeter - the center of mass for this object.
public final void setCenterOfMass(double x,
double y,
double z)
The center of mass must be given relative to the object base.
x - the x center value in [mm].y - the y center value in [mm].z - the z center value in [mm].public final void setInertia(Inertia loadInertia)
loadInertia - the load inertia for this object.public void fill(LoadData newData)
newData - the source load data.public String toString()
toString in class Objectpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||