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

A container for a control vector. More...

#include <smpc_solver.h>

List of all members.

Public Member Functions

 control ()
double & jx ()
 Jerk along Y axis.
double & jy ()
 Jerk along Y axis.
void get_first_controls (const solver &smpc_solver)
 Returns the controls that must be applied to reach the next state.
void get_controls (const solver &smpc_solver, const int ind)
 The same as get_first_controls, but takes an additional parameter - the index of the control inputs. Control[ind] is applied to State[ind-1] to reach State[ind].

Public Attributes

double control_vector [SMPC_NUM_CONTROL_VAR]

Detailed Description

A container for a control vector.

Definition at line 187 of file smpc_solver.h.


Constructor & Destructor Documentation

Definition at line 196 of file smpc_solver.cpp.


Member Function Documentation

void smpc::control::get_controls ( const solver smpc_solver,
const int  ind 
)

The same as get_first_controls, but takes an additional parameter - the index of the control inputs. Control[ind] is applied to State[ind-1] to reach State[ind].

Parameters:
[in]smpc_solverinitialized solver
[in]indindex of control inputs [0 : N-1].

Definition at line 209 of file smpc_solver.cpp.

void smpc::control::get_first_controls ( const solver smpc_solver)

Returns the controls that must be applied to reach the next state.

Parameters:
[in]smpc_solverinitialized solver

Definition at line 203 of file smpc_solver.cpp.

double& smpc::control::jx ( ) [inline]

Jerk along Y axis.

Definition at line 207 of file smpc_solver.h.

double& smpc::control::jy ( ) [inline]

Jerk along Y axis.

Definition at line 211 of file smpc_solver.h.


Member Data Documentation

                control[0] - jerk along x axis
                control[1] - jerk along y axis

Definition at line 196 of file smpc_solver.h.


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