Drake
Drake C++ Documentation
Rod2dStateVectorIndices Struct Reference

Detailed Description

Describes the row indices of a Rod2dStateVector.

#include <drake/examples/rod2d/rod2d_state_vector.h>

Static Public Member Functions

static const std::vector< std::string > & GetCoordinateNames ()
 Returns a vector containing the names of each coordinate within this class. More...
 

Static Public Attributes

static const int kNumCoordinates = 6
 The total number of rows (coordinates). More...
 
static const int kX = 0
 
static const int kY = 1
 
static const int kTheta = 2
 
static const int kXdot = 3
 
static const int kYdot = 4
 
static const int kThetadot = 5
 

Member Function Documentation

◆ GetCoordinateNames()

static const std::vector<std::string>& GetCoordinateNames ( )
static

Returns a vector containing the names of each coordinate within this class.

The indices within the returned vector matches that of this class. In other words, Rod2dStateVectorIndices::GetCoordinateNames()[i] is the name for BasicVector::GetAtIndex(i).

Member Data Documentation

◆ kNumCoordinates

const int kNumCoordinates = 6
static

The total number of rows (coordinates).

◆ kTheta

const int kTheta = 2
static

◆ kThetadot

const int kThetadot = 5
static

◆ kX

const int kX = 0
static

◆ kXdot

const int kXdot = 3
static

◆ kY

const int kY = 1
static

◆ kYdot

const int kYdot = 4
static

The documentation for this struct was generated from the following file: