For internal use.
More...
#include <ReferenceFrame.h>
For internal use.
Use ReferenceFrame or FrameStore.
Represents a frame's identity, persisting across timestamped versions, including id and type.
Definition at line 83 of file ReferenceFrame.h.
gams::pose::ReferenceFrameIdentity::ReferenceFrameIdentity |
( |
std::string |
id, |
|
|
uint64_t |
expiry |
|
) |
| |
|
inline |
static uint64_t gams::pose::ReferenceFrameIdentity::default_expiry |
( |
uint64_t |
age | ) |
|
|
inlinestatic |
Set the default expiry value for new frames IDs.
Setting this will not change any already created frame IDs.
If a frame newer than its expiry is saved, saved frames expire of the same ID older than this duration into the past from the timestamp of the new frame.
Expired frames are deleted from the KnowledgeBase.
Set to -1 (the default) to never expire frames.
Note: if a timestamp -1 frame is saved and this is not -1, all other frames will expire immediately.
- Returns
- previous default expiry
Definition at line 154 of file ReferenceFrame.h.
static uint64_t gams::pose::ReferenceFrameIdentity::default_expiry |
( |
| ) |
|
|
inlinestatic |
static const std::string& gams::pose::ReferenceFrameIdentity::default_prefix |
( |
| ) |
|
|
inlinestatic |
uint64_t gams::pose::ReferenceFrameIdentity::expiry |
( |
uint64_t |
age | ) |
const |
|
inline |
If a frame newer than this time is saved, expire saved frames of the same ID older than this duration into the past from the timestamp of the new frame.
Expired frames are deleted from the KnowledgeBase.
Set to -1 (the default) to never expire frames.
Note: if a timestamp -1 frame is saved and this is not -1, all other frames will expire immediately.
- Returns
- previous expiry
Definition at line 182 of file ReferenceFrame.h.
uint64_t gams::pose::ReferenceFrameIdentity::expiry |
( |
| ) |
const |
|
inline |
static void gams::pose::ReferenceFrameIdentity::gc |
( |
| ) |
|
|
static |
Old versions of frames can remain loaded in memory after they are no longer needed.
Call this function to clean them out.
std::shared_ptr<ReferenceFrameVersion> gams::pose::ReferenceFrameIdentity::get_version |
( |
uint64_t |
timestamp | ) |
const |
|
inline |
const std::string& gams::pose::ReferenceFrameIdentity::id |
( |
| ) |
const |
|
inline |
void gams::pose::ReferenceFrameIdentity::register_version |
( |
uint64_t |
timestamp, |
|
|
std::shared_ptr< ReferenceFrameVersion > |
ver |
|
) |
| const |
|
inline |
uint64_t gams::pose::ReferenceFrameIdentity::default_expiry_ |
|
staticprivate |
uint64_t gams::pose::ReferenceFrameIdentity::expiry_ = -1 |
|
mutableprivate |
std::string gams::pose::ReferenceFrameIdentity::id_ |
|
private |
std::mutex gams::pose::ReferenceFrameIdentity::idents_lock_ |
|
staticprivate |
std::mutex gams::pose::ReferenceFrameIdentity::versions_lock_ |
|
mutableprivate |
The documentation for this class was generated from the following file: