Tabnine Logo
PlanarRegionFileTools.getResourceFile
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: us.ihmc/ihmc-path-planning-visualizers

private void requestNewData(ListView<String> listViewOwner, String datasetResourceName, MouseEvent event)
{
 if (datasetResourceName == null)
   return;
 if (!hasListViewCellBeenDoubleClicked(event))
   return;
 String filename = listViewOwner.getSelectionModel().getSelectedItem();
 String selectedDatasetResource = datasetResourceName + "/" + filename;
 File file = PlanarRegionFileTools.getResourceFile(selectedDatasetResource);
 if (VisibilityGraphsIOTools.isVisibilityGraphsDataset(file))
 {
   VisibilityGraphsUnitTestDataset dataset = VisibilityGraphsIOTools.loadDataset(getClass(), selectedDatasetResource);
   messager.submitMessage(UIVisibilityGraphsTopics.GlobalReset, true);
   messager.submitMessage(UIVisibilityGraphsTopics.PlanarRegionData, dataset.getPlanarRegionsList());
   messager.submitMessage(UIVisibilityGraphsTopics.StartPosition, dataset.getStart());
   messager.submitMessage(UIVisibilityGraphsTopics.GoalPosition, dataset.getGoal());
 }
 else
 {
   PlanarRegionsList loadedPlanarRegions = VisibilityGraphsIOTools.importPlanarRegionData(file);
   messager.submitMessage(UIVisibilityGraphsTopics.GlobalReset, true);
   messager.submitMessage(UIVisibilityGraphsTopics.PlanarRegionData, loadedPlanarRegions);
   messager.submitMessage(UIVisibilityGraphsTopics.StartPosition, new Point3D());
   messager.submitMessage(UIVisibilityGraphsTopics.GoalPosition, new Point3D());
 }
}
us.ihmc.roboticsPlanarRegionFileToolsgetResourceFile

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
  • listResourceDirectoryContents
  • getDate
    Generates a String representing the data & time as of right now, like just right now.
  • fileFromClassPath
  • getResourceURL
  • importPlanarRegionDataInternal
  • importPlanarRegionDataInternalForTests
  • isPlanarRegionFile
  • isWindows
  • loadPlanarRegionVertices
  • isWindows,
  • loadPlanarRegionVertices,
  • readHeaderLine,
  • writePlanarRegionVertices,
  • writePlanarRegionsData

Popular in Java

  • Running tasks concurrently on multiple threads
  • getContentResolver (Context)
  • getSupportFragmentManager (FragmentActivity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • JFileChooser (javax.swing)
  • Option (scala)
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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