Class RosPackPathHelper

java.lang.Object
edu.tufts.hrilab.util.RosPackPathHelper

public class RosPackPathHelper extends Object
This class helps with finding and listing out ROS package information. It should work similarly to the python RosPack
  • Field Details

    • log

      protected static org.slf4j.Logger log
  • Constructor Details

    • RosPackPathHelper

      public RosPackPathHelper()
  • Method Details

    • getPackageAndRelativePath

      public org.apache.commons.lang3.tuple.Pair<String,String> getPackageAndRelativePath(String fullPath)
    • getRosPackages

      public Map<String,String> getRosPackages()
      Find all the packages with their names and their paths.
      Returns:
      A map with all package names with their associated paths
    • getRosPackPath

      public String getRosPackPath(String pkg) throws FileNotFoundException
      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