The ContinuousState is a container for all the State variables that are unique to continuous Systems, i.e.
More...
#include <drake/systems/framework/state.h>
template<typename T>
class drake::systems::ContinuousState< T >
The ContinuousState is a container for all the State variables that are unique to continuous Systems, i.e.
Systems that satisfy ContinuousSystemInterface and have defined dynamics at all times.
- Template Parameters
-
T | A mathematical type compatible with Eigen's Scalar. |
Constructs a ContinuousState for a system that does not have second-order structure: All of the state is misc_continuous_state_.
Constructs a ContinuousState that exposes second-order structure.
The contents of state
must be laid out as follows:
/// (index 0)|--q--|--v--|--z--|(index state.size() - 1)
///
/// Where q is generalized position
/// v is generalized velocity
/// z is other continuous state
///
@param num_q The number of position variables.
@param num_v The number of velocity variables.
@param num_z The number of other variables.
const StateVector<T>& get_generalized_position |
( |
| ) |
const |
|
inline |
Returns the subset of the state vector that is generalized position q
.
const StateVector<T>& get_generalized_velocity |
( |
| ) |
const |
|
inline |
Returns the subset of the state vector that is generalized velocity v
.
const StateVector<T>& get_misc_continuous_state |
( |
| ) |
const |
|
inline |
Returns the subset of the state vector that is other continuous state z
.
Returns a mutable pointer to the subset of the state vector that is generalized position q
.
Returns a mutable pointer to the subset of the state vector that is generalized velocity v
.
Returns a mutable pointer to the subset of the state vector that is other continuous state z
.
Returns a mutable pointer to the entire state vector, never null.
Returns the entire state vector.
The documentation for this class was generated from the following file: