def get_servo(self): servo_agent = instantiate_spec(self.servo) servo_agent.init(self.boot_spec) assert isinstance(servo_agent, DiffeoServoAgentInterface) servo_agent.set_discdds(self.discdds) return servo_agent
def __init__(self, plans_generator, reduce_tolerance, distance): self.reduce_tolerance = reduce_tolerance self.plans_generator = instantiate_spec(plans_generator) _, self.distance = get_dp_config().distances.instance_smarter(distance)