MultiBodyTreeDebugGraph.hpp 687 B

1234567891011121314151617
  1. #ifndef MULTIBODYTREEDEBUGGRAPH_HPP_
  2. #define MULTIBODYTREEDEBUGGRAPH_HPP_
  3. #include "BulletInverseDynamics/IDConfig.hpp"
  4. #include "BulletInverseDynamics/MultiBodyTree.hpp"
  5. #include "MultiBodyNameMap.hpp"
  6. namespace btInverseDynamics {
  7. /// generate a dot-file of the multibody tree for generating a graph using graphviz' dot tool
  8. /// @param tree the multibody tree
  9. /// @param map to add names of links (if 0x0, no names will be added)
  10. /// @param filename name for the output file
  11. /// @return 0 on success, -1 on error
  12. int writeGraphvizDotFile(const MultiBodyTree* tree, const MultiBodyNameMap* map,
  13. const char* filename);
  14. }
  15. #endif // MULTIBODYTREEDEBUGGRAPH_HPP