mad-location-manager-lib 1.0
Library for fusing GPS and ENU accelerometer data
Loading...
Searching...
No Matches
Classes | Enumerations | Functions
sensor_data.h File Reference
#include <cmath>
#include <string>
#include "commons.h"

Go to the source code of this file.

Classes

struct  accelerometer
 accelerometer - raw accelerometer data (without g compensation) More...
 
struct  gyroscope
 gyroscope - raw gyroscope data More...
 
struct  magnetometer
 magnetometer - raw magnetometer data More...
 
struct  enu_accelerometer
 enu_accelerometer - acceleration in ENU coordinates (east, north, up) More...
 
struct  linear_accelerometer
 acceleration along each device axis, not including gravity. All values have units of m/s^2 More...
 
struct  rotation_quaternion
 rotation_quaternion - normalized quaternion in form [w, x, y, z] describing device orientation in ENU coordinate system More...
 
struct  raw_enu_accelerometer
 Raw accelerometer data with rotation quaternion in ENU frame. More...
 
struct  geopoint
 geopoint - part of gps coordinate representing location More...
 
struct  gps_speed
 gps_speed - part of gps coordinate representing speed More...
 
struct  gps_coordinate
 gps_coordinate - consists of 2 independent parts : location and speed More...
 
struct  sd_record_hdr
 sd_record_hdr - header for all sensor data output records More...
 
struct  sd_record
 Container for data records received from logger. More...
 
union  sd_record::data_t
 Union for different sensor data types. More...
 

Enumerations

enum  sensor_data_record_type {
  SD_ACC_ENU_SET = 0 , SD_ACC_ENU_GENERATED = 1 , SD_GPS_SET = 2 , SD_GPS_FILTERED = 3 ,
  SD_GPS_GENERATED = 4 , SD_RAW_ENU_ACC = 5 , SD_UNKNOWN
}
 
enum  sdr_deserialize_error {
  SDRDE_SUCCESS = 0 , SDRDE_WRONG_HDR_SEPARATOR = 1 , SDRDE_UNEXPECTED_FMT = 2 , SDRDE_UNSUPPORTED = 3 ,
  SDRDE_UNDEFINED
}
 

Functions

std::string sdr_serialize_str (const sd_record &rec)
 
sdr_deserialize_error sdr_deserialize_str (const std::string &str, sd_record &rec)
 

Enumeration Type Documentation

◆ sdr_deserialize_error

Enumerator
SDRDE_SUCCESS 
SDRDE_WRONG_HDR_SEPARATOR 
SDRDE_UNEXPECTED_FMT 
SDRDE_UNSUPPORTED 
SDRDE_UNDEFINED 

◆ sensor_data_record_type

Enumerator
SD_ACC_ENU_SET 

ACC_ENU_SET - calculated ENU acceleration based on GPS_SET points.

SD_ACC_ENU_GENERATED 

ACC_ENU_GENERATED - with noise OR from real device.

SD_GPS_SET 

GPS_SET manually by user in visualizer.

SD_GPS_FILTERED 

GPS_FILTERED coordinates after Kalman filter applied.

SD_GPS_GENERATED 

GPS_GENERATED coordinates with noise.

SD_RAW_ENU_ACC 

RAW_ENU_ACC - combination of data from linear accelerometer and rotation vector sensors

SD_UNKNOWN 

just the end of this enum

Function Documentation

◆ sdr_deserialize_str()

sdr_deserialize_error sdr_deserialize_str ( const std::string str,
sd_record rec 
)

◆ sdr_serialize_str()

std::string sdr_serialize_str ( const sd_record rec)