A sparse MPC solver for walking motion generation (old version).
Public Member Functions | Public Attributes
smpc_parameters Class Reference

A container for parameters of the SMPC solver. More...

#include <WMG.h>

List of all members.

Public Member Functions

 smpc_parameters (const unsigned int, const double, const double gravity_=9.81)
 Allocate memory and initialize some of the parameters.
 ~smpc_parameters ()
 Default destructor.

Public Attributes

double hCoM
double gravity
 Height of the CoM.
double * T
 Norm of the acceleration due to gravity.
double * h
 Preview sampling time.
double h0
 h = hCoM/gravity for each preview step
double * angle
 initial h
smpc::state_orig init_state
double * X
 A chunk of memory allocated for solution.
double * fp_x
 Coordinates of N points satisfying constraints,.
double * fp_y
 Coordinates of N points satisfying constraints,.
double * lb
 2*N bounds for coordinates of ZMP position.
double * ub
 2*N bounds for coordinates of ZMP position.
double * zref_x
 N reference coordinates of ZMP.
double * zref_y
 N reference coordinates of ZMP.

Detailed Description

A container for parameters of the SMPC solver.

Definition at line 54 of file WMG.h.


Constructor & Destructor Documentation

smpc_parameters::smpc_parameters ( const unsigned int  N,
const double  hCoM_,
const double  gravity_ = 9.81 
)

Allocate memory and initialize some of the parameters.

Parameters:
[in]Npreview window length
[in]hCoM_Height of the Center of Mass [meter]
[in]gravity_gravity [m/s^2]

Definition at line 10 of file smpc_parameters.cpp.

Default destructor.

Definition at line 40 of file smpc_parameters.cpp.


Member Data Documentation

initial h

Array of N absolute angles corresponding to supports in the preview window.

Definition at line 87 of file WMG.h.

Coordinates of N points satisfying constraints,.

Definition at line 91 of file WMG.h.

Coordinates of N points satisfying constraints,.

Definition at line 92 of file WMG.h.

Height of the CoM.

Definition at line 79 of file WMG.h.

Preview sampling time.

Definition at line 83 of file WMG.h.

h = hCoM/gravity for each preview step

Definition at line 84 of file WMG.h.

Definition at line 77 of file WMG.h.

Initial state.

Definition at line 109 of file WMG.h.

2*N bounds for coordinates of ZMP position.

Definition at line 97 of file WMG.h.

Norm of the acceleration due to gravity.

Definition at line 81 of file WMG.h.

2*N bounds for coordinates of ZMP position.

Definition at line 98 of file WMG.h.

A chunk of memory allocated for solution.

Definition at line 112 of file WMG.h.

N reference coordinates of ZMP.

Definition at line 103 of file WMG.h.

N reference coordinates of ZMP.

Definition at line 104 of file WMG.h.


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