#include <Anchor.h>
Public Member Functions | |
void | add_anchor (Anchor2d_Node *a) |
Anchor2d_Node (Slam *slam) | |
void | merge (Anchor2d_Node *a, Pose2d old_origin) |
Anchor2d_Node * | parent () |
void | set_prior () |
~Anchor2d_Node () | |
Private Attributes | |
std::vector< Anchor2d_Node * > | _childs |
Anchor2d_Node * | _parent |
Factor * | _prior |
Slam * | _slam |
isam::Anchor2d_Node::Anchor2d_Node | ( | Slam * | slam | ) |
Definition at line 36 of file Anchor.cpp.
Definition at line 40 of file Anchor.cpp.
void isam::Anchor2d_Node::add_anchor | ( | Anchor2d_Node * | a | ) |
Add a new anchor to this frame.
Definition at line 54 of file Anchor.cpp.
void isam::Anchor2d_Node::merge | ( | Anchor2d_Node * | a, |
Pose2d | old_origin | ||
) |
Merges the node with anchor a.
a | the node to merge with. |
old_origin | the pose of this frame in the new frame. |
Usage: b.merge(a);
All anchors in a's frame will be merged with the b's frame.
Definition at line 64 of file Anchor.cpp.
Anchor2d_Node* isam::Anchor2d_Node::parent | ( | ) | [inline] |
void isam::Anchor2d_Node::set_prior | ( | ) |
Add a prior to the anchor. The prior will be removed if this anchor is merged with another anchor's frame.
Definition at line 47 of file Anchor.cpp.
std::vector<Anchor2d_Node*> isam::Anchor2d_Node::_childs [private] |
Anchor2d_Node* isam::Anchor2d_Node::_parent [private] |
Factor* isam::Anchor2d_Node::_prior [private] |
Slam* isam::Anchor2d_Node::_slam [private] |