24 const float yaw =
static_cast<float>(M_PI) / 2.0f - compass;
25 const float c = std::cos(yaw * 0.5f);
26 const float s = std::sin(yaw * 0.5f);
27 return {c, 0.0f, 0.0f, s};
34inline std::array<float, 3>
AccelToRos(
float ax,
float ay,
float az) {
51inline std::array<float, 3>
GyroToRos(
float gx,
float gy,
float gz) {
52 return {-gx, gy, -gz};
std::array< float, 3 > AccelToRos(float ax, float ay, float az)
std::array< float, 3 > GyroToRos(float gx, float gy, float gz)
std::array< float, 4 > OrientationFromCompass(float compass)
This file contains definitions of common data structures used in traffic manager.