maliput
extract_double.h File Reference
Include dependency graph for extract_double.h:
This graph shows which files directly or indirectly include this file:

Namespaces

 maliput
 Code in this file is inspired by: https://github.com/RobotLocomotion/drake/blob/master/common/text_logging.h.
 
 maliput::drake
 

Functions

template<typename T >
 DRAKE_DEPRECATED ("2020-08-01", "Provide a specific overload of ExtractDoubleOrThrow for any " "type that really is sensible at compile time and should " "defer failure to runtime; this version was too generic.") typename std
 Converts a ScalarType value to a double, failing at runtime (not compile time) if the type cannot be converted to a double. More...
 
double ExtractDoubleOrThrow (double scalar)
 Returns scalar as a double. Never throws. More...
 
template<typename Derived >
std::enable_if_t< std::is_same_v< typename Derived::Scalar, double >, Eigen::Matrix< double, Derived::RowsAtCompileTime, Derived::ColsAtCompileTime, Derived::Options, Derived::MaxRowsAtCompileTime, Derived::MaxColsAtCompileTime > > ExtractDoubleOrThrow (const Eigen::MatrixBase< Derived > &matrix)
 Returns matrix as an Eigen::Matrix<double, ...> with the same size allocation as matrix. More...