Drake
PendulumState< ScalarType > Class Template Reference

A simple Drake state for unit testing. More...

#include <drake/core/test/pendulum.h>

Collaboration diagram for PendulumState< ScalarType >:

Public Member Functions

 PendulumState (void)
 
template<typename Derived >
 PendulumState (const Eigen::MatrixBase< Derived > &x)
 
template<typename Derived >
PendulumStateoperator= (const Eigen::MatrixBase< Derived > &x)
 

Public Attributes

ScalarType theta
 
ScalarType thetadot
 

Static Public Attributes

static const int RowsAtCompileTime = 2
 

Friends

Eigen::Matrix< ScalarType, 2, 1 > toEigen (const PendulumState< ScalarType > &vec)
 

Detailed Description

template<typename ScalarType = double>
class drake::core::test::PendulumState< ScalarType >

A simple Drake state for unit testing.

Constructor & Destructor Documentation

PendulumState ( void  )
inline
PendulumState ( const Eigen::MatrixBase< Derived > &  x)
inline

Member Function Documentation

PendulumState& operator= ( const Eigen::MatrixBase< Derived > &  x)
inline

Friends And Related Function Documentation

Eigen::Matrix<ScalarType, 2, 1> toEigen ( const PendulumState< ScalarType > &  vec)
friend

Member Data Documentation

const int RowsAtCompileTime = 2
static
ScalarType theta
ScalarType thetadot

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