diff --git a/collada_urdf/src/collada_to_urdf.cpp b/collada_urdf/src/collada_to_urdf.cpp index 02798c9..0a0d08f 100644 --- a/collada_urdf/src/collada_to_urdf.cpp +++ b/collada_urdf/src/collada_to_urdf.cpp @@ -5,8 +5,7 @@ #include #include -#if IS_ASSIMP3 -// assimp 3 (assimp_devel) +#if defined(ASSIMP_UNIFIED_HEADER_NAMES) #include #include #include @@ -14,9 +13,8 @@ #include #include #else -// assimp 2 #include -//#include +#include #include #include #endif @@ -69,7 +67,6 @@ os << "xyz: " << origin.position.x << " " << origin.position.y << " " << origin. void assimp_file_export(std::string fname, std::string ofname, std::string mesh_type = "collada") { -#if IS_ASSIMP3 if (fname.find("file://") == 0) { fname.erase(0, strlen("file://")); } @@ -103,7 +100,6 @@ void assimp_file_export(std::string fname, std::string ofname, std::string str( "assimp error" ); std::cerr << ";; " << str << std::endl; } -#endif } // assimp bounding box calculation @@ -597,9 +593,7 @@ int main(int argc, char** argv) cerr << ";; Adding gazebo description" << endl; } if (vm.count("use_assimp_export")) { -#if IS_ASSIMP3 use_assimp_export = true; -#endif cerr << ";; Use assimp export" << endl; } if (vm.count("original_inertia_rotation")) {