cmake_minimum_required(VERSION 3.8)
project(calibration_control_interfaces)

find_package(ament_cmake REQUIRED)
find_package(rosidl_default_generators REQUIRED)
find_package(std_msgs REQUIRED)
find_package(action_msgs REQUIRED)
find_package(calibration_common_interfaces REQUIRED)
find_package(calibration_vehicle_profile_interfaces REQUIRED)

set(msg_files
  "msg/AccelerationDecelerationTask.msg"
  "msg/ActiveControllerParametersResponse.msg"
  "msg/CommitControllerParametersRequest.msg"
  "msg/ControlJobResult.msg"
  "msg/ControlReadinessResponse.msg"
  "msg/ControlTelemetry.msg"
  "msg/ControlValidationSummary.msg"
  "msg/ControlWorkMode.msg"
  "msg/ControlWorkModeRequest.msg"
  "msg/ControllerEvaluationRequest.msg"
  "msg/ControllerEvaluationTaskPurpose.msg"
  "msg/ControllerEvaluationTaskType.msg"
  "msg/ControllerParameterKind.msg"
  "msg/ControllerParameterPack.msg"
  "msg/ControllerParameterSet.msg"
  "msg/GetActiveControllerParametersRequest.msg"
  "msg/InjectControllerParametersRequest.msg"
  "msg/LQRParams.msg"
  "msg/LateralMPCParams.msg"
  "msg/LongitudinalMPCParams.msg"
  "msg/PIDParams.msg"
  "msg/PurePursuitParams.msg"
  "msg/StopAccuracyTask.msg"
  "msg/StreamControlTelemetryRequest.msg"
  "msg/TrajectoryPoint.msg"
  "msg/TrajectoryTrackingTask.msg"
  "msg/VelocityStepTask.msg"
)

set(srv_files
  "srv/CancelControlJob.srv"
  "srv/CommitControllerParameters.srv"
  "srv/EmergencyStop.srv"
  "srv/GetActiveControllerParameters.srv"
  "srv/GetControlJobResult.srv"
  "srv/GetControlJobStatus.srv"
  "srv/GetControlReadiness.srv"
  "srv/Heartbeat.srv"
  "srv/InjectControllerParameters.srv"
  "srv/SetControlWorkMode.srv"
  "srv/StartControllerEvaluation.srv"
  "srv/StreamControlTelemetry.srv"
)

set(action_files
  "action/ExecuteControllerEvaluation.action"
)

rosidl_generate_interfaces(${PROJECT_NAME}
  ${msg_files}
  ${srv_files}
  ${action_files}
  DEPENDENCIES std_msgs action_msgs calibration_common_interfaces calibration_vehicle_profile_interfaces
)

ament_export_dependencies(rosidl_default_runtime)
ament_package()
