1 #ifndef CNODEREGISTRATIONDECIDER_IMPL_H
2 #define CNODEREGISTRATIONDECIDER_IMPL_H
12 template<
class GRAPH_T>
23 template<
class GRAPH_T>
27 template<
class GRAPH_T>
35 ss <<
"Node Registration Decider Strategy [NRD]: " << endl;
36 *report_str += ss.str();
41 template<
class GRAPH_T>
44 template<
class GRAPH_T>
46 const typename GRAPH_T::constraint_t& constraint) {
60 std::pair<typename GRAPH_T::global_poses_t::const_iterator, bool>
res =
61 this->
m_graph->nodes.insert(make_pair(
65 "nodeID \"%lu\" with pose \"%s\" seems to be already registered.",
66 this->m_graph->root, tmp_pose.asString().c_str()));
84 std::pair<typename GRAPH_T::global_poses_t::const_iterator, bool>
res =
85 this->
m_graph->nodes.insert(make_pair(
89 "nodeID \"%lu\" with pose \"%s\" seems to be already registered.",
90 to, tmp_pose.asString().c_str()));
91 this->
m_graph->insertEdgeAtEnd(from, to, constraint);
98 "\t" << from <<
" => " << to << endl <<
99 "\tEdge: " << constraint.getMeanVal().asString());
105 template<
class GRAPH_T>
115 template<
class GRAPH_T>
128 template<
class GRAPH_T>
132 template<
class GRAPH_T>
#define MRPT_LOG_DEBUG_STREAM(__CONTENTS)
#define MRPT_LOG_WARN_STREAM(__CONTENTS)
virtual void getDescriptiveReport(std::string *report_str) const
Fill the provided string with a detailed report of the decider/optimizer state.
GRAPH_T * m_graph
Pointer to the graph that is under construction.
GRAPH_T::constraint_t constraint_t
type of graph constraints
CNodeRegistrationDecider()
Default class constructor.
virtual global_pose_t getCurrentRobotPosEstimation() const
Getter method for fetching the currently estimated robot position.
void resetPDF(constraint_t *c)
Reset the given PDF method and assign a fixed high-certainty Covariance/Information matrix.
GRAPH_T::global_pose_t global_pose_t
virtual void getDescriptiveReport(std::string *report_str) const
Fill the provided string with a detailed report of the decider/optimizer state.
virtual ~CNodeRegistrationDecider()
Default class destructor.
inf_mat_t m_init_inf_mat
Initial information matrix for paths.
virtual void addNodeAnnotsToPose(global_pose_t *pose) const
Get a global_pose_t and fill the NODE_ANNOTATIONS-related fields.
constraint_t m_since_prev_node_PDF
Tracking the PDF of the current position of the robot with regards to the <b previous registered node...
bool registerNewNodeAtEnd()
Same goal as the previous method - uses the m_since_prev_node_PDF as the constraint at the end.
virtual bool checkRegistrationCondition()
Check whether a new node should be registered in the graph.
mrpt::utils::TNodeID m_prev_registered_nodeID
Store the last registered NodeID.
GLsizei const GLchar ** string
uint64_t TNodeID
The type for node IDs in graphs of different types.
#define ASSERTMSG_(f, __ERROR_MSG)
Classes for 2D/3D geometry representation, both of single values and probability density distribution...
Classes for serialization, sockets, ini-file manipulation, streams, list of properties-values,...
std::string BASE_IMPEXP format(const char *fmt,...) MRPT_printf_format_check(1
A std::string version of C sprintf.