Package edu.tufts.hrilab.util
Class RosPackPathHelper
java.lang.Object
edu.tufts.hrilab.util.RosPackPathHelper
This class helps with finding and listing out ROS package information. It should work similarly to the python RosPack
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetPackageAndRelativePath
(String fullPath) Find all the packages with their names and their paths.getRosPackPath
(String pkg) Gives the absolute path of the given package name
-
Field Details
-
log
protected static org.slf4j.Logger log
-
-
Constructor Details
-
RosPackPathHelper
public RosPackPathHelper()
-
-
Method Details
-
getPackageAndRelativePath
-
getRosPackages
Find all the packages with their names and their paths.- Returns:
- A map with all package names with their associated paths
-
getRosPackPath
Gives the absolute path of the given package name- Parameters:
pkg
- The name of the package- Returns:
- The absolute path of the given package name
- Throws:
FileNotFoundException
- If the package is not found
-