bitsim
Model, simulate, estimate and control robots in C++
Loading...
Searching...
No Matches
bitsim::sensors::OdometryMessage Struct Reference

A pose estimate from a board: More...

#include <odometry.h>

Inheritance diagram for bitsim::sensors::OdometryMessage:
Collaboration diagram for bitsim::sensors::OdometryMessage:

Static Public Member Functions

static std::optional< OdometryMessage > parse (const std::string &msg)
Static Public Member Functions inherited from bitsim::sensors::MessageBase
static auto unix_seconds_since_epoch (std::chrono::system_clock::time_point point)
static auto unix_milliseconds_since_epoch (std::chrono::system_clock::time_point point)
static std::chrono::system_clock::time_point parse_utc_timestamp (const std::string &ts)

Public Attributes

real_t x {0.0}
 [m]
real_t y {0.0}
 [m]
real_t yaw {0.0}
 [rad]
Public Attributes inherited from bitsim::sensors::MessageBase
std::chrono::system_clock::time_point source_timestamp
std::chrono::system_clock::time_point received_timestamp {std::chrono::system_clock::now()}

Detailed Description

A pose estimate from a board:

{"x": 1.25, "y": -0.40, "yaw": 0.52, "timestamp": "2026-11-18 10:15:02"}

x and y in metres and yaw in radians are needed. timestamp, in UTC, is optional; without it the message counts from when it arrived.

Member Function Documentation

◆ parse()

std::optional< OdometryMessage > bitsim::sensors::OdometryMessage::parse ( const std::string & msg)
static
Returns
The message, or nothing if the text is not a valid message

Member Data Documentation

◆ x

real_t bitsim::sensors::OdometryMessage::x {0.0}

[m]

◆ y

real_t bitsim::sensors::OdometryMessage::y {0.0}

[m]

◆ yaw

real_t bitsim::sensors::OdometryMessage::yaw {0.0}

[rad]


The documentation for this struct was generated from the following files: