64 if (this->time < other.
time)
return true;
65 if (this->time > other.
time)
return false;
66 if (this->pose < other.
pose)
return true;
67 if (this->pose > other.
pose)
return false;
68 return this->velocity < other.
velocity;
77 if (this->time > other.
time)
return true;
78 if (this->time < other.
time)
return false;
79 if (this->pose > other.
pose)
return true;
80 if (this->pose < other.
pose)
return false;
81 return this->velocity > other.
velocity;
98 return (this->pose == other.
pose) && (this->velocity == other.
velocity);
115 return std::hash<uint64_t>()(p.
pose) ^
116 (std::hash<uint64_t>()(p.
velocity) << 1);
Global functions in a separate testing namespace.
Definition chartTesting.h:28
std::uint64_t Key
Integer nonlinear key type.
Definition types.h:43
Lightweight container for states used for continuous-time estimation and interpolation.
Definition WnoaStateData.h:39
bool operator==(const StateData &other) const
Equality compares the identifying keys (pose and velocity).
Definition WnoaStateData.h:97
StateData()=default
Default constructor.
bool operator>(const StateData &other) const
Strict-weak ordering: (time, pose, velocity) descending.
Definition WnoaStateData.h:76
bool operator<(double time) const
Returns true if this state's timestamp is before time.
Definition WnoaStateData.h:85
double time
Timestamp (seconds) associated with this state.
Definition WnoaStateData.h:42
bool operator>(double time) const
Returns true if this state's timestamp is after time.
Definition WnoaStateData.h:88
Key pose
Key of the pose variable.
Definition WnoaStateData.h:40
Key velocity
Key of the velocity variable.
Definition WnoaStateData.h:41
bool operator<(const StateData &other) const
Strict-weak ordering: (time, pose, velocity) ascending.
Definition WnoaStateData.h:63
StateData(Key pose_in, Key velocity_in, double time_in)
Construct a StateData from explicit keys and timestamp.
Definition WnoaStateData.h:53