bitsim
Model, simulate, estimate and control robots in C++
Loading...
Searching...
No Matches
imu.h
Go to the documentation of this file.
1#ifndef BITSIM_SENSORS_MESSAGES_IMU_H
2#define BITSIM_SENSORS_MESSAGES_IMU_H
3
6
7#include <array>
8#include <optional>
9#include <string>
10
11namespace bitsim
12{
13namespace sensors
14{
15
31{
32 std::array<real_t, 3> accel{0.0, 0.0, 0.0};
33 std::array<real_t, 3> gyro{0.0, 0.0, 0.0};
34
36 static std::optional<IMUMessage> parse(const std::string &msg);
37};
38
39} // namespace sensors
40} // namespace bitsim
41
42#endif // BITSIM_SENSORS_MESSAGES_IMU_H
The basic types of bitsim. Code outside this file names Eigen's matrix and vector types only through ...
Definition infrared_line_follower.h:9
Definition dc_motor_backend_base.h:9
Models a message from an inertial measurement unit with a three axis accelerometer and a three axis g...
Definition imu.h:31
std::array< real_t, 3 > accel
Definition imu.h:32
static std::optional< IMUMessage > parse(const std::string &msg)
Definition imu.cpp:30
std::array< real_t, 3 > gyro
Definition imu.h:33
Definition message_base.h:15