ed
|
The TransformCrawler class. More...
#include <transform_crawler.h>
Classes | |
struct | Node |
Public Member Functions | |
const EntityConstPtr & | entity () const |
bool | hasNext () const |
bool | next () |
const geo::Pose3D & | transform () const |
TransformCrawler (const WorldModel &wm, const UUID &start_id, const Time &time) | |
Private Member Functions | |
void | pushChildren (const Entity &e, const geo::Pose3D &transform) |
Private Attributes | |
std::queue< Node > | queue_ |
Time | time_ |
std::set< Idx > | visited_ |
const WorldModel & | wm_ |
The TransformCrawler class.
Starting with the given entity ID, this class crawls the world model transformation graph in a breadth-first manner. Each node (world model entity) is only visited once. For each visited entity, the transformation from the root entity (i.e., the given entity) is calculated.
Definition at line 23 of file transform_crawler.h.
ed::world_model::TransformCrawler::TransformCrawler | ( | const WorldModel & | wm, |
const UUID & | start_id, | ||
const Time & | time | ||
) |
Definition at line 14 of file transform_crawler.cpp.
const EntityConstPtr & ed::world_model::TransformCrawler::entity | ( | ) | const |
Definition at line 28 of file transform_crawler.cpp.
|
inline |
Definition at line 40 of file transform_crawler.h.
bool ed::world_model::TransformCrawler::next | ( | ) |
Definition at line 35 of file transform_crawler.cpp.
|
private |
Definition at line 53 of file transform_crawler.cpp.
|
inline |
Definition at line 42 of file transform_crawler.h.
|
private |
Definition at line 54 of file transform_crawler.h.
|
private |
Definition at line 50 of file transform_crawler.h.
Definition at line 52 of file transform_crawler.h.
|
private |
Definition at line 48 of file transform_crawler.h.