ChoreoLib
Choreo support library.
Loading...
Searching...
No Matches
choreo::EventMarker Struct Reference

#include <choreo/trajectory/EventMarker.h>

Public Member Functions

EventMarker OffsetBy (units::second_t timestampOffset) const
 
bool operator== (const EventMarker &) const =default
 

Public Attributes

units::second_t timestamp
 The timestamp of the event.
 
std::string event
 The event.
 

Detailed Description

A marker for an event in a trajectory.

Member Function Documentation

◆ OffsetBy()

EventMarker choreo::EventMarker::OffsetBy ( units::second_t  timestampOffset) const
inline

Returns a new EventMarker with the timestamp offset by the specified amount.

Parameters
timestampOffsetThe amount to offset the timestamp by.
Returns
A new EventMarker with the timestamp offset by the specified amount.

◆ operator==()

bool choreo::EventMarker::operator== ( const EventMarker ) const
default

EventMarker equality operator.

Returns
True for equality.

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