mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
[wpimath] Replace Pose2/3d.exp(Twist2/3d) with Pose2/3d.plus(Twist2/3d.exp()) (#8188)
This better matches math notation.
This commit is contained in:
@@ -39,7 +39,7 @@ public class Main {
|
||||
private static final TravelingSalesman twistTraveler =
|
||||
new TravelingSalesman(
|
||||
(pose1, pose2) -> {
|
||||
var twist = pose1.log(pose2);
|
||||
var twist = pose2.minus(pose1).log();
|
||||
return Math.hypot(twist.dx, twist.dy);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user