00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00026 #ifndef JSPACE_UTIL_DUMP_HPP
00027 #define JSPACE_UTIL_DUMP_HPP
00028
00029 #include <iosfwd>
00030 #include <vector>
00031 #include <stdexcept>
00032
00033 class deVector6;
00034 class deVector3;
00035 class deQuaternion;
00036 class deFrame;
00037 class taoJoint;
00038 class deMassProp;
00039 class deMatrix3;
00040 class taoDNode;
00041
00042
00043 namespace jspace {
00044
00045 struct tao_tree_info_s;
00046
00047 std::string inertia_matrix_to_string(deMatrix3 const & mx);
00048
00062 void dump_tao_tree(std::ostream & os, taoDNode * root, std::string prefix,
00063 bool detailed,
00064 std::vector<std::string> * id_to_link_name,
00065 std::vector<std::string> * id_to_joint_name);
00066
00070 void dump_tao_tree_info(std::ostream & os, tao_tree_info_s * tree, std::string prefix, bool detailed);
00071
00076 void dump_tao_tree_info_saixml(std::ostream & os, tao_tree_info_s * tree) throw(std::runtime_error);
00077
00082 void dump_tao_tree_info_lotusxml(std::ostream & os,
00083 std::string const & robot_name,
00084 std::string const & root_link_name,
00085 tao_tree_info_s * tree) throw(std::runtime_error);
00086
00087 }
00088
00089 namespace std {
00090
00091 ostream & operator << (ostream & os, deVector6 const & vec);
00092 ostream & operator << (ostream & os, deVector3 const & vec);
00093 ostream & operator << (ostream & os, deQuaternion const & vec);
00094 ostream & operator << (ostream & os, deFrame const & frame);
00095 ostream & operator << (ostream & os, taoJoint & joint);
00096 ostream & operator << (ostream & os, deMassProp const & rhs);
00097
00098 }
00099
00100 #endif // JSPACE_UTIL_DUMP_HPP