#include "chassis_calibration_service/chassis_calibration_common.hpp"

namespace chassis_calibration_service
{

bool MultiSteerWheelChassisAlgorithm::run(
  const ChassisCalibrationInput & input,
  ChassisCalibrationOutput & output,
  std::string & failure_reason) const
{
  (void)failure_reason;

  // 多舵轮底盘算法填充边界：
  // - 输入优先读取三类 CSV：chassis_motion_data_files、actuator_command_files、truth_trajectory_files。
  // - 输出必须填写 selected_specific_params=MULTI_STEER，并写入各模块参数和 validation_summary。
  // - 详细字段合同见 src/docs/chassis_calibration_algorithm_contract.md。
  fill_common_result(input, output);
  select_specific_params(
    output,
    calibration_chassis_interfaces::msg::ChassisSpecificParamsType::MULTI_STEER);
  output.response.result.data_quality_passed = false;
  output.response.result.suitable_for_commit = false;
  output.response.result.validation_summary.auto_acceptance_passed = false;
  output.response.result.message = "多舵轮底盘标定模板已执行；当前仅验证接口和数据输入，真实算法待填充。";
  output.response.result.recommended_parameter_version = "multi_steer_template_v1";
  return true;
}

}  // namespace chassis_calibration_service
