File size: 500 Bytes
cc396fd
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
"""Current-estimator line-of-sight controller evaluation."""

from experiments.current_estimator_los_controller.src.config import default_config
from experiments.current_estimator_los_controller.src.controller import plan
from experiments.current_estimator_los_controller.src.estimator import estimate_current

def evaluate(config):
    cfg = default_config() | config
    current = estimate_current(config["history"], cfg)
    return plan(config["history"][-1], current, {"goal": cfg["goal"]}, cfg)