-
Notifications
You must be signed in to change notification settings - Fork 3
/
CMakeLists.txt
58 lines (49 loc) · 1.23 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
CMAKE_MINIMUM_REQUIRED(VERSION 3.1)
PROJECT(whole_body_mpc_msgs)
# Set up project properties
SET(PROJECT_NAME whole_body_mpc_msgs)
SET(PROJECT_DESCRIPTION "Whole-body MPC messages")
# Print initial message
MESSAGE(STATUS "${PROJECT_DESCRIPTION}, version ${PROJECT_VERSION}")
MESSAGE(STATUS "Copyright (C) 2020 University of Edinburgh")
MESSAGE(STATUS "All rights reserved.")
MESSAGE(STATUS "Released under the BSD 3-Clause License.")
# Find required packages
FIND_PACKAGE(catkin REQUIRED COMPONENTS
rospy
std_msgs
whole_body_state_msgs
message_generation
)
catkin_python_setup()
# Define messages to be generated
add_message_files(
DIRECTORY msg
FILES
ContactManager.msg
ContactPhase.msg
ContactSchedule.msg
GaitGeneratorSchedule.msg
MpcStatistics.msg
StateFeedbackGain.msg
WholeBodyMpcReference.msg
)
# Define service files
add_service_files(DIRECTORY srv
FILES
AddGaitGeneratorSchedulesToQueue.srv
)
generate_messages(
DEPENDENCIES
std_msgs
whole_body_state_msgs
)
# Define catkin dependencies
catkin_package(
INCLUDE_DIRS include
CATKIN_DEPENDS message_runtime std_msgs whole_body_state_msgs
)
# Install
install(DIRECTORY include/${PROJECT_NAME}/
DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION}
)