Constraint generator that generates a single constraint to the previous node. More...
#include <odom.h>
Public Member Functions | |
NodeConstraintVector | getConstraints (const pg::PoseGraph &graph, const pg::NodeId new_node, const NodePoseMap &optimized_poses) |
Return a set of constraints given the current state of the graph the identity of the new node, and current optimized poses. | |
void | initializeFromGraph (const pg::PoseGraph &g, const std::vector< pg::NodeId > &node_sequence) |
Initialize from existing graph. | |
void | updateLocalization (const graph_slam::GraphLocalization &loc) |
Private Attributes | |
boost::optional< pg::NodeId > | last_node_ |
Constraint generator that generates a single constraint to the previous node.
NodeConstraintVector graph_slam::OdomConstraintGenerator::getConstraints | ( | const pg::PoseGraph & | graph, |
const pg::NodeId | new_node, | ||
const NodePoseMap & | optimized_poses | ||
) | [virtual] |
Return a set of constraints given the current state of the graph the identity of the new node, and current optimized poses.
Implements graph_slam::ConstraintGenerator.
Definition at line 63 of file odom_constraint_generator.cpp.
void graph_slam::OdomConstraintGenerator::initializeFromGraph | ( | const pg::PoseGraph & | g, |
const std::vector< pg::NodeId > & | node_sequence | ||
) | [virtual] |
Initialize from existing graph.
node_sequence | is a suffix of the order in which nodes were seen; can have repeats |
Implements graph_slam::ConstraintGenerator.
Definition at line 52 of file odom_constraint_generator.cpp.
void graph_slam::OdomConstraintGenerator::updateLocalization | ( | const graph_slam::GraphLocalization & | loc | ) | [virtual] |
Implements graph_slam::ConstraintGenerator.
Definition at line 58 of file odom_constraint_generator.cpp.
boost::optional<pg::NodeId> graph_slam::OdomConstraintGenerator::last_node_ [private] |