A sparse MPC solver for walking motion generation.
WMG
footstep.h
Go to the documentation of this file.
1
8
#ifndef FOOTSTEP_H
9
#define FOOTSTEP_H
10
11
/****************************************
12
* INCLUDES
13
****************************************/
14
15
#include "
rect_constraint.h
"
16
#include "
WMG.h
"
17
18
19
20
/****************************************
21
* TYPEDEFS
22
****************************************/
23
24
27
29
class
footstep
:
public
RectangularConstraint_ZMP
30
{
31
public
:
32
footstep
(
33
const
double
,
34
const
Transform<double, 3>&,
35
const
Vector3d&,
36
const
unsigned
int
,
37
const
fs_type
,
38
const
double
*);
39
footstep
(
const
footstep
&);
40
~footstep
();
41
42
void
changePosture
(
const
double
*,
const
bool
);
43
double
x
();
44
double
y
();
45
46
47
49
double
angle
;
50
52
double
ca
;
53
55
double
sa
;
56
58
unsigned
int
time_period
;
59
61
unsigned
int
time_left
;
62
64
fs_type
type
;
65
67
Vector3d
ZMPref
;
68
69
70
Transform<double, 3>*
posture
;
71
};
73
#endif
/*FOOTSTEP_H*/
footstep::angle
double angle
Angle (relative to the world frame) of a footstep [rad.].
Definition:
footstep.h:49
footstep::changePosture
void changePosture(const double *, const bool)
Correct position of the footstep.
Definition:
footstep.cpp:106
footstep::type
fs_type type
type of the step.
Definition:
footstep.h:64
footstep::ZMPref
Vector3d ZMPref
Reference ZMP point.
Definition:
footstep.h:67
footstep::posture
Transform< double, 3 > * posture
Definition:
footstep.h:70
footstep::~footstep
~footstep()
Destructor.
Definition:
footstep.cpp:75
footstep::time_left
unsigned int time_left
the amount of time left in this support (=time_period on initialization)
Definition:
footstep.h:61
footstep::sa
double sa
sin(angle).
Definition:
footstep.h:55
footstep
Defines a footstep.
Definition:
footstep.h:29
RectangularConstraint_ZMP
Defines rectangular constraints (of the form D*z <= d) for the ZMP.
Definition:
rect_constraint.h:30
footstep::x
double x()
Definition:
footstep.cpp:84
rect_constraint.h
WMG.h
footstep::y
double y()
Definition:
footstep.cpp:93
footstep::ca
double ca
cos(angle).
Definition:
footstep.h:52
footstep::footstep
footstep(const double, const Transform< double, 3 > &, const Vector3d &, const unsigned int, const fs_type, const double *)
Defines a footstep at a given position with a given orientation.
Definition:
footstep.cpp:32
fs_type
fs_type
Definition:
WMG.h:42
footstep::time_period
unsigned int time_period
the period of time spent in this support
Definition:
footstep.h:58
Generated by
1.8.15