10 template <
typename ScalarType =
double>
15 template <
typename Derived>
17 const Eigen::MatrixBase<Derived>&
x)
20 template <
typename Derived>
27 friend Eigen::Matrix<ScalarType, 2, 1>
toEigen(
29 Eigen::Matrix<ScalarType, 2, 1>
x;
41 template <
typename ScalarType =
double>
46 template <
typename Derived>
48 const Eigen::MatrixBase<Derived>&
x)
51 template <
typename Derived>
PendulumState & operator=(const Eigen::MatrixBase< Derived > &x)
Definition: pendulum.h:21
std::vector< Number > x
Definition: IpoptSolver.cpp:169
Definition: constants.h:3
PendulumState(const Eigen::MatrixBase< Derived > &x)
Definition: pendulum.h:16
static const int RowsAtCompileTime
Definition: pendulum.h:34
ScalarType thetadot
Definition: pendulum.h:37
ScalarType theta
Definition: pendulum.h:36
friend Eigen::Matrix< ScalarType, 2, 1 > toEigen(const PendulumState< ScalarType > &vec)
Definition: pendulum.h:27
A simple Drake state for unit testing.
Definition: pendulum.h:11
PendulumState(void)
Definition: pendulum.h:13