JointDampingCoefficient Class Reference

Joint damping coefficients random property. More...

#include <Randomiser.hh>

Public Member Functions

 JointDampingCoefficient (IRandomSampler *sampler_, bool additive_, std::vector< std::string > &models_, std::vector< std::string > &joints_, std::vector< double > &damping_)
 Constructor. More...
 
 ~JointDampingCoefficient () override
 Destructor. More...
 
void fillMsg (DRRequest &msg, DRInterface &api, std::mt19937 &gen, std::string &target) override
 Fill DR request message. More...
 
- Public Member Functions inherited from RandomProperty
 RandomProperty (IRandomSampler *sampler_, bool additive_)
 Constructor. More...
 
virtual ~RandomProperty ()
 Destructor. More...
 

Public Attributes

std::vector< std::string > models
 List of affected models. More...
 
std::vector< std::string > joints
 List of affected joints. More...
 
std::vector< double > damping
 Respective list of initial damping coefficients. More...
 
- Public Attributes inherited from RandomProperty
IRandomSamplersampler
 Random distribution sampler. More...
 
bool additive
 Whether term is additive or a scaling factor. More...
 

Additional Inherited Members

- Static Public Attributes inherited from RandomProperty
static const char CFG_TARGET_OBJ [] = "TARGET_OBJECT"
 Target object yml keyword string. More...
 

Detailed Description

Joint damping coefficients random property.

Constructor & Destructor Documentation

JointDampingCoefficient ( IRandomSampler sampler_,
bool  additive_,
std::vector< std::string > &  models_,
std::vector< std::string > &  joints_,
std::vector< double > &  damping_ 
)

Constructor.

Parameters
sampler_PRNG sampler
additive_Whether term is addictive or a scaling factor
models_List of affected models
joints_List of affected joints
damping_List of respective damping coefficients
Warning
std::vectors params are moved inside instance!
~JointDampingCoefficient ( )
inlineoverride

Destructor.

Member Function Documentation

void fillMsg ( DRRequest msg,
DRInterface &  api,
std::mt19937 &  gen,
std::string &  target 
)
overridevirtual

Fill DR request message.

Parameters
msgDR request message
apiDR interface
genPRNG
targetName of target object

Reimplemented from RandomProperty.

Member Data Documentation

std::vector<double> damping

Respective list of initial damping coefficients.

std::vector<std::string> joints

List of affected joints.

std::vector<std::string> models

List of affected models.


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