Use non-deprecated graphviz methods
parent
86039bf282
commit
752972c1fa
|
@ -122,8 +122,7 @@ int main(int argc, char *argv[]) {
|
||||||
std::cout << "initial error=" << graph.error(initialEstimate) << std::endl;
|
std::cout << "initial error=" << graph.error(initialEstimate) << std::endl;
|
||||||
std::cout << "final error=" << graph.error(result) << std::endl;
|
std::cout << "final error=" << graph.error(result) << std::endl;
|
||||||
|
|
||||||
std::ofstream os("examples/vio_batch.dot");
|
graph.saveGraph("examples/vio_batch.dot", result);
|
||||||
graph.saveGraph(os, result);
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -60,11 +60,10 @@ int main(int argc, char** argv) {
|
||||||
|
|
||||||
// save factor graph as graphviz dot file
|
// save factor graph as graphviz dot file
|
||||||
// Render to PDF using "fdp Pose2SLAMExample.dot -Tpdf > graph.pdf"
|
// Render to PDF using "fdp Pose2SLAMExample.dot -Tpdf > graph.pdf"
|
||||||
ofstream os("Pose2SLAMExample.dot");
|
graph.saveGraph("Pose2SLAMExample.dot", result);
|
||||||
graph.saveGraph(os, result);
|
|
||||||
|
|
||||||
// Also print out to console
|
// Also print out to console
|
||||||
graph.saveGraph(cout, result);
|
graph.dot(cout, result);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue