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

#include <PPDBodyOrientation.h>

Inheritance diagram for Rcs::PPDBodyOrientation:
Collaboration diagram for Rcs::PPDBodyOrientation:

Public Member Functions

 PPDBodyOrientation (bool includeA, bool includeB, bool includeC)
 
 ~PPDBodyOrientation ()
 
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 ()
 

Protected Member Functions

virtual void init (BodyParamInfo *bpi)
 

Private Attributes

double initRot [3][3]
 
double offsetRot [3]
 

Additional Inherited Members

- Protected Attributes inherited from Rcs::PhysicsParameterDescriptor
BodyParamInfobodyParamInfo
 

Detailed Description

Adjusts the angular orientation of a body in space by adding an offset. The individual dimensions can be masked out by passing false.

Definition at line 43 of file PPDBodyOrientation.h.

Constructor & Destructor Documentation

◆ PPDBodyOrientation()

Rcs::PPDBodyOrientation::PPDBodyOrientation ( bool  includeA,
bool  includeB,
bool  includeC 
)

Definition at line 61 of file PPDBodyOrientation.cpp.

◆ ~PPDBodyOrientation()

Rcs::PPDBodyOrientation::~PPDBodyOrientation ( )
default

Member Function Documentation

◆ init()

void Rcs::PPDBodyOrientation::init ( Rcs::BodyParamInfo bodyParamInfo)
protectedvirtual

Setup descriptor to work on the given body reference. Override for more custom initialization.

Reimplemented from Rcs::PPDCompound.

Definition at line 92 of file PPDBodyOrientation.cpp.

◆ setValues()

void Rcs::PPDBodyOrientation::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 100 of file PPDBodyOrientation.cpp.

Member Data Documentation

◆ initRot

double Rcs::PPDBodyOrientation::initRot[3][3]
private

The body's nominal orientation (in world coordinates / the parent's coordinates)

Definition at line 57 of file PPDBodyOrientation.h.

◆ offsetRot

double Rcs::PPDBodyOrientation::offsetRot[3]
private

Angular (around the elementary axes) offset values.

Definition at line 60 of file PPDBodyOrientation.h.


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