cmake_minimum_required(VERSION 3.0.2)
project(invicta_msgs)

find_package(catkin REQUIRED COMPONENTS
  message_generation
  std_msgs
)

add_message_files(
  FILES
  JointCommandArray.msg
  JointDiagnostics.msg
  MotionCommand.msg
  MotionState.msg
)

generate_messages(
  DEPENDENCIES
  std_msgs
)

# 除了生成的消息，本包还导出 control_word.h 这个纯头文件，
# 让 invicta_deploy 与 invicta_hardware 共用同一套控制字常量。
catkin_package(
  INCLUDE_DIRS include
  CATKIN_DEPENDS message_runtime std_msgs
)
