[wpimath] Fix Pose3d transformBy rotation type (#4545)

Co-authored-by: Ryan Blue <ryanzblue@gmail.com>
This commit is contained in:
Griffin Della Grotte
2022-11-07 09:57:33 -08:00
committed by GitHub
parent a4054d702f
commit b1b4c1e9e7
6 changed files with 82 additions and 4 deletions

View File

@@ -70,7 +70,7 @@ Pose3d Pose3d::operator/(double scalar) const {
Pose3d Pose3d::TransformBy(const Transform3d& other) const {
return {m_translation + (other.Translation().RotateBy(m_rotation)),
m_rotation + other.Rotation()};
other.Rotation() + m_rotation};
}
Pose3d Pose3d::RelativeTo(const Pose3d& other) const {