Skip to content

Commit

Permalink
Merge pull request #546 from divbyzerofordummies/fix_ROS_include
Browse files Browse the repository at this point in the history
Fix issue #545
  • Loading branch information
facontidavide committed May 10, 2023
2 parents c07223a + 4b9aad9 commit d25e5b9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/xml_parsing.cpp
Expand Up @@ -165,6 +165,7 @@ void XMLParser::Pimpl::loadDocImpl(tinyxml2::XMLDocument* doc, bool add_includes
std::string ros_pkg_path;
#ifdef USING_ROS
ros_pkg_path = ros::package::getPath(ros_pkg_relative_path);
file_path = filesystem::path(ros_pkg_path) / file_path;
#elif defined USING_ROS2
ros_pkg_path =
ament_index_cpp::get_package_share_directory(ros_pkg_relative_path);
Expand Down

0 comments on commit d25e5b9

Please sign in to comment.