-
Notifications
You must be signed in to change notification settings - Fork 611
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JSON Serialization of Trajectories #2038
Comments
The serialization should beas follows:
generateTrajectory(
cubicWaypoints.start,
cubicWaypoints.interior,
cubicWaypoints.end,
config)
|
So the 2 ways forward that I think need to be decided between. They each have their own benefits and I'll try to explain both.
|
I would be capable of writing the Gradle utility for the second one assuming the module system if up and running. That way, making a new path implementation is as easy as adding a module to Pathfinder, and you got both visualization and following (via Trajectory) for free. |
Ya lets go with you start doing that. It keeps everything unified. Also others that attempt to use pathweaver for non FRC uses will probably prefer the precomputed command line option. And I like the idea of a module system where backends are automatically added to both systems.
|
The second one sounds similar to something I started implementing here. I'm also interested in a feature like this. |
Is this still relevant? If I remember correctly, Trajectories are serializable to (or at least deserializable from) JSON. |
Tracking issue for the JSON Serialization of Trajectories from PathWeaver to Java and C++ Robot projects.
The text was updated successfully, but these errors were encountered: