Preview horizon of an MPC [form_preview_horizon.m].
Definition at line 149 of file preview_horizon.h.
#include <preview_horizon.h>
◆ form() [1/2]
Form the preview horizon object.
- Parameters
-
[in] | mpc_params | |
[in] | model | |
[in] | motion_parameters | |
- Returns
- true if successful
Definition at line 165 of file preview_horizon.h.
◆ form() [2/2]
Form the preview horizon object.
- Parameters
-
[in] | mpc_params | |
[in] | model | |
[in] | motion_parameters_deque | |
- Returns
- true if successful
Definition at line 202 of file preview_horizon.h.
◆ getBaseReferencePosition()
etools::Vector2 humoto::pepper_mpc::PreviewHorizon::getBaseReferencePosition |
( |
const std::size_t |
interval_index | ) |
const |
|
inline |
Get base reference position.
- Parameters
-
- Returns
- 2d vector [base_pos_ref_x, base_pos_ref_y]
Definition at line 339 of file preview_horizon.h.
◆ getBaseReferenceVelocity()
etools::Vector2 humoto::pepper_mpc::PreviewHorizon::getBaseReferenceVelocity |
( |
const std::size_t |
interval_index | ) |
const |
|
inline |
Get base reference velocity.
- Parameters
-
- Returns
- 2d vector [base_vel_ref_x, base_vel_ref_y]
Definition at line 326 of file preview_horizon.h.
◆ getBodyBounds()
etools::Matrix2 humoto::pepper_mpc::PreviewHorizon::getBodyBounds |
( |
const std::size_t |
interval_index | ) |
const |
|
inline |
Get body bounds.
- Parameters
-
- Returns
- 2d matrix [lb, ub]
Definition at line 300 of file preview_horizon.h.
◆ getCoPBounds()
etools::Matrix2 humoto::pepper_mpc::PreviewHorizon::getCoPBounds |
( |
const std::size_t |
interval_index | ) |
const |
|
inline |
Get CoP bounds for given interval.
- Parameters
-
- Returns
- 2d matrix [lb, ub]
Definition at line 313 of file preview_horizon.h.
◆ getIntervalIndexByTimeOffset() [1/2]
std::size_t humoto::pepper_mpc::PreviewHorizon::getIntervalIndexByTimeOffset |
( |
std::size_t & |
offset_ms | ) |
const |
|
inline |
Finds interval which contains the time instant with the given offset from the beginning of the preview horizon.
- Parameters
-
[in,out] | offset_ms | input: offset within the preview horizon output: offset within the interval |
- Returns
- interval index
Definition at line 367 of file preview_horizon.h.
◆ getIntervalIndexByTimeOffset() [2/2]
std::size_t humoto::pepper_mpc::PreviewHorizon::getIntervalIndexByTimeOffset |
( |
double & |
offset | ) |
const |
|
inline |
Finds interval which contains the time instant with the given offset from the beginning of the preview horizon.
- Parameters
-
[in,out] | offset | input: offset within the preview horizon output: offset within the interval |
- Returns
- interval index
Definition at line 396 of file preview_horizon.h.
◆ getNominalBaseAccelerationBounds()
etools::Matrix2 humoto::pepper_mpc::PreviewHorizon::getNominalBaseAccelerationBounds |
( |
const std::size_t |
interval_index | ) |
const |
|
inline |
Get nominal base acceleration bounds for a given interval.
- Parameters
-
- Returns
- 2d matrix [x_base_acc, y_base_acc]
Definition at line 287 of file preview_horizon.h.
◆ getNominalBaseVelocityBounds()
etools::Matrix2 humoto::pepper_mpc::PreviewHorizon::getNominalBaseVelocityBounds |
( |
const std::size_t |
interval_index | ) |
const |
|
inline |
Get nominal base velocity bounds for a given interval.
- Parameters
-
- Returns
- 2d matrix [x_base_vel, y_base_vel]
Definition at line 274 of file preview_horizon.h.
◆ getPreviewHorizonLength()
std::size_t humoto::pepper_mpc::PreviewHorizon::getPreviewHorizonLength |
( |
| ) |
const |
|
inline |
Get preview horizon length.
- Returns
- preview horizon length
Definition at line 261 of file preview_horizon.h.
◆ getRotationMatrix()
etools::Matrix2 humoto::pepper_mpc::PreviewHorizon::getRotationMatrix |
( |
const std::size_t |
interval_index | ) |
const |
|
inline |
Get orientation of the support corresponding to the given interval.
- Parameters
-
- Returns
- 2d rotation matrix
Definition at line 352 of file preview_horizon.h.
◆ log()
Log.
- Parameters
-
[in,out] | logger | logger |
[in] | parent | parent |
[in] | name | name |
Definition at line 423 of file preview_horizon.h.
◆ intervals_
The documentation for this class was generated from the following file: