core / com.acmerobotics.roadrunner.kinematics / Kinematics / calculateFieldPoseError

calculateFieldPoseError

@JvmStatic fun calculateFieldPoseError(targetFieldPose: Pose2d, currentFieldPose: Pose2d): Pose2d (source)

Returns the error between targetFieldPose and currentFieldPose in the field frame.