Package org.robwork.sdurw_models
Class RigidBodyInfo
- java.lang.Object
-
- org.robwork.sdurw_models.RigidBodyInfo
-
public class RigidBodyInfo extends java.lang.ObjectA class to wrap rigid body information.
-
-
Constructor Summary
Constructors Constructor Description RigidBodyInfo(double mass, InertiaMatrixd Ibody)constructs a RigidBodyInfo with a mass, inertia matrix, initial
pose and velocity.RigidBodyInfo(long cPtr, boolean cMemoryOwn)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete()static longgetCPtr(RigidBodyInfo obj)InertiaMatrixdgetInertia()returns the inertia matrix of this rigid bodydoublegetMass()returns the mass of this RigidBodyInfo
-
-
-
Constructor Detail
-
RigidBodyInfo
public RigidBodyInfo(long cPtr, boolean cMemoryOwn)
-
RigidBodyInfo
public RigidBodyInfo(double mass, InertiaMatrixd Ibody)constructs a RigidBodyInfo with a mass, inertia matrix, initial
pose and velocity.
-
-
Method Detail
-
getCPtr
public static long getCPtr(RigidBodyInfo obj)
-
delete
public void delete()
-
getMass
public double getMass()
returns the mass of this RigidBodyInfo- Returns:
- the mass
-
getInertia
public InertiaMatrixd getInertia()
returns the inertia matrix of this rigid body
-
-