Class SwerveParser


  • public class SwerveParser
    extends Object
    Helper class used to parse the JSON directory with specified configuration options.
    • Constructor Detail

      • SwerveParser

        public SwerveParser​(File directory)
                     throws IOException
        Construct a swerve parser. Will throw an error if there is a missing file.
        Parameters:
        directory - Directory with swerve configurations.
        Throws:
        IOException
    • Method Detail

      • openJson

        private com.fasterxml.jackson.databind.JsonNode openJson​(File file)
        Open JSON file.
        Parameters:
        file - JSON File to open.
        Returns:
        JsonNode of file.
      • checkDirectory

        private void checkDirectory​(File directory)
        Check directory structure.
        Parameters:
        directory - JSON Configuration Directory