Skip to content

Commit 83580a8

Browse files
authored
Fixed use of ros_pkg for ROS1 applications (#483)
1 parent 89a2e5f commit 83580a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/xml_parsing.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,12 +173,12 @@ void XMLParser::Pimpl::loadDocImpl(tinyxml2::XMLDocument* doc, bool add_includes
173173
#elif defined USING_ROS2
174174
ros_pkg_path =
175175
ament_index_cpp::get_package_share_directory(ros_pkg_relative_path);
176-
file_path = std::filesystem::path(ros_pkg_path) / file_path;
177176
#else
178177
throw RuntimeError("Using attribute [ros_pkg] in <include>, but this library was "
179178
"compiled without ROS support. Recompile the BehaviorTree.CPP "
180179
"using catkin");
181180
#endif
181+
file_path = std::filesystem::path(ros_pkg_path) / file_path;
182182
}
183183
}
184184

0 commit comments

Comments
 (0)