For internal use.
More...
#include <ReferenceFrame.h>
|
static const uint64_t | ETERNAL = ReferenceFrame::ETERNAL |
|
static const uint64_t | TEMP = ReferenceFrame::TEMP |
|
For internal use.
Use ReferenceFrame or FrameStore.
Represents a frame's identity, persisting across timestamped versions, including id and type.
Definition at line 105 of file ReferenceFrame.h.
◆ ReferenceFrameIdentity()
gams::pose::ReferenceFrameIdentity::ReferenceFrameIdentity |
( |
std::string |
id, |
|
|
uint64_t |
expiry |
|
) |
| |
|
inline |
◆ default_expiry() [1/2]
static uint64_t gams::pose::ReferenceFrameIdentity::default_expiry |
( |
| ) |
|
|
inlinestatic |
◆ default_expiry() [2/2]
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 ETERNAL (the default) to never expire frames.
Note: if a timestamp ETERNAL frame is saved and this is not ETERNAL, all other frames will expire immediately.
- Returns
- previous default expiry
Definition at line 196 of file ReferenceFrame.h.
◆ default_prefix()
static const std::string& gams::pose::ReferenceFrameIdentity::default_prefix |
( |
| ) |
|
|
inlinestatic |
◆ expire_older_than()
◆ expiry() [1/2]
uint64_t gams::pose::ReferenceFrameIdentity::expiry |
( |
| ) |
const |
|
inline |
◆ expiry() [2/2]
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 ETERNAL (the default) to never expire frames.
Note: if a timestamp ETERNAL frame is saved and this is not ETERNAL, all other frames will expire immediately.
- Returns
- previous expiry
Definition at line 224 of file ReferenceFrame.h.
◆ find()
◆ gc()
static void gams::pose::ReferenceFrameIdentity::gc |
( |
| ) |
|
|
inlinestatic |
Old versions of frames can remain loaded in memory after they are no longer needed.
Call this function to clean them out.
Definition at line 250 of file ReferenceFrame.h.
◆ gc_versions()
void gams::pose::ReferenceFrameIdentity::gc_versions |
( |
| ) |
|
◆ get_version()
std::shared_ptr<ReferenceFrameVersion> gams::pose::ReferenceFrameIdentity::get_version |
( |
uint64_t |
timestamp | ) |
const |
|
inline |
◆ id()
const std::string& gams::pose::ReferenceFrameIdentity::id |
( |
| ) |
const |
|
inline |
◆ lookup()
◆ make_guid()
◆ register_version()
void gams::pose::ReferenceFrameIdentity::register_version |
( |
uint64_t |
timestamp, |
|
|
std::shared_ptr< ReferenceFrameVersion > |
ver |
|
) |
| const |
|
inline |
◆ arena_
◆ default_expiry_
uint64_t gams::pose::ReferenceFrameIdentity::default_expiry_ |
|
staticprivate |
◆ ETERNAL
const uint64_t gams::pose::ReferenceFrameIdentity::ETERNAL = ReferenceFrame::ETERNAL |
|
static |
◆ expiry_
uint64_t gams::pose::ReferenceFrameIdentity::expiry_ = ETERNAL |
|
mutableprivate |
◆ id_
std::string gams::pose::ReferenceFrameIdentity::id_ |
|
private |
◆ idents_lock_
std::recursive_mutex gams::pose::ReferenceFrameIdentity::idents_lock_ |
|
staticprivate |
◆ TEMP
const uint64_t gams::pose::ReferenceFrameIdentity::TEMP = ReferenceFrame::TEMP |
|
static |
◆ versions_
◆ versions_lock_
std::recursive_mutex gams::pose::ReferenceFrameIdentity::versions_lock_ |
|
mutableprivate |
The documentation for this class was generated from the following file: