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

calculateRobotPoseError

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

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