Skip to content

Commit 95802fd

Browse files
Add AMENT environment variable to GeneralResourceLocator
1 parent 5c04150 commit 95802fd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tesseract_common/include/tesseract_common/resource_locator.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,8 @@ class GeneralResourceLocator : public ResourceLocator
9292
* @param environment_variables A vector of environment variables to search for paths
9393
*/
9494
GeneralResourceLocator(const std::vector<std::string>& environment_variables = { "TESSERACT_RESOURCE_PATH",
95-
"ROS_PACKAGE_PATH" });
95+
"ROS_PACKAGE_PATH",
96+
"AMENT_PREFIX_PATH" });
9697
/**
9798
* @brief Construct a new General Resource Locator object using the provided paths and/or the TESSERACT_RESOURCE_PATH
9899
* environment variable
@@ -102,7 +103,8 @@ class GeneralResourceLocator : public ResourceLocator
102103
*/
103104
GeneralResourceLocator(const std::vector<std::filesystem::path>& paths,
104105
const std::vector<std::string>& environment_variables = { "TESSERACT_RESOURCE_PATH",
105-
"ROS_PACKAGE_PATH" });
106+
"ROS_PACKAGE_PATH",
107+
"AMENT_PREFIX_PATH" });
106108
GeneralResourceLocator(const GeneralResourceLocator&) = default;
107109
GeneralResourceLocator& operator=(const GeneralResourceLocator&) = default;
108110
GeneralResourceLocator(GeneralResourceLocator&&) = default;

0 commit comments

Comments
 (0)