Drake
Drake C++ Documentation
ClothSpringModelParamsIndices Struct Reference

Detailed Description

Describes the row indices of a ClothSpringModelParams.

#include <drake/examples/mass_spring_cloth/cloth_spring_model_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 = 4
 The total number of rows (coordinates). More...
 
static const int kMass = 0
 
static const int kK = 1
 
static const int kD = 2
 
static const int kGravity = 3
 

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

Member Data Documentation

◆ kD

const int kD = 2
static

◆ kGravity

const int kGravity = 3
static

◆ kK

const int kK = 1
static

◆ kMass

const int kMass = 0
static

◆ kNumCoordinates

const int kNumCoordinates = 4
static

The total number of rows (coordinates).


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