From 9fd657142cfc3c4bb1d218184a9710c70aec7f59 Mon Sep 17 00:00:00 2001 From: A K Azad Date: Wed, 11 Dec 2024 14:38:24 +0100 Subject: [PATCH 1/2] Update mesh_loader.cpp fs::extension error --- src/rviz/mesh_loader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rviz/mesh_loader.cpp b/src/rviz/mesh_loader.cpp index 80f1120a77..950ffaf2aa 100644 --- a/src/rviz/mesh_loader.cpp +++ b/src/rviz/mesh_loader.cpp @@ -408,7 +408,7 @@ void loadTexture(const std::string& resource_path) { Ogre::DataStreamPtr stream(new Ogre::MemoryDataStream(res.data.get(), res.size)); Ogre::Image image; - std::string extension = fs::extension(fs::path(resource_path)); + std::string extension = fs::path(resource_path).extension().string(); if (extension[0] == '.') { From e1bd6629fc1fc65fe85104b46b533f8d4355fd79 Mon Sep 17 00:00:00 2001 From: A K Azad Date: Wed, 11 Dec 2024 14:45:07 +0100 Subject: [PATCH 2/2] Update robot_link.cpp fs::extension error --- src/rviz/robot/robot_link.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rviz/robot/robot_link.cpp b/src/rviz/robot/robot_link.cpp index 7ffe26e1dc..c122ba9840 100644 --- a/src/rviz/robot/robot_link.cpp +++ b/src/rviz/robot/robot_link.cpp @@ -518,7 +518,7 @@ Ogre::MaterialPtr RobotLink::getMaterialForLink(const urdf::LinkConstSharedPtr& { Ogre::DataStreamPtr stream(new Ogre::MemoryDataStream(res.data.get(), res.size)); Ogre::Image image; - std::string extension = fs::extension(fs::path(filename)); + std::string extension = fs::path(filename).extension().string(); if (extension[0] == '.') {