Drake
Drake C++ Documentation
AcrobotParamsIndices Struct Reference

Detailed Description

Describes the row indices of a AcrobotParams.

#include <drake/examples/acrobot/acrobot_params.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 = 11
 The total number of rows (coordinates). More...
 
static const int kM1 = 0
 
static const int kM2 = 1
 
static const int kL1 = 2
 
static const int kL2 = 3
 
static const int kLc1 = 4
 
static const int kLc2 = 5
 
static const int kIc1 = 6
 
static const int kIc2 = 7
 
static const int kB1 = 8
 
static const int kB2 = 9
 
static const int kGravity = 10
 

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, AcrobotParamsIndices::GetCoordinateNames()[i] is the name for BasicVector::GetAtIndex(i).

Member Data Documentation

◆ kB1

const int kB1 = 8
static

◆ kB2

const int kB2 = 9
static

◆ kGravity

const int kGravity = 10
static

◆ kIc1

const int kIc1 = 6
static

◆ kIc2

const int kIc2 = 7
static

◆ kL1

const int kL1 = 2
static

◆ kL2

const int kL2 = 3
static

◆ kLc1

const int kLc1 = 4
static

◆ kLc2

const int kLc2 = 5
static

◆ kM1

const int kM1 = 0
static

◆ kM2

const int kM2 = 1
static

◆ kNumCoordinates

const int kNumCoordinates = 11
static

The total number of rows (coordinates).


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