CreOS SDK
The CreOS SDK allows you to interact with Avular robots
 
Loading...
Searching...
No Matches
odometry.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 17
11 * Author: Robbert-Jan de Jager
12 *
13 * @file The Odometry message contains the estimated position, orientation and velocity
14 * of the robot.
15 ****************************************************************************/
16#pragma once
17
18#include <array>
19#include <creos/robot_clock.hpp>
20#include <nlohmann/json.hpp>
21
22#include "generic.hpp"
23#include "pose.hpp"
24#include "twist.hpp"
25
26namespace creos_messages {
27
32struct Odometry {
36 creos::RobotClock::time_point timestamp;
37
41 std::string frame_id;
42
47
52
56 auto operator<=>(const Odometry& other) const = default;
57};
58
59NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE(Odometry, timestamp, pose, twist)
60
61} // namespace creos_messages
The messages that are used in the communication between the agent and the client.
Definition accel.hpp:22
The Odometry message contains the estimated position, orientation and velocity of the robot.
Definition odometry.hpp:32
creos::RobotClock::time_point timestamp
Timestamp of the estimated position, orientation and velocity.
Definition odometry.hpp:36
auto operator<=>(const Odometry &other) const =default
Compare two Odometry messages.
TwistWithCovariance twist
Linear and angular velocity of the robot.
Definition odometry.hpp:51
std::string frame_id
Frame id of the odometry.
Definition odometry.hpp:41
PoseWithCovariance pose
Position and orientation of the robot.
Definition odometry.hpp:46
The PoseWithCovariance message contains a position and orientation with a covariance matrix.
Definition pose.hpp:49
The TwistWithCovariance message contains the linear and angular velocity of the robot with a covarian...
Definition twist.hpp:49