Skip to content

FTC Support#1341

Open
polargh wants to merge 46 commits into
SleipnirGroup:mainfrom
NullFTC:dev/mecanum
Open

FTC Support#1341
polargh wants to merge 46 commits into
SleipnirGroup:mainfrom
NullFTC:dev/mecanum

Conversation

@polargh

@polargh polargh commented Nov 8, 2025

Copy link
Copy Markdown

Scope

  • Mecanum Trajectory Generation & Optimization
  • Custom Field Selection

Current State

Mecanum trajectory generation is functional, and custom field selection is fully implemented.
Users can now upload custom field images or choose from a set of preset options.

@github-actions github-actions Bot added component: ui UI frontend component: backend Rust/Tauri backend component: trajoptlib TrajoptLib labels Nov 8, 2025
Comment thread src-core/src/spec/trajectory.rs Outdated
Comment thread .vscode/settings.json Outdated
Comment thread trajoptlib/src/mecanum_trajectory_generator.cpp Outdated
Comment thread trajoptlib/src/mecanum_trajectory_generator.cpp Outdated

@calcmogul calcmogul left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A lot of these changes are just to match the style of the other trajectory generators. If a comment makes sense to add to what was already there, it should be added to all trajectory generators if relevant.

Comment thread trajoptlib/src/mecanum_trajectory_generator.cpp Outdated
Comment thread trajoptlib/src/mecanum_trajectory_generator.cpp Outdated
Comment thread trajoptlib/src/mecanum_trajectory_generator.cpp Outdated
Comment thread trajoptlib/src/mecanum_trajectory_generator.cpp Outdated
Comment thread trajoptlib/src/mecanum_trajectory_generator.cpp Outdated
Comment thread trajoptlib/src/mecanum_trajectory_generator.cpp Outdated
Comment thread trajoptlib/src/mecanum_trajectory_generator.cpp Outdated
Comment thread trajoptlib/src/mecanum_trajectory_generator.cpp Outdated
Comment thread trajoptlib/src/mecanum_trajectory_generator.cpp Outdated
Comment thread trajoptlib/src/mecanum_trajectory_generator.cpp Outdated
@polargh

polargh commented Nov 11, 2025

Copy link
Copy Markdown
Author

A lot of these changes are just to match the style of the other trajectory generators. If a comment makes sense to add to what was already there, it should be added to all trajectory generators if relevant.

understood 👍

polargh and others added 4 commits November 12, 2025 10:38
Co-authored-by: Tyler Veness <calcmogul@gmail.com>
Co-authored-by: Tyler Veness <calcmogul@gmail.com>
Co-authored-by: Tyler Veness <calcmogul@gmail.com>
Co-authored-by: Tyler Veness <calcmogul@gmail.com>
polargh and others added 7 commits November 12, 2025 10:39
Co-authored-by: Tyler Veness <calcmogul@gmail.com>
Co-authored-by: Tyler Veness <calcmogul@gmail.com>
Co-authored-by: Tyler Veness <calcmogul@gmail.com>
Co-authored-by: Tyler Veness <calcmogul@gmail.com>
Co-authored-by: Tyler Veness <calcmogul@gmail.com>
Co-authored-by: Tyler Veness <calcmogul@gmail.com>
Comment thread trajoptlib/.clangd Outdated
Comment thread bun.lock Outdated
Comment thread trajoptlib/src/mecanum_trajectory_generator.cpp Outdated
Comment thread trajoptlib/src/mecanum_trajectory_generator.cpp Outdated
@calcmogul

calcmogul commented Jan 11, 2026

Copy link
Copy Markdown
Member

Maybe a more reliable formulation would be making the force vectors more general like swerve, then adding wheel force vector direction constraints on top of it. By using constraints instead of baking the force directions into the problem structure, the solver is free to temporarily violate the constraints to find a better optimum, instead of reporting infeasible or hitting a line search issue.

We did something similar with the path segment dt values, cuz forcing them equal at all times was causing convergence issues.

@calcmogul

Copy link
Copy Markdown
Member

Here's the project I've been testing this PR against, for reference:
mecanum-test.zip

@polargh

polargh commented Apr 16, 2026

Copy link
Copy Markdown
Author

cool! i've been busy with prepping for champs so i haven't had much time to work on this as of recent.

what you're suggesting makes sense to me and i'll take a look at the file you provided :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component: backend Rust/Tauri backend component: trajoptlib TrajoptLib component: ui UI frontend

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants