17 #include <unordered_map>
25 using mavlink::common::MAV_SENSOR_ORIENTATION;
36 constexpr
auto DEG_TO_RAD = (M_PI / 180.0);
38 return std::make_pair(name, rot);
124 std::string
to_string(MAV_SENSOR_ORIENTATION orientation)
134 return it->second.first;
144 return Eigen::Quaterniond::Identity();
147 return it->second.second;
156 if (kv.second.first == sensor_orientation)
163 int idx = std::stoi(sensor_orientation, 0, 0);
165 ROS_ERROR_NAMED(
"uas",
"SENSOR: orientation index out of bound: %d", idx);
171 catch (std::invalid_argument &ex) {