Aikido
YAML::convert< Eigen::Matrix< _Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols > > Struct Template Reference

#include <aikido/io/detail/yaml_extension.hpp>

Public Types

using MatrixType = Eigen::Matrix< _Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols >
 
using Index = typename MatrixType::Index
 

Static Public Member Functions

static Node encode (const MatrixType &matrix)
 
static bool decode (const YAML::Node &node, MatrixType &matrix)
 Reads a YAML::Node that encodes a vector or a matrix; and stores it into matrix. More...
 

Member Typedef Documentation

◆ Index

template<typename _Scalar , int _Rows, int _Cols, int _Options, int _MaxRows, int _MaxCols>
using YAML::convert< Eigen::Matrix< _Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols > >::Index = typename MatrixType::Index

◆ MatrixType

template<typename _Scalar , int _Rows, int _Cols, int _Options, int _MaxRows, int _MaxCols>
using YAML::convert< Eigen::Matrix< _Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols > >::MatrixType = Eigen::Matrix<_Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols>

Member Function Documentation

◆ decode()

template<typename _Scalar , int _Rows, int _Cols, int _Options, int _MaxRows, int _MaxCols>
static bool YAML::convert< Eigen::Matrix< _Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols > >::decode ( const YAML::Node &  node,
MatrixType matrix 
)
inlinestatic

Reads a YAML::Node that encodes a vector or a matrix; and stores it into matrix.

If matrix is dynamic size Eigen object, resizes it accordingly.

◆ encode()

template<typename _Scalar , int _Rows, int _Cols, int _Options, int _MaxRows, int _MaxCols>
static Node YAML::convert< Eigen::Matrix< _Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols > >::encode ( const MatrixType matrix)
inlinestatic