lipm_walking::SwingFoot Struct Reference

#include <lipm_walking/SwingFoot.h>

Public Member Functions

EIGEN_MAKE_ALIGNED_OPERATOR_NEW void addLogEntries (mc_rtc::Logger &logger)
 
void integrate (double dt)
 
void removeLogEntries (mc_rtc::Logger &logger)
 
void reset (const sva::PTransformd &initPose, const sva::PTransformd &targetPose, double duration, double height)
 
sva::MotionVecd accel () const
 
double height ()
 
void landingDuration (double duration)
 
void landingPitch (double pitch)
 
sva::PTransformd pose () const
 
double remTime () const
 
void takeoffDuration (double duration)
 
void takeoffOffset (const Eigen::Vector3d &offset)
 
void takeoffPitch (double pitch)
 
sva::MotionVecd vel () const
 

Detailed Description

Swing foot interpolator.

Definition at line 42 of file SwingFoot.h.

Member Function Documentation

◆ accel()

sva::MotionVecd lipm_walking::SwingFoot::accel ( ) const
inline

Get current acceleration as motion vector.

Definition at line 83 of file SwingFoot.h.

◆ addLogEntries()

void lipm_walking::SwingFoot::addLogEntries ( mc_rtc::Logger &  logger)

Add swing foot entries to log.

Parameters
loggerLogger.

Definition at line 77 of file SwingFoot.cpp.

◆ height()

double lipm_walking::SwingFoot::height ( )
inline

Get current swing foot height.

Definition at line 91 of file SwingFoot.h.

◆ integrate()

void lipm_walking::SwingFoot::integrate ( double  dt)

Progress by dt along the swing foot trajectory.

Parameters
dtIntegration step.

Definition at line 95 of file SwingFoot.cpp.

◆ landingDuration()

void lipm_walking::SwingFoot::landingDuration ( double  duration)
inline

Duration of landing phase.

Parameters
durationNew duration.

Definition at line 101 of file SwingFoot.h.

◆ landingPitch()

void lipm_walking::SwingFoot::landingPitch ( double  pitch)
inline

Upward pitch angle before landing.

Parameters
pitchPitch angle.

Definition at line 111 of file SwingFoot.h.

◆ pose()

sva::PTransformd lipm_walking::SwingFoot::pose ( ) const
inline

Get current pose as Plucker transform.

Definition at line 119 of file SwingFoot.h.

◆ removeLogEntries()

void lipm_walking::SwingFoot::removeLogEntries ( mc_rtc::Logger &  logger)

Remove swing foot entries from log.

Parameters
loggerLogger.

Definition at line 86 of file SwingFoot.cpp.

◆ remTime()

double lipm_walking::SwingFoot::remTime ( ) const
inline

Timing remaining until heel strike.

Definition at line 127 of file SwingFoot.h.

◆ reset()

void lipm_walking::SwingFoot::reset ( const sva::PTransformd &  initPose,
const sva::PTransformd &  targetPose,
double  duration,
double  height 
)

Recompute swing foot trajectory for a new pair of contacts.

Parameters
initPosePose that the swing foot starts from.
targetPoseTarget pose the swing foot lands onto.
durationDuration of the trajectory.
heightApex height of swing trajectory.

Definition at line 36 of file SwingFoot.cpp.

◆ takeoffDuration()

void lipm_walking::SwingFoot::takeoffDuration ( double  duration)
inline

Set duration of takeoff phase.

Parameters
durationNew duration.

Definition at line 137 of file SwingFoot.h.

◆ takeoffOffset()

void lipm_walking::SwingFoot::takeoffOffset ( const Eigen::Vector3d &  offset)
inline

Offset applied to horizontal position after takeoff.

Parameters
offsetOffset.

Definition at line 147 of file SwingFoot.h.

◆ takeoffPitch()

void lipm_walking::SwingFoot::takeoffPitch ( double  pitch)
inline

Downward pitch angle after takeoff.

Parameters
pitchPitch angle.

Definition at line 157 of file SwingFoot.h.

◆ vel()

sva::MotionVecd lipm_walking::SwingFoot::vel ( ) const
inline

Get current velocity as motion vector.

Definition at line 165 of file SwingFoot.h.


The documentation for this struct was generated from the following files: