Skip to content
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

Have a vector field visualization #288

Open
TheComputer314 opened this issue Dec 12, 2024 · 2 comments
Open

Have a vector field visualization #288

TheComputer314 opened this issue Dec 12, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@TheComputer314
Copy link

TheComputer314 commented Dec 12, 2024

Is your feature request related to a problem? Please describe.
I am using the Pose2d arrow visualization for a vector field visualization (see attached) but when using that, the color/length of the arrow can't be changed to visualize magnitude, which makes it cluttered and hard to read. AdvantageScope also tends to get very laggy, since this method necessitates publishing hundreds or even thousands of Pose2ds in an array.

image

Describe the solution you'd like
A way to visualize a vector field in a way that is 1) more readable 2) more performant.

Describe alternatives you've considered
For my particular usecase, I could use the other visualization options that AScope has, but I would like the vector field visualization itself to have the magnitudes.

@TheComputer314 TheComputer314 added the enhancement New feature or request label Dec 12, 2024
@TheComputer314 TheComputer314 changed the title Have Have a bound vector visualization Dec 12, 2024
@TheComputer314 TheComputer314 changed the title Have a bound vector visualization Have a vector field visualization Dec 14, 2024
@TheComputer314
Copy link
Author

I originally had a wpimath PR that added a bound vector geometry type, but I closed that due to 1) the impl being kinda bad especially with naming 2) the use cases being too niche to be included in wpimath 3) it doesn't solve the performance issue of publishing a crap load of stuff to NT.

@TheComputer314
Copy link
Author

The problem is though that there's not really a good package/project to add a class for this use case. Adding it to wpimath was shot down for the above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant