27 #define HUMOTO_CONFIG_SECTION_ID "WBCParameters" 28 #define HUMOTO_CONFIG_CONSTRUCTOR WBCParameters 29 #define HUMOTO_CONFIG_ENTRIES \ 30 HUMOTO_CONFIG_SCALAR_(control_interval_ms) \ 31 HUMOTO_CONFIG_SCALAR_(joint_angle_error_tolerance) \ 32 HUMOTO_CONFIG_SCALAR_(motion_parameters_tolerance) \ 33 HUMOTO_CONFIG_SCALAR_(maximal_number_of_iterations) 34 #include HUMOTO_CONFIG_DEFINE_ACCESSORS 43 control_interval_ms_ = 10;
44 joint_angle_error_tolerance_ = 1e-2;
45 maximal_number_of_iterations_ = 3;
46 motion_parameters_tolerance_ = 1e-3;
80 #define HUMOTO_CONFIG_SECTION_ID "MotionParameters" 81 #define HUMOTO_CONFIG_CONSTRUCTOR MotionParameters 82 #define HUMOTO_CONFIG_ENTRIES \ 83 HUMOTO_CONFIG_COMPOUND_(base_orientation_rpy) \ 84 HUMOTO_CONFIG_COMPOUND_(base_com_position) \ 85 HUMOTO_CONFIG_COMPOUND_(body_com_position) 86 #include HUMOTO_CONFIG_DEFINE_ACCESSORS 108 base_com_position_.x() = 0.002531976618098;
109 base_com_position_.y() = 0.0;
110 base_com_position_.z() = 0.125564931735602;
112 body_com_position_.x() = -0.00402863432226587;
113 body_com_position_.y() = 0.0;
114 body_com_position_.z() = 0.75;
116 base_orientation_rpy_.x() = 0;
117 base_orientation_rpy_.y() = 0;
118 base_orientation_rpy_.z() = 0;
void finalize()
This function is called automaticaly after reading a configuration file. Does nothing by default...
static const char * ROOT_VARIABLES_ID
Root position and orientation.
static const char * JOINTS_VARIABLES_ID
Joint angles.
Desired motion parameters.
etools::Vector3 base_com_position_
Default configurable base is strict.
double HUMOTO_LOCAL convertMillisecondToSecond(const std::size_t milliseconds)
Converts milliseconds to seconds.
etools::Vector3 body_com_position_
void setDefaults()
Initialize to default values.
double motion_parameters_tolerance_
void setDefaults()
Initialize to default values.
std::size_t maximal_number_of_iterations_
The root namespace of HuMoTo.
double joint_angle_error_tolerance_
std::size_t control_interval_ms_
Parameters of the WBC problem.
etools::Vector3 base_orientation_rpy_