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 << "final error=" << graph.error(result) << std::endl;
|
||||
|
||||
std::ofstream os("examples/vio_batch.dot");
|
||||
graph.saveGraph(os, result);
|
||||
graph.saveGraph("examples/vio_batch.dot", result);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -60,11 +60,10 @@ int main(int argc, char** argv) {
|
|||
|
||||
// save factor graph as graphviz dot file
|
||||
// Render to PDF using "fdp Pose2SLAMExample.dot -Tpdf > graph.pdf"
|
||||
ofstream os("Pose2SLAMExample.dot");
|
||||
graph.saveGraph(os, result);
|
||||
graph.saveGraph("Pose2SLAMExample.dot", result);
|
||||
|
||||
// Also print out to console
|
||||
graph.saveGraph(cout, result);
|
||||
graph.dot(cout, result);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue