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

#include <PPDRodLength.h>

Inheritance diagram for Rcs::PPDRodLength:
Collaboration diagram for Rcs::PPDRodLength:

Public Member Functions

 PPDRodLength ()
 
virtual void getValues (PropertySink *outValues)
 
virtual void setValues (PropertySource *inValues)
 
- Public Member Functions inherited from Rcs::PhysicsParameterDescriptor
 PhysicsParameterDescriptor ()
 
virtual ~PhysicsParameterDescriptor ()
 

Protected Member Functions

virtual void init (BodyParamInfo *bpi)
 

Private Attributes

std::string propertyName
 
RcsShape * rodShape
 
double rodDirection [3]
 
double rodOffset [3]
 
RcsJoint * childJoint
 
double jointOffset [3]
 

Additional Inherited Members

- Protected Attributes inherited from Rcs::PhysicsParameterDescriptor
BodyParamInfobodyParamInfo
 

Detailed Description

Adjusts a rod's / cylinder's length and shift it accordingly. It assumes that the rod is aligned with the body's z axis. This class has be written with the QuanserQube in mind The mass properties are not adjusted automatically, so you should put a PPDMassProperties behind this descriptor.

Definition at line 45 of file PPDRodLength.h.

Constructor & Destructor Documentation

◆ PPDRodLength()

Rcs::PPDRodLength::PPDRodLength ( )

Definition at line 38 of file PPDRodLength.cpp.

Member Function Documentation

◆ getValues()

void Rcs::PPDRodLength::getValues ( PropertySink outValues)
virtual

Read values from graph and put them into the given dict.

Implements Rcs::PhysicsParameterDescriptor.

Definition at line 122 of file PPDRodLength.cpp.

◆ init()

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

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

Reimplemented from Rcs::PhysicsParameterDescriptor.

Definition at line 46 of file PPDRodLength.cpp.

◆ setValues()

void Rcs::PPDRodLength::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.

Implements Rcs::PhysicsParameterDescriptor.

Definition at line 102 of file PPDRodLength.cpp.

Member Data Documentation

◆ childJoint

RcsJoint* Rcs::PPDRodLength::childJoint
private

Definition at line 59 of file PPDRodLength.h.

◆ jointOffset

double Rcs::PPDRodLength::jointOffset[3]
private

Definition at line 61 of file PPDRodLength.h.

◆ propertyName

std::string Rcs::PPDRodLength::propertyName
private

Definition at line 49 of file PPDRodLength.h.

◆ rodDirection

double Rcs::PPDRodLength::rodDirection[3]
private

Definition at line 54 of file PPDRodLength.h.

◆ rodOffset

double Rcs::PPDRodLength::rodOffset[3]
private

Definition at line 56 of file PPDRodLength.h.

◆ rodShape

RcsShape* Rcs::PPDRodLength::rodShape
private

Definition at line 51 of file PPDRodLength.h.


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