ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
2018-07-24 15:20:28 -0500 | received badge | ● Famous Question (source) |
2016-01-26 04:42:17 -0500 | received badge | ● Notable Question (source) |
2015-04-20 09:49:58 -0500 | received badge | ● Popular Question (source) |
2014-07-10 03:48:14 -0500 | asked a question | How to open a collada file I am facing a problem in opening a collada file with ros. I am using "ogre:mesh" to display it polygens but in qtcreator an error is being prompted every time I execute the code :"NO EXECUTABLE SPECIFIED" The code is as followed: #include <mesh_loader.h> #include <ogremeshserializer.h> #include <ogresubmesh.h> #include <unistd.h> #include <vector> #include <string> #include <iostream> #include <ogre.h> #include "OgreSkeletonSerializer.h" #include "OgreDefaultHardwareBufferManager.h" #include "OgreProgressiveMesh.h" ogre::MeshPtr loadMeshFromResource(const std::string& resource_path); void main() { struct stat tagStat; } Ogre::MeshPtr loadMeshFromResource(const std::string& resource_path) { if (Ogre::MeshManager::getSingleton().resourceExists(resource_path)) { return Ogre::MeshManager::getSingleton().getByName(resource_path); } else { fs::path model_path(resource_path); #if BOOST_FILESYSTEM_VERSION == 3 std::string ext = model_path.extension().string(); #else std::string ext = model_path.extension(); #endif if (ext == ".mesh" || ext == ".MESH") { resource_retriever::Retriever retriever; resource_retriever::MemoryResource res; try { res = retriever.get(resource_path); } catch (resource_retriever::Exception& e) { ROS_ERROR("%s", e.what()); return Ogre::MeshPtr(); } } And if there is any other and simpler way to display the polygens of collada file, please recommend!! |