Randomiser representation class. More...
#include <Randomiser.hh>
Public Member Functions | |
| Randomiser (const std::string &config) | |
| Constructor. More... | |
| ~Randomiser () | |
| Destructor. More... | |
| void | randomise (bool blocking=true) |
| Apply batch randomisation. More... | |
| void | setTargetName (const std::string &target) |
| Sets target object name. More... | |
Static Public Attributes | |
| static const char | CFG_PROPERTIES [] = "properties" |
| Properties yml field string. More... | |
| static const char | CFG_MODEL_SCALE [] = "model_scale" |
| Model scale yml field string. More... | |
| static const char | CFG_LINK_MASS [] = "link_mass" |
| Link mass yml field string. More... | |
| static const char | CFG_FRICTION [] = "friction_coefficient" |
| Friction coefficients yml field string. More... | |
| static const char | CFG_JOINT_DAMPING [] = "joint_damping_coefficient" |
| Joint damping coefficients yml field string. More... | |
| static const char | CFG_P_GAIN [] = "p_gain" |
| P controller gains yml field string. More... | |
| static const char | CFG_JOINT_LIMIT [] = "joint_limit" |
| Joint limits yml field string. More... | |
| static const char | CFG_GRAVITY [] = "gravity" |
| Gravity vector yml field string. More... | |
| static const char | CFG_DIST [] = "dist" |
| Distribution yml field string. More... | |
| static const char | CFG_UNIFORM [] = "uniform" |
| Uniform distribution yml field string. More... | |
| static const char | CFG_LOG_UNIFORM [] = "loguniform" |
| Log-uniform distribution yml field string. More... | |
| static const char | CFG_UNIFORM_A [] = "a" |
| Uniform distribution lower limit yml field string. More... | |
| static const char | CFG_UNIFORM_B [] = "b" |
| Uniform distribution upper limit yml field string. More... | |
| static const char | CFG_GAUSSIAN [] = "gaussian" |
| Gaussian distribution yml field string. More... | |
| static const char | CFG_GAUSSIAN_MEAN [] = "mean" |
| Gaussian distribution mean yml field string. More... | |
| static const char | CFG_GAUSSIAN_STD [] = "std" |
| Gaussian distribution standard deviation yml field string. More... | |
| static const char | CFG_ADDITIVE [] = "additive" |
| Additive yml field string. More... | |
| static const char | CFG_VECTOR [] = "vector" |
| Vector yml field string. More... | |
| static const char | CFG_TARGET [] = "target" |
| Target yml keyword string. More... | |
| static const char | CFG_MODEL [] = "model" |
| Model yml field string. More... | |
| static const char | CFG_LINK [] = "link" |
| Link yml field string. More... | |
| static const char | CFG_JOINT [] = "joint" |
| Joints yml field string. More... | |
| static const char | CFG_MASS [] = "mass" |
| Link mass yml field string. More... | |
| static const char | CFG_DAMPING [] = "damping" |
| Joint damping yml field string. More... | |
| static const char | CFG_LOWER [] = "lower" |
| Joint lower limit yml field string. More... | |
| static const char | CFG_UPPER [] = "upper" |
| Joint upper limit yml field string. More... | |
| static const char | CFG_MU1 [] = "mu1" |
| Surface mu1 yml field string. More... | |
| static const char | CFG_MU2 [] = "mu2" |
| Surface mu2 yml field string. More... | |
| static const char | CFG_KP [] = "kp" |
| Surface kp yml field string. More... | |
| static const char | CFG_KD [] = "kd" |
| Surface kd yml field string. More... | |
| static const char | CFG_TYPE [] = "type" |
| Controller type yml field string. More... | |
| static const char | CFG_P [] = "p" |
| P controller gain yml field string. More... | |
| static const char | CFG_TYPE_POS [] = "position" |
| Position controller keyword string. More... | |
Private Attributes | |
| DRInterface | api |
| DRInterface API. More... | |
| std::vector< RandomProperty * > | properties |
| Randomised properties. More... | |
| std::mt19937 | m_mt |
| Mersenne Twister pseudorandom number generator. More... | |
| std::string | target {"TARGET_OBJECT"} |
| Target object string. More... | |
Randomiser representation class.
| Randomiser | ( | const std::string & | config | ) |
Constructor.
| ~Randomiser | ( | ) |
Destructor.
| void randomise | ( | bool | blocking = true | ) |
Apply batch randomisation.
| blocking | Whether to wait for response |
| void setTargetName | ( | const std::string & | target | ) |
Sets target object name.
| target | New target object name |
|
private |
DRInterface API.
|
static |
Additive yml field string.
|
static |
Joint damping yml field string.
|
static |
Distribution yml field string.
|
static |
Friction coefficients yml field string.
|
static |
Gaussian distribution yml field string.
|
static |
Gaussian distribution mean yml field string.
|
static |
Gaussian distribution standard deviation yml field string.
|
static |
Gravity vector yml field string.
|
static |
Joints yml field string.
|
static |
Joint damping coefficients yml field string.
|
static |
Joint limits yml field string.
|
static |
Surface kd yml field string.
|
static |
Surface kp yml field string.
|
static |
Link yml field string.
|
static |
Link mass yml field string.
|
static |
Log-uniform distribution yml field string.
|
static |
Joint lower limit yml field string.
|
static |
Link mass yml field string.
|
static |
Model yml field string.
|
static |
Model scale yml field string.
|
static |
Surface mu1 yml field string.
|
static |
Surface mu2 yml field string.
|
static |
P controller gain yml field string.
|
static |
P controller gains yml field string.
|
static |
Properties yml field string.
|
static |
Target yml keyword string.
|
static |
Controller type yml field string.
|
static |
Position controller keyword string.
|
static |
Uniform distribution yml field string.
|
static |
Uniform distribution lower limit yml field string.
|
static |
Uniform distribution upper limit yml field string.
|
static |
Joint upper limit yml field string.
|
static |
Vector yml field string.
|
private |
Mersenne Twister pseudorandom number generator.
|
private |
Randomised properties.
|
private |
Target object string.