Footstep plan interpolator.
More...
#include <lipm_walking/PlanInterpolator.h>
|
bool | isShown = false |
| Is the footstep interpolator tab displayed? More...
|
|
unsigned | nbIter = 0 |
| Number of times the interpolator was called. More...
|
|
Footstep plan interpolator.
Definition at line 43 of file PlanInterpolator.h.
Gait type.
Walking is the most common one, where footsteps alternate on each side of the support path. Shuffling is used for lateral stepping: after each step, the robot brings back the other foot next to the current one. Turning is a special pattern where only footstep orientations change.
Enumerator |
---|
Walk |
|
Shuffle |
|
Turn |
|
Definition at line 63 of file PlanInterpolator.h.
lipm_walking::PlanInterpolator::PlanInterpolator |
( |
std::shared_ptr< mc_rtc::gui::StateBuilder > |
gui | ) |
|
|
inline |
Initialization just stores the GUI handle for later.
- Parameters
-
Definition at line 75 of file PlanInterpolator.h.
void lipm_walking::PlanInterpolator::addGUIElements |
( |
| ) |
|
std::vector<std::string> lipm_walking::PlanInterpolator::availablePlans |
( |
| ) |
const |
|
inline |
List available contact plans.
- Returns
- keys Names of available contact plans.
Definition at line 118 of file PlanInterpolator.h.
void lipm_walking::PlanInterpolator::configure |
( |
const mc_rtc::Configuration & |
config | ) |
|
Read configuration from dictionary.
- Parameters
-
config | Configuration dictionary. |
Definition at line 157 of file PlanInterpolator.cpp.
const std::string& lipm_walking::PlanInterpolator::customPlanName |
( |
| ) |
const |
|
inline |
Get name of current custom footstep plan.
- Returns
- name Name of custom plan.
Definition at line 128 of file PlanInterpolator.h.
std::string lipm_walking::PlanInterpolator::gait |
( |
| ) |
const |
|
inline |
Get current gait as string.
- Returns
- gait Current gait string.
Definition at line 138 of file PlanInterpolator.h.
void lipm_walking::PlanInterpolator::gait |
( |
const std::string & |
dir | ) |
|
|
inline |
FootstepPlan lipm_walking::PlanInterpolator::getPlan |
( |
std::string |
name | ) |
|
|
inline |
void lipm_walking::PlanInterpolator::removeGUIElements |
( |
| ) |
|
void lipm_walking::PlanInterpolator::restoreBackwardTarget |
( |
| ) |
|
|
inline |
void lipm_walking::PlanInterpolator::restoreForwardTarget |
( |
| ) |
|
|
inline |
void lipm_walking::PlanInterpolator::restoreLateralTarget |
( |
| ) |
|
|
inline |
void lipm_walking::PlanInterpolator::run |
( |
| ) |
|
double lipm_walking::PlanInterpolator::stepWidth |
( |
| ) |
const |
|
inline |
void lipm_walking::PlanInterpolator::stepWidth |
( |
double |
stepWidth | ) |
|
|
inline |
Set step width.
- Parameters
-
- Note
- Step width is defined as the lateral distance between left and right foot centers. See Figure 3-9 of Human Walking handbook (Editors J. Rose and J. G. Gamble).
Definition at line 247 of file PlanInterpolator.h.
void lipm_walking::PlanInterpolator::suggestGait |
( |
| ) |
|
void lipm_walking::PlanInterpolator::updateSupportPath |
( |
const sva::PTransformd & |
X_0_lf, |
|
|
const sva::PTransformd & |
X_0_rf |
|
) |
| |
Update support path display.
- Parameters
-
X_0_lf | Left foot transform. |
X_0_rf | Right foot transform. |
Definition at line 484 of file PlanInterpolator.cpp.
const sva::PTransformd& lipm_walking::PlanInterpolator::worldReference |
( |
| ) |
const |
|
inline |
void lipm_walking::PlanInterpolator::worldReference |
( |
const sva::PTransformd & |
worldReference | ) |
|
|
inline |
Set walking target in world frame.
- Parameters
-
worldReference | New target. |
Definition at line 265 of file PlanInterpolator.h.
EIGEN_MAKE_ALIGNED_OPERATOR_NEW constexpr double lipm_walking::PlanInterpolator::DEFAULT_EXTRA_STEP_WIDTH = 0. |
|
static |
constexpr double lipm_walking::PlanInterpolator::IN_PLACE_EXTRA_STEP_WIDTH = 0.02 |
|
static |
constexpr double lipm_walking::PlanInterpolator::IN_PLACE_MAX_STEP_ANGLE = 45. |
|
static |
bool lipm_walking::PlanInterpolator::isShown = false |
constexpr double lipm_walking::PlanInterpolator::MAX_EXTRA_STEP_WIDTH = 0.05 |
|
static |
constexpr double lipm_walking::PlanInterpolator::MAX_LATERAL_STEP_LENGTH = 0.2 |
|
static |
constexpr double lipm_walking::PlanInterpolator::MAX_SAGITTAL_STEP_LENGTH = 0.4 |
|
static |
constexpr double lipm_walking::PlanInterpolator::MIN_STEP_LENGTH = 0.001 |
|
static |
unsigned lipm_walking::PlanInterpolator::nbIter = 0 |