Class SwerveParser

java.lang.Object
swervelib.parser.SwerveParser

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

    • swerveDriveJson

      public static SwerveDriveJson swerveDriveJson
      Parsed swervedrive.json
    • controllerPropertiesJson

      public static ControllerPropertiesJson controllerPropertiesJson
      Parsed controllerproperties.json
    • pidfPropertiesJson

      public static PIDFPropertiesJson pidfPropertiesJson
      Parsed modules/pidfproperties.json
    • physicalPropertiesJson

      public static PhysicalPropertiesJson physicalPropertiesJson
      Parsed modules/physicalproperties.json
    • moduleJsons

      public static ModuleJson[] moduleJsons
      Array holding the module jsons given in SwerveDriveJson.
  • Constructor Details

    • 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 - if a file doesn't exist.
  • Method Details