Public Member Functions | Public Attributes | List of all members
RobotDynamics::Body Struct Reference

Describes all properties of a single body. More...

#include <Body.h>

Public Member Functions

 Body ()
 
 Body (const Body &body)
 
 Body (const double &mass, const Math::Vector3d &com, const Math::Vector3d &gyration_radii)
 Constructs a body from mass, center of mass and radii of gyration. More...
 
 Body (const double &mass, const Math::Vector3d &com, const Math::Matrix3d &inertia_C)
 Constructs a body from mass, center of mass, and a 3x3 inertia matrix. More...
 
void join (const Math::SpatialTransform &transform, const Body &other_body)
 Joins inertial parameters of two bodies to create a composite body. More...
 
Bodyoperator= (const Body &body)
 
 ~Body ()
 

Public Attributes

Math::Vector3d mCenterOfMass
 The position of the center of mass in body coordinates. More...
 
Math::Matrix3d mInertia
 Inertia matrix at the center of mass. More...
 
bool mIsVirtual
 
double mMass
 The mass of the body. More...
 

Detailed Description

Describes all properties of a single body.

A Body contains information about mass, the location of its center of mass, and the ineria tensor in the center of mass. This class is designed to use the given information and transform it such that it can directly be used by the spatial algebra.

Definition at line 30 of file Body.h.

Constructor & Destructor Documentation

RobotDynamics::Body::Body ( )
inline

Definition at line 32 of file Body.h.

RobotDynamics::Body::Body ( const Body body)
inline

Definition at line 36 of file Body.h.

RobotDynamics::Body::Body ( const double &  mass,
const Math::Vector3d com,
const Math::Vector3d gyration_radii 
)
inline

Constructs a body from mass, center of mass and radii of gyration.

This constructor eases the construction of a new body as all the required parameters can be specified as parameters to the constructor. These are then used to generate the spatial inertia matrix which is expressed at the origin.

Parameters
massthe mass of the body
comthe position of the center of mass in the bodies coordinates
gyration_radiithe radii of gyration at the center of mass of the body

Definition at line 64 of file Body.h.

RobotDynamics::Body::Body ( const double &  mass,
const Math::Vector3d com,
const Math::Matrix3d inertia_C 
)
inline

Constructs a body from mass, center of mass, and a 3x3 inertia matrix.

This constructor eases the construction of a new body as all the required parameters can simply be specified as parameters to the constructor. These are then used to generate the spatial inertia matrix which is expressed at the origin.

Parameters
massthe mass of the body
comthe position of the center of mass in the bodies coordinates
inertia_Cthe inertia at the center of mass

Definition at line 80 of file Body.h.

RobotDynamics::Body::~Body ( )
inline

Definition at line 151 of file Body.h.

Member Function Documentation

void RobotDynamics::Body::join ( const Math::SpatialTransform transform,
const Body other_body 
)
inline

Joins inertial parameters of two bodies to create a composite body.

This function can be used to join inertial parameters of two bodies to create a composite body that has the inertial properties as if the two bodies were joined by a fixed joint.

Note
Both bodies have to have their inertial parameters expressed in the same orientation.
Parameters
transformThe frame transformation from the origin of the original body to the origin of the added body
other_bodyThe other body that will be merged with *this.

Definition at line 98 of file Body.h.

Body& RobotDynamics::Body::operator= ( const Body body)
inline

Definition at line 40 of file Body.h.

Member Data Documentation

Math::Vector3d RobotDynamics::Body::mCenterOfMass

The position of the center of mass in body coordinates.

Definition at line 159 of file Body.h.

Math::Matrix3d RobotDynamics::Body::mInertia

Inertia matrix at the center of mass.

Definition at line 162 of file Body.h.

bool RobotDynamics::Body::mIsVirtual

Definition at line 164 of file Body.h.

double RobotDynamics::Body::mMass

The mass of the body.

Definition at line 156 of file Body.h.


The documentation for this struct was generated from the following file:


rdl_dynamics
Author(s):
autogenerated on Tue Apr 20 2021 02:25:28