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

#include <PPDBoxExtents.h>

Inheritance diagram for Rcs::PPDCubeExtents:
Collaboration diagram for Rcs::PPDCubeExtents:

Public Member Functions

 PPDCubeExtents (unsigned int shapeIdx)
 
 ~PPDCubeExtents ()
 
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

Equally 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 3 dimensions are changes simultaneously to keep the cube shape.

Definition at line 67 of file PPDBoxExtents.h.

Constructor & Destructor Documentation

◆ PPDCubeExtents()

Rcs::PPDCubeExtents::PPDCubeExtents ( unsigned int  shapeIdx)

Definition at line 84 of file PPDBoxExtents.cpp.

◆ ~PPDCubeExtents()

Rcs::PPDCubeExtents::~PPDCubeExtents ( )
default

Member Function Documentation

◆ init()

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

◆ setValues()

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

Member Data Documentation

◆ shapeIdx

unsigned int Rcs::PPDCubeExtents::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 81 of file PPDBoxExtents.h.


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