jspace/jspace/tao_dump.hpp

Go to the documentation of this file.
00001 /*
00002  * Stanford Whole-Body Control Framework http://stanford-wbc.sourceforge.net/
00003  *
00004  * Copyright (C) 2009 The Board of Trustees of The Leland Stanford Junior University. All rights reserved.
00005  *
00006  * This program is free software: you can redistribute it and/or
00007  * modify it under the terms of the GNU Lesser General Public License
00008  * as published by the Free Software Foundation, either version 3 of
00009  * the License, or (at your option) any later version.
00010  *
00011  * This program is distributed in the hope that it will be useful, but
00012  * WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014  * Lesser General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU Lesser General Public
00017  * License along with this program.  If not, see
00018  * <http://www.gnu.org/licenses/>
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 /*const*/ & joint);
00096   ostream & operator << (ostream & os, deMassProp const & rhs);
00097   
00098 }
00099 
00100 #endif // JSPACE_UTIL_DUMP_HPP

Generated on Fri Aug 26 01:31:16 2011 for Stanford Whole-Body Control Framework by  doxygen 1.5.4