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

#include <PPDBoxExtents.h>

Inheritance diagram for Rcs::PPDBoxExtents:
Collaboration diagram for Rcs::PPDBoxExtents:

Public Member Functions

 PPDBoxExtents (unsigned int shapeIdx, bool includeLength, bool includeWidth, bool includeHeight)
 
 ~PPDBoxExtents ()
 
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

unsigned int shapeIdx
 

Additional Inherited Members

- Protected Attributes inherited from Rcs::PhysicsParameterDescriptor
BodyParamInfobodyParamInfo
 

Detailed Description

Adjusts the length, width and high of a box shaped body. This class does not consider potentially necessary offsets, e.g. if the box is initially in contact with another body. The individual dimensions can be masked out by passing false.

Definition at line 44 of file PPDBoxExtents.h.

Constructor & Destructor Documentation

◆ PPDBoxExtents()

Rcs::PPDBoxExtents::PPDBoxExtents ( unsigned int  shapeIdx,
bool  includeLength,
bool  includeWidth,
bool  includeHeight 
)

Definition at line 44 of file PPDBoxExtents.cpp.

◆ ~PPDBoxExtents()

Rcs::PPDBoxExtents::~PPDBoxExtents ( )
default

Member Function Documentation

◆ init()

void Rcs::PPDBoxExtents::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 68 of file PPDBoxExtents.cpp.

◆ setValues()

void Rcs::PPDBoxExtents::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 77 of file PPDBoxExtents.cpp.

Member Data Documentation

◆ shapeIdx

unsigned int Rcs::PPDBoxExtents::shapeIdx
private

The shape's index given the body. THis is given by the order of the shapes in the config xml-file.

Definition at line 58 of file PPDBoxExtents.h.


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