namespace RobotNet10.NavigationTune.Execution;
///
/// Adapter to wrap ILocalization from RobotApp
/// This will be implemented in the application layer that has access to RobotApp
///
public class LocalizationAdapter(Func getX, Func getY, Func getTheta) : ILocalizationProvider
{
private readonly Func _getX = getX;
private readonly Func _getY = getY;
private readonly Func _getTheta = getTheta;
public double X => _getX();
public double Y => _getY();
public double Theta => _getTheta(); // radians
}