PPL API Reference |
|
---|
Public Member Functions | |
Construction | |
AverageEstimator (Robot *const _robot) | |
virtual | ~AverageEstimator () |
StateEstimator Overrides | |
virtual void | ApplyObservations (SensorInterface *const _sensor) override |
Interface | |
void | SetState (const Cfg &_cfg, const std::vector< double > &_uncertainty) |
void | ApplyControls (const ControlSet &_controls, const double _dt) |
const Cfg & | GetEstimatedState () const |
Get the current state estimate. | |
const std::vector< double > & | GetUncertainty () const |
Get the uncertainty in the estimated state. | |
Static Public Member Functions | |
Construction | |
static std::unique_ptr< StateEstimator > | Factory (Robot *const _robot, XMLNode &_node) |
Protected Attributes | |
Internal State | |
Get the covariance matrix for the state estimate.
| |
Robot *const | m_robot |
The owning robot. | |
Cfg | m_estimatedState |
The current estimated state. | |
std::vector< double > | m_uncertainty |
Uncertainty in the current estimate. | |
bool | m_debug {false} |
The debug flag. | |
Extension of a state estimator object, which will average all sensor readings and update a robot's state according to this average.
AverageEstimator::AverageEstimator | ( | Robot *const | _robot | ) |
_robot | Robot for the state estimator |
|
overridevirtual |
Apply the most recent observations from a sensor to the current estimated state.
_sensor | The sensor to take observations from. |
Implements StateEstimator.
|
staticinherited |
Create a dynamically-allocated state estimator from an XML node.
_robot | The robot which this state estimator will work for. |
_node | The XML node to parse. |
|
inherited |
Set the current state and uncertainty.
_cfg | The state to set. |
_uncertainty | The uncertainty in _cfg. |
|
inherited |
Apply a set of controls to the current estimated state.
_controls | The set of controls to apply. |
_dt | The length of time to apply the controls. |