Fixup CLI modifying trajectory parameters #1201
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes: #1197
Fixes: #1049
I tried to take the relevant parts from the mega PR that said it should fix the CLI problems.
I am not super well versed in Rust, so there might be a more rust-ic way to do the Result thing.
I tested this by running the
2025.0.3
gui on our paths last year and this year, making a commit, and then runningchoreo-cli.exe --chor <file path> --generate --all-trajectory
and verifying there were no changes. Our paths aren't complicated, basically just stop points and max velocity constraints, but it works for those and doesn't break any tests.If something does break from this, I would say If you like it then you should have put a test on it