mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-24 01:31:46 +00:00
[wpimath] Add Rotation3d rotation vector getter (#7564)
The code churn in Java is just making the function order consistent between languages.
This commit is contained in:
@@ -404,7 +404,7 @@ constexpr Twist3d Pose3d::Log(const Pose3d& end) const {
|
||||
|
||||
Vector3d u{
|
||||
{transform.X().value(), transform.Y().value(), transform.Z().value()}};
|
||||
Vector3d rvec = transform.Rotation().GetQuaternion().ToRotationVector();
|
||||
Vector3d rvec = transform.Rotation().ToVector();
|
||||
Matrix3d omega = detail::RotationVectorToMatrix(rvec);
|
||||
Matrix3d omegaSq = omega * omega;
|
||||
double theta = rvec.norm();
|
||||
|
||||
Reference in New Issue
Block a user