40 static const char * names[] = {
"None",
"Bool",
"Int8_t",
"Int16_t",
"Int32_t",
"Int64_t",
41 "Uint8_t",
"Uint16_t",
"Uint32_t",
"Uint64_t",
"Float",
"Double",
42 "String",
"Vector2d",
"Vector3d",
"Vector6d",
"VectorXd",
"Quaterniond",
43 "PTransformd",
"ForceVecd",
"MotionVecd",
"VectorDouble",
nullptr};
49 const size_t idx =
static_cast<size_t>(t);
60 #define IMPL_MAPPING(CPPT, ENUMV) \
62 struct GetLogType<CPPT> \
64 static constexpr mc_rtc::log::LogType type = mc_rtc::log::LogType::ENUMV; \
94 template<
int N,
int _Options,
int _MaxRows,
int _MaxCols>
95 struct GetLogType<Eigen::Matrix<double, N, 1, _Options, _MaxRows, _MaxCols>>
106 template<std::
size_t N>
112 template<
typename Type,
int Options,
typename Str
ideType>
133 template<
typename...>
140 static constexpr
bool value =
false;
143 template<
typename T,
typename MemberT>
152 static constexpr
bool value =
false;
155 template<
typename T,
typename MethodRetT>
166 template<
typename T,
typename =
void>
169 static constexpr
bool value =
false;
175 using ret_type =
typename std::result_of<T()>::type;
189 template<LogType type>
192 static_assert(
static_cast<std::underlying_type_t<LogType>
>(type)
193 == std::numeric_limits<std::underlying_type_t<LogType>>::max(),
194 "This must be specialized for the provided LogType value");
197 #define IMPL_MAPPING(ENUMV, CPPT) \
199 struct log_type_to_type<LogType::ENUMV> \
228 template<LogType type>