RcsPySim
A robot control and simulation library
Rcs::PPDMassProperties Class Reference

#include <PPDMassProperties.h>

Inheritance diagram for Rcs::PPDMassProperties:
Collaboration diagram for Rcs::PPDMassProperties:

Public Member Functions

 PPDMassProperties ()
 
virtual ~PPDMassProperties ()
 
virtual void setValues (PropertySource *inValues)
 
- Public Member Functions inherited from Rcs::PPDCompound
 PPDCompound ()
 
virtual ~PPDCompound ()
 
void addChild (PhysicsParameterDescriptor *)
 
virtual void getValues (PropertySink *outValues)
 
const std::vector< PhysicsParameterDescriptor * > & getChildren () const
 
- Public Member Functions inherited from Rcs::PhysicsParameterDescriptor
 PhysicsParameterDescriptor ()
 
virtual ~PhysicsParameterDescriptor ()
 

Additional Inherited Members

- Protected Member Functions inherited from Rcs::PPDCompound
virtual void init (BodyParamInfo *bodyParamInfo)
 
- Protected Attributes inherited from Rcs::PhysicsParameterDescriptor
BodyParamInfobodyParamInfo
 

Detailed Description

Descriptor for the body's mass, center of mass and inertia.

If the center of mass or the inertia are not set, they will be calculated automatically. Setting one part of com or inertia is enough to define them as set.

Exposes:

  • mass Mass of the body Unit: kg
  • com_x, com_y, com_z 3d position of the center of mass Unit: m
  • i_xx, i_xy, i_xz, i_yy, i_yz, i_zz Components of the inertia tensor Unit: kg m^2

Definition at line 57 of file PPDMassProperties.h.

Constructor & Destructor Documentation

◆ PPDMassProperties()

Rcs::PPDMassProperties::PPDMassProperties ( )

Definition at line 45 of file PPDMassProperties.cpp.

◆ ~PPDMassProperties()

Rcs::PPDMassProperties::~PPDMassProperties ( )
virtualdefault

Member Function Documentation

◆ setValues()

void Rcs::PPDMassProperties::setValues ( PropertySource inValues)
virtual

Read values from the given dict and apply them to the graph. The parameter names need to be the same as in Rcs, e.g. rolling_friction_coefficient.

Reimplemented from Rcs::PPDCompound.

Definition at line 64 of file PPDMassProperties.cpp.


The documentation for this class was generated from the following files: