FrictionCoefficient Class Reference

Friction coefficients random property. More...

#include <Randomiser.hh>

Public Member Functions

 FrictionCoefficient (IRandomSampler *sampler_, bool additive_, std::vector< std::string > &models_, std::vector< std::string > &links_, std::vector< double > &mu1_, std::vector< double > &mu2_, std::vector< double > &kp_, std::vector< double > &kd_)
 Constructor. More...
 
 ~FrictionCoefficient () 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 > links
 List of affected links. More...
 
std::vector< double > mu1
 Respective list of initial mu1. More...
 
std::vector< double > mu2
 Respective list of initial mu2. More...
 
std::vector< double > kp
 Respective list of initial kp. More...
 
std::vector< double > kd
 Respective list of initial kd. 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

Friction coefficients random property.

Constructor & Destructor Documentation

FrictionCoefficient ( IRandomSampler sampler_,
bool  additive_,
std::vector< std::string > &  models_,
std::vector< std::string > &  links_,
std::vector< double > &  mu1_,
std::vector< double > &  mu2_,
std::vector< double > &  kp_,
std::vector< double > &  kd_ 
)

Constructor.

Parameters
sampler_PRNG sampler
additive_Whether term is addictive or a scaling factor
models_List of affected models
links_List of affected links
mu1_List of respective mu1
mu2_List of respective mu2
kp_List of respective kp
kd_List of respective kd
Warning
std::vectors params are moved inside instance!
~FrictionCoefficient ( )
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> kd

Respective list of initial kd.

std::vector<double> kp

Respective list of initial kp.

std::vector<std::string> links

List of affected links.

std::vector<std::string> models

List of affected models.

std::vector<double> mu1

Respective list of initial mu1.

std::vector<double> mu2

Respective list of initial mu2.


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