Skip to content

Commit

Permalink
Update urdf_config.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
sea-bass authored Jan 20, 2025
1 parent e19ac9f commit a67c37b
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,17 +116,13 @@ void URDFConfig::setPackageName()
void URDFConfig::loadFromPackage(const std::filesystem::path& package_name, const std::filesystem::path& relative_path,
const std::string& xacro_args)
{
<<<<<<< HEAD
urdf_pkg_name_ = package_name;
=======
const std::filesystem::path package_path = getSharePath(package_name.string());
if (package_path.empty())
{
throw std::runtime_error("URDF/COLLADA package not found: ''" + package_name.string());
}

urdf_pkg_name_ = package_name.string();
>>>>>>> 2b9173b37 (Explicit convert from std::filesystem::path to std::string for Windows compatibility (#3249))
urdf_pkg_relative_path_ = relative_path;
xacro_args_ = xacro_args;

Expand Down

0 comments on commit a67c37b

Please sign in to comment.