Trajectory utilities.
More...
#include <frc/trajectory/TrajectoryUtil.h>
◆ TrajectoryUtil()
frc::TrajectoryUtil::TrajectoryUtil |
( |
| ) |
|
|
delete |
◆ DeserializeTrajectory()
Serializes a Trajectory to PathWeaver-style JSON.
- Parameters
-
jsonStr | the string containing the serialized JSON |
- Returns
- the trajectory represented by the JSON
◆ FromPathweaverJson()
Imports a Trajectory from a JSON file exported from PathWeaver.
- 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 JSON exported from PathWeaver.
- Parameters
-
trajectory | the trajectory to export |
- Returns
- the string containing the serialized JSON
◆ ToPathweaverJson()
Exports a Trajectory to a PathWeaver-style JSON file.
- Parameters
-
trajectory | the trajectory to export |
path | the path of the file to export to |
The documentation for this class was generated from the following file: