Class PathImporter
- java.lang.Object
-
- io.github.frc5024.purepursuit.util.PathImporter
-
- Direct Known Subclasses:
PathImporter
public class PathImporter extends java.lang.Object
The PathImporter is a tool for importing Paths from config files
-
-
Constructor Summary
Constructors Constructor Description PathImporter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RawPath
jsonToPath(java.io.File jsonFile)
Load a WPILib PathWeaver JSON file as a Lib5K Path
-
-
-
Method Detail
-
jsonToPath
public static RawPath jsonToPath(java.io.File jsonFile) throws java.io.IOException, java.io.FileNotFoundException
Load a WPILib PathWeaver JSON file as a Lib5K Path- Parameters:
jsonFile
- JSON file- Returns:
- Loaded Path object
- Throws:
java.io.IOException
- Thrown if something goes wrong parsing the filejava.io.FileNotFoundException
- Thrown if the file does not exist
-
-