File clocks.hpp

Clocks used across the API.

Typedefs

using host_clock = std::chrono::system_clock

Declaring a host clock allows us to replace it with steady_clock if necessary.

Todo:

do we need a strong type rather than alias?

using camera_timestamp = camera_clock::time_point
using imu_timestamp = imu_clock::time_point
using gps_timestamp = gps_clock::time_point
using odometry_timestamp = odometry_clock::time_point
using host_timestamp = host_clock::time_point
using camera_duration = camera_clock::duration
using imu_duration = imu_clock::duration
using gps_duration = gps_clock::duration
using odometry_duration = host_clock::duration
using host_duration = odometry_clock::duration
namespace slamcore

Main namespace for the SLAMcore public API

Get information about the client library

Helper conversion methods

slamcore::ImageFormat \(\leftrightarrow\) BytesPerPixel

Typedefs

using host_clock = std::chrono::system_clock

Declaring a host clock allows us to replace it with steady_clock if necessary.

Todo:

do we need a strong type rather than alias?

using camera_timestamp = camera_clock::time_point
using imu_timestamp = imu_clock::time_point
using gps_timestamp = gps_clock::time_point
using odometry_timestamp = odometry_clock::time_point
using host_timestamp = host_clock::time_point
using camera_duration = camera_clock::duration
using imu_duration = imu_clock::duration
using gps_duration = gps_clock::duration
using odometry_duration = host_clock::duration
using host_duration = odometry_clock::duration
struct camera_clock
#include <clocks.hpp>

Public Types

using duration = std::chrono::nanoseconds
using rep = duration::rep
using period = duration::period
using time_point = std::chrono::time_point<camera_clock, duration>

Public Static Functions

static time_point now() noexcept

Public Static Attributes

static constexpr bool is_steady = true
struct gps_clock
#include <clocks.hpp>

Public Types

using duration = std::chrono::nanoseconds
using rep = duration::rep
using period = duration::period
using time_point = std::chrono::time_point<gps_clock, duration>

Public Static Functions

static time_point now()

Public Static Attributes

static constexpr bool is_steady = true
struct imu_clock
#include <clocks.hpp>

Public Types

using duration = std::chrono::nanoseconds
using rep = duration::rep
using period = duration::period
using time_point = std::chrono::time_point<imu_clock, duration>

Public Static Functions

static time_point now() noexcept

Public Static Attributes

static constexpr bool is_steady = true
struct odometry_clock
#include <clocks.hpp>

Public Types

using duration = std::chrono::nanoseconds
using rep = duration::rep
using period = duration::period
using time_point = std::chrono::time_point<odometry_clock, duration>

Public Static Functions

static time_point now() noexcept

Public Static Attributes

static constexpr bool is_steady = true