congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
PlanarRegionFileTools.listResourceDirectoryContents
Code IndexAdd Tabnine to your IDE (free)

How to use
listResourceDirectoryContents
method
in
us.ihmc.robotics.PlanarRegionFileTools

Best Java code snippets using us.ihmc.robotics.PlanarRegionFileTools.listResourceDirectoryContents (Showing top 3 results out of 315)

origin: us.ihmc/ihmc-robotics-toolkit

public static List<String> listResourceDirectoryContents(Class<?> loadingClass, String relativePath)
{
 try
 {
   return IOUtils.readLines(loadingClass.getClassLoader().getResourceAsStream(relativePath), StandardCharsets.UTF_8.name());
 }
 catch (IOException e)
 {
   throw new RuntimeException(e.getMessage());
 }
}
origin: us.ihmc/ihmc-path-planning

public static List<VisibilityGraphsUnitTestDataset> loadAllDatasets(Class<?> loadingClass)
{
 List<String> childDirectories = PlanarRegionFileTools.listResourceDirectoryContents(loadingClass, TEST_DATA_URL);
 List<VisibilityGraphsUnitTestDataset> datasets = new ArrayList<>();
 for (int i = 0; i < childDirectories.size(); i++)
 {
   PrintTools.info("trying to load:");
   PrintTools.info(TEST_DATA_URL + "/" + childDirectories.get(i));
   datasets.add(loadDataset(loadingClass, TEST_DATA_URL + "/" + childDirectories.get(i)));
 }
 return datasets;
}
origin: us.ihmc/ihmc-footstep-planning

public static List<FootstepPlannerUnitTestDataset> loadAllFootstepPlannerDatasets(Class<?> loadingClass, String dataURL)
{
 List<String> childDirectories = PlanarRegionFileTools.listResourceDirectoryContents(loadingClass, dataURL);
 List<FootstepPlannerUnitTestDataset> datasets = new ArrayList<>();
 if (DEBUG && childDirectories.size() < 1)
   Assert.fail("Unable to find the directory contents.");
 for (int i = 0; i < childDirectories.size(); i++)
 {
   PrintTools.info("trying to load:");
   PrintTools.info(dataURL + "/" + childDirectories.get(i));
   datasets.add(loadDataset(loadingClass, dataURL + "/" + childDirectories.get(i)));
 }
 if (DEBUG && datasets.size() < 1)
   Assert.fail("Could not find any datasets.");
 return datasets;
}
us.ihmc.roboticsPlanarRegionFileToolslistResourceDirectoryContents

Popular methods of PlanarRegionFileTools

  • importPlanarRegionData
    Load from the given data folder planar region data that has been previously exported via #exportPlan
  • createDefaultTimeStampedFolderName
    Generates a default timestamped name that can be used to generate automated and unique folders.
  • exportPlanarRegionData
    Creates a directory with the given path and export into files the data contained in planarRegionData
  • getDate
    Generates a String representing the data & time as of right now, like just right now.
  • fileFromClassPath
  • getResourceFile
  • getResourceURL
  • importPlanarRegionDataInternal
  • importPlanarRegionDataInternalForTests
  • isPlanarRegionFile
  • isWindows
  • loadPlanarRegionVertices
  • isWindows,
  • loadPlanarRegionVertices,
  • readHeaderLine,
  • writePlanarRegionVertices,
  • writePlanarRegionsData

Popular in Java

  • Making http requests using okhttp
  • onRequestPermissionsResult (Fragment)
  • requestLocationUpdates (LocationManager)
  • getSharedPreferences (Context)
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • Reference (javax.naming)
  • Option (scala)
  • 14 Best Plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now