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

#include <PPDBodyPosition.h>

Inheritance diagram for Rcs::PPDBodyPosition:
Collaboration diagram for Rcs::PPDBodyPosition:

Public Member Functions

 PPDBodyPosition (bool includeX, bool includeY, bool includeZ)
 
 ~PPDBodyPosition ()
 
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 initPos [3]
 
double offsetPos [3]
 

Additional Inherited Members

- Protected Attributes inherited from Rcs::PhysicsParameterDescriptor
BodyParamInfobodyParamInfo
 

Detailed Description

Adjusts the Cartesian position 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 PPDBodyPosition.h.

Constructor & Destructor Documentation

◆ PPDBodyPosition()

Rcs::PPDBodyPosition::PPDBodyPosition ( bool  includeX,
bool  includeY,
bool  includeZ 
)

Definition at line 43 of file PPDBodyPosition.cpp.

◆ ~PPDBodyPosition()

Rcs::PPDBodyPosition::~PPDBodyPosition ( )
default

Member Function Documentation

◆ init()

void Rcs::PPDBodyPosition::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 74 of file PPDBodyPosition.cpp.

◆ setValues()

void Rcs::PPDBodyPosition::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 81 of file PPDBodyPosition.cpp.

Member Data Documentation

◆ initPos

double Rcs::PPDBodyPosition::initPos[3]
private

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

Definition at line 57 of file PPDBodyPosition.h.

◆ offsetPos

double Rcs::PPDBodyPosition::offsetPos[3]
private

Position offset values.

Definition at line 60 of file PPDBodyPosition.h.


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