humoto
|
Definition at line 19 of file model_state.h.
#include <model_state.h>
Public Member Functions | |
ModelState () | |
Default constructor. More... | |
ModelState (const double base_height, const double body_height, const double body_x_offset) | |
Construct class using given parameters. More... | |
ModelState (const double &base_mass, const double &body_mass, const etools::Vector3 &base_position, const etools::Vector3 &body_position) | |
Construct class using given parameters. More... | |
void | log (humoto::Logger &logger, const LogEntryName &parent=LogEntryName(), const std::string &name="model_state") const |
Log. More... | |
void | readConfig (t_Reader &reader, const bool crash_on_missing_entry=default_crash_on_missing_entry_) |
Read configuration (assuming the configuration node to be in the root). More... | |
void | readConfig (t_Reader &reader, const std::string &node_name, const bool crash_on_missing_entry=default_crash_on_missing_entry_) |
Read configuration (assuming the configuration node to be in the root). More... | |
void | readConfig (t_Reader &reader, const char *node_name, const bool crash_on_missing_entry=default_crash_on_missing_entry_) |
Read configuration (assuming the configuration node to be in the root). More... | |
void | readConfig (const std::string &file_name, const bool crash_on_missing_entry=default_crash_on_missing_entry_) |
Read configuration (assuming the configuration node to be in the root). More... | |
void | readConfig (const std::string &file_name, const std::string &node_name, const bool crash_on_missing_entry=default_crash_on_missing_entry_) |
Read configuration (assuming the configuration node to be in the root). More... | |
void | readConfig (const std::string &file_name, const char *node_name, const bool crash_on_missing_entry=default_crash_on_missing_entry_) |
Read configuration (assuming the configuration node to be in the root). More... | |
void | readNestedConfig (t_Reader &reader, const std::string &node_name, const bool crash_on_missing_entry=default_crash_on_missing_entry_) |
Read nested configuration node. More... | |
void | set (const humoto::rigidbody::RigidBodyState &base_state, const humoto::rigidbody::PointMassState &body_state) |
Initialize state directly with the states of the CoM and feet. More... | |
void | set (const double &base_mass, const double &body_mass, const etools::Vector3 &base_position, const etools::Vector3 &body_position) |
Initialize state. More... | |
void | update (const double &base_mass, const double &body_mass, const etools::Vector3 &base_position, const etools::Vector3 &body_position, const double &base_orientation) |
Partial update of the state. More... | |
void | writeConfig (t_Writer &writer) const |
Write configuration. More... | |
void | writeConfig (t_Writer &writer, const std::string &node_name) const |
Write configuration. More... | |
void | writeConfig (const std::string &file_name) const |
Write configuration. More... | |
void | writeConfig (const std::string &file_name, const std::string &node_name) const |
Write configuration. More... | |
void | writeNestedConfig (t_Writer &writer) const |
Write nested configuration node. More... | |
void | writeNestedConfig (t_Writer &writer, const std::string &node_name) const |
Write nested configuration node. More... | |
Public Attributes | |
double | base_mass_ |
humoto::rigidbody::RigidBodyState | base_state_ |
State of the base. More... | |
double | body_mass_ |
humoto::rigidbody::PointMassState | body_state_ |
State of the body. More... | |
Protected Member Functions | |
virtual void | finalize () |
This function is called automaticaly after reading a configuration file. Does nothing by default. More... | |
virtual const std::string & | getConfigSectionID () const=0 |
Return the default name of a configuration node corresponding to this class. More... | |
virtual std::size_t | getNumberOfEntries () const=0 |
Get number of entries in the corresponding configuration node. More... | |
void | setDefaults () |
Set members to their default values. More... | |
void | setParameters (const double base_height=0.125564931735602, const double body_height=7.50001340031501e-01, const double body_x_offset=-0.00656061094036387, const double base_mass=16.34234, const double body_mass=12.3389) |
Set default parameters. More... | |
Static Protected Attributes | |
static const bool | default_crash_on_missing_entry_ |
|
inline |
Default constructor.
Definition at line 85 of file model_state.h.
|
inline |
Construct class using given parameters.
[in] | base_height | |
[in] | body_height | |
[in] | body_x_offset | offset of the body with respect to the base |
Definition at line 98 of file model_state.h.
|
inline |
Construct class using given parameters.
[in] | base_mass | |
[in] | body_mass | |
[in] | base_position | |
[in] | body_position |
Definition at line 114 of file model_state.h.
|
inlineprotectedvirtualinherited |
This function is called automaticaly after reading a configuration file. Does nothing by default.
Reimplemented in humoto::WeightedSimpleTaskBaseMixin< constraints::ConstraintsGIB< TaskBase > >, humoto::WeightedSimpleTaskBaseMixin< constraints::ConstraintsGILU< TaskBase > >, humoto::WeightedSimpleTaskBaseMixin< constraints::ConstraintsGIL< TaskBase > >, humoto::WeightedSimpleTaskBaseMixin< constraints::ConstraintsGIU< TaskBase > >, humoto::WeightedSimpleTaskBaseMixin< constraints::ConstraintsGIB0< TaskBase > >, humoto::GeneralTaskBaseMixin< constraints::ConstraintsAB< TaskBase > >, humoto::GeneralTaskBaseMixin< constraints::ConstraintsAB0< TaskBase > >, humoto::GeneralTaskBaseMixin< constraints::ConstraintsASU< TaskBase > >, humoto::GeneralTaskBaseMixin< constraints::ConstraintsASL< TaskBase > >, humoto::GeneralTaskBaseMixin< constraints::ConstraintsASLU< TaskBase > >, humoto::GeneralTaskBaseMixin< constraints::ConstraintsAU< TaskBase > >, humoto::GeneralTaskBaseMixin< constraints::ConstraintsAL< TaskBase > >, humoto::GeneralTaskBaseMixin< constraints::ConstraintsASB< TaskBase > >, humoto::GeneralTaskBaseMixin< constraints::ConstraintsALU< TaskBase > >, humoto::GeneralTaskBaseMixin< constraints::ConstraintsASB0< TaskBase > >, humoto::pepper_mpc::MPCParameters, humoto::pepper_mpc::MotionParameters, humoto::walking::RobotFootParameters, humoto::wpg04::MPCParameters, humoto::pepper_mpc::RobotParameters, humoto::pepper_ik::WBCParameters, humoto::pepper_ik::GeneralizedCoordinates< t_features >, humoto::wpg04::TaskCoPPosition, humoto::wpg04::TaskCoMVelocity, humoto::wpg04::TaskCoPVelocity, and humoto::wpg04::TaskTerminalConstraint.
|
protectedpure virtualinherited |
Return the default name of a configuration node corresponding to this class.
Implemented in humoto::TaskBase.
|
protectedpure virtualinherited |
Get number of entries in the corresponding configuration node.
Implemented in humoto::ConfigurableOptimizationProblem.
|
inlinevirtual |
Log.
[in,out] | logger | logger |
[in] | parent | parent |
[in] | name | name |
Implements humoto::ModelState.
Definition at line 195 of file model_state.h.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inline |
Initialize state directly with the states of the CoM and feet.
[in] | base_state | state of the base |
[in] | body_state | state of the body |
Definition at line 130 of file model_state.h.
|
inline |
Initialize state.
[in] | base_mass | |
[in] | body_mass | |
[in] | base_position | |
[in] | body_position |
Definition at line 146 of file model_state.h.
|
inlineprotectedvirtual |
Set members to their default values.
Implements humoto::config::CommonConfigurableBase< true >.
Definition at line 64 of file model_state.h.
|
inlineprotected |
Set default parameters.
[in] | base_height | |
[in] | body_height | |
[in] | body_x_offset | offset of the body with respect to the base |
[in] | base_mass | |
[in] | body_mass |
Definition at line 41 of file model_state.h.
|
inline |
Partial update of the state.
[in] | base_mass | |
[in] | body_mass | |
[in] | base_position | |
[in] | body_position | |
[in] | base_orientation |
Definition at line 172 of file model_state.h.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
double humoto::pepper_mpc::ModelState::base_mass_ |
Definition at line 77 of file model_state.h.
humoto::rigidbody::RigidBodyState humoto::pepper_mpc::ModelState::base_state_ |
State of the base.
Definition at line 72 of file model_state.h.
double humoto::pepper_mpc::ModelState::body_mass_ |
Definition at line 78 of file model_state.h.
humoto::rigidbody::PointMassState humoto::pepper_mpc::ModelState::body_state_ |
State of the body.
Definition at line 75 of file model_state.h.
|
staticprotectedinherited |