43 #include <pcl/registration/graph_handler.h>
44 #include <pcl/point_cloud.h>
50 template <
typename GraphT>
70 template <
typename Po
intT>
73 const Eigen::Matrix4f& pose)
107 computeRegistration();
123 computeRegistration() = 0;
GraphRegistration class is the base class for graph-based registration methods
std::vector< GraphHandlerVertex > last_vertices_
The vertices added to the graph since the last call to compute.
virtual ~GraphRegistration()=default
Empty destructor.
void setGraphHandler(GraphHandlerPtr &gh)
Set the graph handler.
typename pcl::registration::GraphHandler< GraphT >::Vertex GraphHandlerVertex
GraphRegistration()
Empty constructor.
GraphHandlerVertex last_aligned_vertex_
The last estimated pose.
GraphHandlerPtr graph_handler_
The graph handler.
void compute()
Check if new poses have been added, then call the registration method which is implemented by the sub...
typename pcl::registration::GraphHandler< GraphT >::ConstPtr GraphHandlerConstPtr
typename pcl::registration::GraphHandler< GraphT >::Ptr GraphHandlerPtr
GraphHandlerPtr getGraphHandler()
Get a pointer to the graph handler.
void addPointCloud(const typename pcl::PointCloud< PointT >::ConstPtr &cloud, const Eigen::Matrix4f &pose)
Add a point cloud and the associated camera pose to the graph.
GraphHandlerConstPtr getGraphHandler() const
Get a pointer to the graph handler.
shared_ptr< const PointCloud< PointT > > ConstPtr
GraphHandler class is a wrapper for a general SLAM graph The actual graph class must fulfill the foll...
shared_ptr< const GraphHandler< GraphT > > ConstPtr
shared_ptr< GraphHandler< GraphT > > Ptr
typename boost::graph_traits< GraphT >::vertex_descriptor Vertex