Go to the documentation of this file.00001
00032 #ifndef URDF2INVENTOR_CONVERSIONRESULT_H
00033 #define URDF2INVENTOR_CONVERSIONRESULT_H
00034
00035
00036 #include <Eigen/Core>
00037 #include <Eigen/Geometry>
00038 #include <string>
00039 #include <map>
00040 #include <set>
00041
00042 namespace urdf2inventor
00043 {
00044
00051 class ConversionParameters
00052 {
00053 public:
00054 typedef Eigen::Transform<double, 3, Eigen::Affine> EigenTransform;
00055 explicit ConversionParameters(const std::string& _rootLinkName,
00056 const std::string& _material,
00057 const EigenTransform& _addVisualTransform):
00058 rootLinkName(_rootLinkName),
00059 material(_material),
00060 addVisualTransform(_addVisualTransform) {}
00061 ConversionParameters(const ConversionParameters& o):
00062 rootLinkName(o.rootLinkName),
00063 material(o.material),
00064 addVisualTransform(o.addVisualTransform) {}
00065
00066 virtual ~ConversionParameters() {}
00067
00068
00069 std::string rootLinkName;
00070
00071
00072 std::string material;
00073
00080 EigenTransform addVisualTransform;
00081
00082 private:
00083 ConversionParameters() {}
00084 };
00085
00086
00087
00093 template<typename MeshFormat>
00094 class ConversionResult
00095 {
00096 public:
00097 explicit ConversionResult(const std::string& _meshOutputExtension,
00098 const std::string& _meshOutputDirectoryName,
00099 const std::string& _texOutputDirectoryName):
00100 meshOutputExtension(_meshOutputExtension),
00101 meshOutputDirectoryName(_meshOutputDirectoryName),
00102 texOutputDirectoryName(_texOutputDirectoryName),
00103 success(false) {}
00104 ConversionResult(const ConversionResult& o):
00105 robotName(o.robotName),
00106 meshes(o.meshes),
00107 meshOutputExtension(o.meshOutputExtension),
00108 meshOutputDirectoryName(o.meshOutputDirectoryName),
00109 texOutputDirectoryName(o.texOutputDirectoryName),
00110 success(o.success) {}
00111
00112 virtual ~ConversionResult() {}
00113
00114 std::string robotName;
00115
00116
00117 std::map<std::string, MeshFormat> meshes;
00118
00128 std::map<std::string, std::set<std::string> > textureFiles;
00129
00130
00131 std::string meshOutputExtension;
00132
00133
00134 std::string meshOutputDirectoryName;
00135
00136
00137 std::string texOutputDirectoryName;
00138
00139 bool success;
00140
00141 private:
00142 ConversionResult():
00143 success(false) {}
00144 };
00145
00146 }
00147 #endif // URDF2INVENTOR_CONVERSIONRESULT_H