Skip to content

Commit

Permalink
Merge pull request #978 from borglab/fix/examples
Browse files Browse the repository at this point in the history
  • Loading branch information
dellaert authored Dec 21, 2021
2 parents 8291b31 + 752972c commit ee88f63
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions examples/FisheyeExample.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
5 changes: 2 additions & 3 deletions examples/Pose2SLAMExample_graphviz.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit ee88f63

Please sign in to comment.