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

[wpimath] Add Reset methods to PoseEstimator #6751

Merged
merged 2 commits into from
Jul 9, 2024

Conversation

spacey-sooty
Copy link
Contributor

Requires #6702
Resolves #5001

@spacey-sooty spacey-sooty requested a review from a team as a code owner June 18, 2024 09:07
@spacey-sooty spacey-sooty force-pushed the estimatorreset branch 2 times, most recently from 0d760f5 to a5478bb Compare July 6, 2024 12:01
@PeterJohnson PeterJohnson merged commit cc02a94 into wpilibsuite:main Jul 9, 2024
33 checks passed
@spacey-sooty spacey-sooty deleted the estimatorreset branch July 18, 2024 03:39
template <typename WheelSpeeds, typename WheelPositions>
void PoseEstimator<WheelSpeeds, WheelPositions>::ResetRotation(
const Rotation2d& rotation) {
m_odometry.ResetTranslation(rotation);
Copy link
Member

Choose a reason for hiding this comment

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

This should be ResetRotation? It would be good if some test was added that instantiated these templates to catch compile errors like this.

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

Successfully merging this pull request may close these issues.

Convenience methods for resetting odometry and pose estimator classes
4 participants