PGain Class Reference

P controller gains random property. More...

#include <Randomiser.hh>

Public Member Functions

 PGain (IRandomSampler *sampler_, bool additive_, std::vector< std::string > &models_, std::vector< std::string > &joints_, std::vector< int > &types_, std::vector< double > &p_gains_)
 Constructor. More...
 
 ~PGain () 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< int > types
 Respective list of controller types. More...
 
std::vector< double > p_gains
 Respective list of initial P controller gains. 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

P controller gains random property.

Constructor & Destructor Documentation

PGain ( IRandomSampler sampler_,
bool  additive_,
std::vector< std::string > &  models_,
std::vector< std::string > &  joints_,
std::vector< int > &  types_,
std::vector< double > &  p_gains_ 
)

Constructor.

Parameters
sampler_PRNG sampler
additive_Whether term is addictive or a scaling factor
models_List of affected models
joints_List of affected joints
types_List of respective controller types
p_gains_List of respective P controller gains
Warning
std::vectors params are moved inside instance!
~PGain ( )
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<std::string> joints

List of affected joints.

std::vector<std::string> models

List of affected models.

std::vector<double> p_gains

Respective list of initial P controller gains.

std::vector<int> types

Respective list of controller types.


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