CreOS SDK
The CreOS SDK allows you to interact with Avular robots
 
Loading...
Searching...
No Matches
barometer.hpp
1// Copyright (C) 2024 Avular Holding B.V. - All Rights Reserved
2// You may use this code under the terms of the Avular
3// Software End-User License Agreement.
4//
5// You should have received a copy of the Avular
6// Software End-User License Agreement license with
7// this file, or download it from: avular.com/eula
8//
9/*****************************************************************************
10 * Created on: 2024 July 23
11 * Author: Robbert-Jan de Jager
12 *
13 * Implementation of the barometer message.
14 ****************************************************************************/
15#pragma once
16
17#include <array>
18#include <creos/robot_clock.hpp>
19#include <nlohmann/json.hpp>
20
21#include "generic.hpp"
22
23namespace creos_messages {
24
28struct Barometer {
29
33 creos::RobotClock::time_point timestamp;
34
38 std::string frame_id;
39
43 float pressure = 0;
44
48 float variance = 0;
49
53 float temperature = 0;
54
58 auto operator<=>(const Barometer& other) const = default;
59};
60
61NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE(Barometer, timestamp, pressure, variance, temperature)
62
63} // namespace creos_messages
The messages that are used in the communication between the agent and the client.
Definition accel.hpp:22
Barometer message containing the pressure and temperature.
Definition barometer.hpp:28
auto operator<=>(const Barometer &other) const =default
Compare two Pose messages.
float variance
variance of the pressure
Definition barometer.hpp:48
creos::RobotClock::time_point timestamp
Timestamp of the magnetic field.
Definition barometer.hpp:33
float pressure
Pressure [hPa].
Definition barometer.hpp:43
float temperature
Temperature [°C].
Definition barometer.hpp:53
std::string frame_id
Frame id of the magnetic field.
Definition barometer.hpp:38