◆ DeserializeTrajectory()
Serializes a Trajectory to PathWeaver-style JSON.
- Parameters
-
| trajectory | the trajectory to export |
- Returns
- the string containing the serialized JSON
◆ FromPathweaverJson()
Imports a Trajectory from a PathWeaver-style JSON file.
- Parameters
-
| path | The path of the json file to import from. |
- Returns
- The trajectory represented by the file.
◆ SerializeTrajectory()
| static std::string frc::TrajectoryUtil::SerializeTrajectory |
( |
const Trajectory & |
trajectory | ) |
|
|
static |
Deserializes a Trajectory from PathWeaver-style JSON.
- Parameters
-
| json | the string containing the serialized JSON |
- Returns
- the trajectory represented by the JSON
◆ ToPathweaverJson()
| static void frc::TrajectoryUtil::ToPathweaverJson |
( |
const Trajectory & |
trajectory, |
|
|
const wpi::Twine & |
path |
|
) |
| |
|
static |
Exports a Trajectory to a PathWeaver-style JSON file.
- Parameters
-
| trajectory | the trajectory to export |
| path | the path of the file to export to |
- Returns
- The interpolated state.
The documentation for this class was generated from the following file: