Commit 5f2cb66f authored by Valenza Florian's avatar Valenza Florian
Browse files

[C++] clarify method name

parent ac636b53
......@@ -206,7 +206,7 @@ namespace se3
*
* @return The absolute path to the mesh file
*/
inline std::string fromURDFMeshPathToAbsolutePathPack(const std::string & urdf_mesh_path,
inline std::string convertURDFMeshPathToAbsolutePath(const std::string & urdf_mesh_path,
const std::vector<std::string> & package_dirs)
{
// if exists p1/mesh, absolutePath = p1/mesh,
......@@ -228,16 +228,6 @@ namespace se3
return absolutePath;
}
inline std::string fromURDFMeshPathToAbsolutePath(const std::string & urdf_mesh_path,
const std::string & meshRootDir)
{
std::string absolutePath = std::string(meshRootDir +
urdf_mesh_path.substr(10, urdf_mesh_path.size()));
return absolutePath;
}
} // namespace se3
......
......@@ -42,7 +42,7 @@ namespace se3
boost::shared_ptr < ::urdf::Mesh> collisionGeometry = boost::dynamic_pointer_cast< ::urdf::Mesh> (collision->geometry);
std::string collisionFilename = collisionGeometry->filename;
std::string full_path = fromURDFMeshPathToAbsolutePathPack(collisionFilename, package_dirs);
std::string full_path = convertURDFMeshPathToAbsolutePath(collisionFilename, package_dirs);
::urdf::Vector3 scale = collisionGeometry->scale;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment