Hi,
Thanks your great work!
There is a bug in your code:
Description:
Inputs of Translation Averaging Need Absolute Rotation of Each View and Relative Pose of View Pair ,
But in examples/position_estimator.cc: 56 view_graph.ReadG2OFile(g2o_filename);
you only convey relative rotation and relative translation.
So, the following codes need to be corrected:
edge.cc:
replace :
// node_t src = kInvalidNodeId;
// node_t dst = kInvalidNodeId;
with:
ImageNode src;
ImageNode dst;
and correct construction fun correspondingly,
view_graph.cc:
ViewGraph::ReadG2OFile, add absolute rotation to edge.src and edge.dst.
graph.inl:
correct AddEdge and AddNodes etc.
and some test functions.