Go to the documentation of this file.00001
00032 #ifndef URDF2INVENTOR_MESHCONVERTRECURSIONPARAMS
00033 #define URDF2INVENTOR_MESHCONVERTRECURSIONPARAMS
00034
00035 #include <urdf_traverser/RecursionParams.h>
00036 #include <ros/ros.h>
00037 #include <set>
00038 #include <string>
00039 #include <map>
00040
00041 namespace urdf2inventor
00042 {
00043
00047 template<class MeshFormat>
00048 class MeshConvertRecursionParams: public urdf_traverser::FactorRecursionParams
00049 {
00050 public:
00051 typedef MeshConvertRecursionParams<MeshFormat> Self;
00052 typedef typename baselib_binding::shared_ptr<Self>::type Ptr;
00053 explicit MeshConvertRecursionParams(double _scale_factor, const std::string _material,
00054 const std::string& _extension,
00055 const urdf_traverser::EigenTransform& _addVisualTransform):
00056 FactorRecursionParams(_scale_factor),
00057 material(_material),
00058 extension(_extension),
00059 addVisualTransform(_addVisualTransform) {}
00060 MeshConvertRecursionParams(const MeshConvertRecursionParams& o):
00061 FactorRecursionParams(o),
00062 material(o.material),
00063 extension(o.extension),
00064 resultMeshes(o.resultMeshes),
00065 addVisualTransform(o.addVisualTransform),
00066 textureFiles(o.textureFiles) {}
00067 virtual ~MeshConvertRecursionParams() {}
00068
00069
00070 std::string material;
00071
00072
00073
00074 std::string extension;
00075
00081 virtual urdf_traverser::EigenTransform getVisualTransform() const
00082 {
00083 return addVisualTransform;
00084 }
00085
00086
00087
00088
00089
00090
00091
00092 std::map<std::string, MeshFormat> resultMeshes;
00093
00094
00095
00096
00097 std::map<std::string, std::set<std::string> > textureFiles;
00098
00099 private:
00100 explicit MeshConvertRecursionParams() {}
00101
00102 protected:
00111 urdf_traverser::EigenTransform addVisualTransform;
00112 };
00113
00114 }
00115
00116 #endif // URDF2INVENTOR_MESHCONVERTRECURSIONPARAMS