ConvertMesh.h
Go to the documentation of this file.
00001 
00031 #ifndef URDF2INVENTOR_CONVERTMESH_H
00032 #define URDF2INVENTOR_CONVERTMESH_H
00033 
00034 #include <urdf2inventor/MeshConvertRecursionParams.h>
00035 #include <urdf_traverser/Types.h>
00036 
00037 // this is a temporary filename (extension .iv) which is needed for internal usage, but can be deleted after execution.
00038 #define TMP_FILE_IV "/tmp/urdf2inventor_tmp.iv"
00039 
00040 namespace urdf_traverser
00041 {
00042 class UrdfTraverser;
00043 }
00044 
00045 namespace urdf2inventor
00046 {
00067 /*template<class MeshFormat>
00068 bool convertMeshesSimple(urdf_traverser::UrdfTraverser& traverser,
00069                    const std::string& fromLinkName,
00070                    const float scaleFactor,
00071                    const std::string& material,
00072                    const std::string& file_extension,
00073                    const urdf_traverser::EigenTransform& addVisualTransform,
00074                    std::map<std::string, MeshFormat>& meshes,
00075                    std::map<std::string, std::set<std::string> >& textureFiles);
00076 */
00077 
00086 template <class MeshFormat>
00087 bool convertMeshes(urdf_traverser::UrdfTraverser& traverser,
00088                    const std::string& fromLink,
00089                    const typename urdf2inventor::MeshConvertRecursionParams<MeshFormat>::Ptr& meshParams);
00090 
00091 
00120 bool fixTextureReferences(const std::string& relModelDir,
00121                           const std::string& relTexDir,
00122                           const std::map<std::string, std::set<std::string> >& textureFiles,
00123                           std::map<std::string, std::string>& models,
00124                           std::map<std::string, std::set<std::string> >& texturesToCopy);
00125 
00126 
00127 
00139 SoNode * getAllGeometry(const urdf_traverser::LinkPtr link, double scale_factor,
00140                        const urdf_traverser::EigenTransform& addTransform,
00141                        const bool useVisuals,
00142                        const bool scaleUrdfTransforms); // default: false
00143 
00147 void removeTextureCopies(SoNode * root);
00148 
00149 
00150 }  // namespace
00151 #endif  // URDF2INVENTOR_CONVERTMESH_H


urdf2inventor
Author(s): Jennifer Buehler
autogenerated on Fri Mar 1 2019 03:38:11