Class for storing and loading frames in a given KnowledgeBase, using given settings, with a set expiry.
More...
|
| FrameStore (madara::knowledge::KnowledgeBase kb, FrameEvalSettings settings, uint64_t expiry) |
| Primary constructor for FrameStore. More...
|
|
| FrameStore (madara::knowledge::KnowledgeBase kb, FrameEvalSettings settings) |
| Constructor for FrameStore Uses ReferenceFrame::default_expiry() for expiration. More...
|
|
| FrameStore (madara::knowledge::KnowledgeBase kb, uint64_t expiry) |
| Constructor for FrameStore Uses default FrameEvalSettings. More...
|
|
| FrameStore (madara::knowledge::KnowledgeBase kb) |
| Constructor for FrameStore Uses default FrameEvalSettings Uses ReferenceFrame::default_expiry() for expiration. More...
|
|
uint64_t | expiry () const |
| Return the current expiry for all frames saved with this FrameStore See ReferenceFrame::expiry(uint64_t) for details of expiration. More...
|
|
const madara::knowledge::KnowledgeBase & | kb () const |
| Return the KnowledgeBase to load/save with this FrameStore. More...
|
|
ReferenceFrame | load (const std::string &id, uint64_t timestamp=-1) |
| Load a single ReferenceFrame, by ID. More...
|
|
template<typename InputIterator > |
std::vector< ReferenceFrame > | load_tree (InputIterator begin, InputIterator end, uint64_t timestamp=-1) const |
| Load ReferenceFrames, by ID, and their common ancestors. More...
|
|
template<typename Container > |
std::vector< ReferenceFrame > | load_tree (const Container &ids, uint64_t timestamp=-1) const |
| Load ReferenceFrames, by ID, and their common ancestors. More...
|
|
void | save (const ReferenceFrame &frame) const |
| Save a ReferenceFrame to the knowledge base, The saved frames will be marked with their timestamp for later retrieval. More...
|
|
const FrameEvalSettings & | settings () const |
| Return the current settings for frames saved/loaded with this FrameStore. More...
|
|
Class for storing and loading frames in a given KnowledgeBase, using given settings, with a set expiry.
This class itself is immutable, and thus trivially thread-safe.
Definition at line 952 of file ReferenceFrame.h.
template<typename InputIterator >
std::vector<ReferenceFrame> gams::pose::FrameStore::load_tree |
( |
InputIterator |
begin, |
|
|
InputIterator |
end, |
|
|
uint64_t |
timestamp = -1 |
|
) |
| const |
|
inline |
Load ReferenceFrames, by ID, and their common ancestors.
Will interpolate frames to ensure the returned frames all have a common timestamp.
- Template Parameters
-
an | InputIterator, of item type std::string |
- Parameters
-
begin | beginning iterator |
end | ending iterator |
timestamp | if -1, the latest possible tree will be returned. Otherwise, the specified timestamp will be returned. |
- Returns
- a vector of ReferenceFrames, each corresponding to the input IDs, in the same order. If the timestamp specified cannot be satisfied, returns an empty vector.
Definition at line 1063 of file ReferenceFrame.h.
template<typename Container >
std::vector<ReferenceFrame> gams::pose::FrameStore::load_tree |
( |
const Container & |
ids, |
|
|
uint64_t |
timestamp = -1 |
|
) |
| const |
|
inline |
Load ReferenceFrames, by ID, and their common ancestors.
Will interpolate frames to ensure the returned frames all have a common timestamp.
- Template Parameters
-
a | Container, supporting cbegin() and cend(), of item type std::string |
- Parameters
-
ids | a Container of ids |
timestamp | if -1, the latest possible tree will be returned. Otherwise, the specified timestamp will be returned. |
- Returns
- a vector of ReferenceFrames, each corresponding to the input IDs, in the same order. If the timestamp specified cannot be satisfied, returns an empty vector.
Definition at line 1087 of file ReferenceFrame.h.