Class JSONUtil

java.lang.Object
com.pathplanner.lib.util.JSONUtil

public class JSONUtil extends Object
Utility class for creating different objects from JSON
  • Constructor Details

    • JSONUtil

      public JSONUtil()
  • Method Details

    • translation2dFromJson

      public static Translation2d translation2dFromJson(org.json.simple.JSONObject translationJson)
      Create a Translation2d from a json object containing x and y fields
      Parameters:
      translationJson - The json object representing a translation
      Returns:
      Translation2d from the given json