Package com.pathplanner.lib.util
Class JSONUtil
java.lang.Object
com.pathplanner.lib.util.JSONUtil
Utility class for creating different objects from JSON
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Translation2d
translation2dFromJson
(org.json.simple.JSONObject translationJson) Create a Translation2d from a json object containing x and y fields
-
Constructor Details
-
JSONUtil
public JSONUtil()
-
-
Method Details
-
translation2dFromJson
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
-