19 #ifndef XSENS_DRIVER__XSENS_IMU_TRANSLATOR_HPP_ 20 #define XSENS_DRIVER__XSENS_IMU_TRANSLATOR_HPP_ 28 #include "sensor_msgs/msg/imu.hpp" 37 namespace xsens_driver
56 sensor_msgs::msg::Imu & message,
58 const std::vector<uint8_t> & content);
60 void parse_acceleration(
61 sensor_msgs::msg::Imu & message,
63 const std::vector<uint8_t> & content);
65 template<
typename MessageT>
66 void parse_acceleration_internal(
67 sensor_msgs::msg::Imu & message,
68 const std::vector<uint8_t> & content);
70 void parse_orientation_data(
71 sensor_msgs::msg::Imu & message,
73 const std::vector<uint8_t> & content);
75 void parse_angular_velocity(
76 sensor_msgs::msg::Imu & message,
78 const std::vector<uint8_t> & content);
80 template<
typename MessageT>
81 void parse_orientation_quaternion(
82 sensor_msgs::msg::Imu & message,
83 const std::vector<uint8_t> & content);
85 template<
typename MessageT>
86 void parse_angular_velocity_rate_of_turn(
87 sensor_msgs::msg::Imu & message,
88 const std::vector<uint8_t> & content);
90 void parse_xdigroup_mtdata2(
92 sensor_msgs::msg::Imu & message,
94 const std::vector<uint8_t> & content);
96 void parse_xdi_coordinates(
98 sensor_msgs::msg::Imu & message);
100 template<
typename T, std::
size_t kNumber_of_values>
101 std::array<T, kNumber_of_values>
read_values(
const std::vector<uint8_t> & content)
103 std::array<T, kNumber_of_values> values;
107 for (std::size_t i = 0; i < kNumber_of_values; ++i) {
108 byte_reader.
read(values[i]);
117 #endif // XSENS_DRIVER__XSENS_IMU_TRANSLATOR_HPP_ std::array< T, kNumber_of_values > read_values(const std::vector< uint8_t > &content)
Definition: xsens_imu_translator.hpp:101
This file includes common helper functions.
Definition: xsens_imu_translator.hpp:40
Definition: xsens_base_translator.hpp:44
XDIGroup
Definition: xsens_common.hpp:152
Definition: xsens_imu_translator.hpp:44
A utility class to read byte vectors in big-endian order.
Definition: byte_reader.hpp:33
void read(T &value)
Definition: byte_reader.hpp:51
This file defines the lanelet2_map_provider_node class.
Definition: quick_sort.hpp:24