7#include "spatial/attitude-utils.hpp"
8#include "style/decimal.hpp"
23 return STR_TO_DECIMAL(str);
38 char delimiter = str.find(
" ") != std::string::npos ?
' ' :
',';
42 size_t end = str.find(delimiter);
45 while (end != std::string::npos) {
46 result[index++] =
strtodecimal(str.substr(start, end - start));
48 end = str.find(delimiter, start);
53 return EulerAngles(result[0], result[1], result[2]);
65 return str.size() != 0 && str !=
"0" && str !=
"false";
Definition attitude-utils.hpp:173
Definition converters.hpp:10
decimal strtodecimal(const std::string &str)
Definition converters.hpp:22
bool strtobool(const std::string &str)
Definition converters.hpp:64
EulerAngles strtoea(const std::string &str)
Definition converters.hpp:37