|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.kuka.roboticsAPI.geometricModel.LoadData
public class LoadData
LoadData represents the load of a single physical object. Because objects can
be connected to each other, a combined load can be calculated using the
helper methods of the PhysicsUtils class.
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 the other object. |
Transformation |
getCenterOfMass()
Gets the center of mass. |
Inertia |
getInertia()
Gets the inertia. |
double |
getMass()
Gets the mass of the physical object 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 of this object 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.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 of this object in [kg].public 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)
Note that the references will get copied. The method performs no 'deep' copy.
newData - the other data object.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 | |||||||||