cmake_minimum_required(VERSION 3.8)
project(calibration_external_localization_interfaces)

if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
  add_compile_options(-Wall -Wextra -Wpedantic)
endif()

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

set(msg_files
  "msg/ExternalLocalizationWorkMode.msg"
  "msg/ExternalLocalizationWorkModeRequest.msg"
  "msg/ExternalLocalizationCapabilityRequest.msg"
  "msg/ExternalLocalizationCapabilityResponse.msg"
  "msg/ExternalLocalizationValidationSummary.msg"
  "msg/ExternalLocalizationReadinessResponse.msg"
  "msg/ReferencePoseCollectionTask.msg"
  "msg/MarkerAlignmentTask.msg"
  "msg/TruthSourceValidationTask.msg"
  "msg/ExternalLocalizationTaskPurpose.msg"
  "msg/ExternalLocalizationTaskPayloadType.msg"
  "msg/ExternalLocalizationTaskRequest.msg"
  "msg/StreamExternalLocalizationTelemetryRequest.msg"
  "msg/ExternalLocalizationTelemetry.msg"
  "msg/ExternalLocalizationCalibrationResult.msg"
  "msg/CommitExternalLocalizationResultRequest.msg"
  "msg/GetAppliedExternalLocalizationResultRequest.msg"
  "msg/AppliedExternalLocalizationResultResponse.msg"
  "msg/ExternalLocalizationJobResult.msg"
)

set(srv_files
  "srv/Heartbeat.srv"
  "srv/GetExternalLocalizationReadiness.srv"
  "srv/SetExternalLocalizationWorkMode.srv"
  "srv/GetExternalLocalizationCapability.srv"
  "srv/StartExternalLocalizationTask.srv"
  "srv/GetExternalLocalizationJobStatus.srv"
  "srv/GetExternalLocalizationJobResult.srv"
  "srv/CancelExternalLocalizationJob.srv"
  "srv/StreamExternalLocalizationTelemetry.srv"
  "srv/CommitExternalLocalizationResult.srv"
  "srv/GetAppliedExternalLocalizationResult.srv"
  "srv/EmergencyStop.srv"
)

set(action_files
  "action/ExecuteExternalLocalizationTask.action"
)

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

ament_export_dependencies(rosidl_default_runtime)
ament_package()
