4 #include <cap_gait/contrib/Limp.h>
5 #include <cap_gait/contrib/LimpState.h>
6 #include <cap_gait/contrib/Vec2f.h>
7 #include <cap_gait/contrib/Vec3f.h>
8 #include <cap_gait/cap_gait_config.h>
10 namespace margait_contrib
16 double systemIterationTime;
36 LimpState nominalState;
37 Vec2f nominalCapturePoint;
38 Vec3f nominalFootStep;
39 Vec3f nominalStepSize;
40 double nominalFootStepTHalf;
44 double nominalTimeToStep;
47 LimpState endOfStepState;
65 setState(ms, Vec3f(0.0, 0.0, 0.0));
66 updateInputData(systemIterationTime, 0.0, 0.0);
69 inline void updateInputData(
double systemIterationTime,
double fusedAngleX,
double fusedAngleY)
71 this->systemIterationTime = systemIterationTime;
72 this->fusedAngleX = fusedAngleX;
73 this->fusedAngleY = fusedAngleY;
76 void setState(LimpState ms, Vec3f ggcv);
77 bool forwardThroughStep(
double dt);
78 void forward(
double dt);
79 LimpModel forwarded(
double t);
82 double timeToLoc(
double loc);
86 LimpState mirroredToRight();
87 LimpState getMotionState();
88 LimpState getNominalState();
89 LimpState getEndOfStepState();
90 Vec2f getCapturePoint();
92 inline bool operator==(
const LimpModel& v)
const
94 return (x==v.x) && (vx==v.vx) && (y==v.y) && (vy==v.vy);
96 inline bool operator!=(
const LimpModel& v)
const
98 return (x!=v.x) || (vx!=v.vx) || (y!=v.y) || (vy!=v.vy);
Configuration struct for the capture step gait.
Definition: cap_gait_config.h:21