-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCMakeLists.txt
60 lines (49 loc) · 1.48 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
59
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.3)
PROJECT(nao_kinect_teleop)
# Operational Space Inverse Kinematics Control and RBDL packages
FIND_PACKAGE(PkgConfig)
PKG_CHECK_MODULES(OSCR oscr REQUIRED)
## Find catkin macros and libraries
FIND_PACKAGE(catkin REQUIRED COMPONENTS
sensor_msgs
roscpp
rospack
roslib
)
CATKIN_PACKAGE()
INCLUDE_DIRECTORIES(
include
${OSCR_INCLUDE_DIRS}
${catkin_INCLUDE_DIRS}
)
LINK_DIRECTORIES(
${OSCR_LIBRARY_DIRS}
)
ADD_LIBRARY(nao_kinect_teleop SHARED
src/utils/marker.cpp
src/utils/ball-marker.cpp
src/utils/line-marker.cpp
src/utils/frame-marker.cpp
src/utils/kinect-skeleton-fixed.cpp
src/utils/nao-interface.cpp
src/utils/joint-state-pub.cpp
)
SET(ALL_LIBRARIES
nao_kinect_teleop
${catkin_LIBRARIES}
${OSCR_LIBRARIES}
)
# Deprecated example
ADD_EXECUTABLE(deprec_nao_arms_teleop
src/deprecated/nao_arms_teleop.cpp
src/deprecated/tools.cpp)
TARGET_LINK_LIBRARIES(deprec_nao_arms_teleop ${ALL_LIBRARIES})
# Executable to teleoperate the arms with RViz
ADD_EXECUTABLE(nao_teleop_arms_rviz src/teleop-arms-rviz.cpp)
TARGET_LINK_LIBRARIES(nao_teleop_arms_rviz ${ALL_LIBRARIES})
# Executable to teleoperate the arms with Naoqi (and the real robot)
ADD_EXECUTABLE(nao_teleop_arms src/teleop-arms.cpp)
TARGET_LINK_LIBRARIES(nao_teleop_arms ${ALL_LIBRARIES})
# Executable to teleoperate arms and head with Naoqi (real robot)
ADD_EXECUTABLE(nao_teleop_arms_head src/teleop-arms-head.cpp)
TARGET_LINK_LIBRARIES(nao_teleop_arms_head ${ALL_LIBRARIES})