forked from spencer-project/spencer_people_tracking
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
142 lines (112 loc) · 6.3 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
# Software License Agreement (BSD License)
#
# Copyright (c) 2013-2015, Timm Linder, Social Robotics Lab, University of Freiburg
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this
# list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright notice,
# this list of conditions and the following disclaimer in the documentation
# and/or other materials provided with the distribution.
# * Neither the name of the copyright holder nor the names of its contributors
# may be used to endorse or promote products derived from this software
# without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
cmake_minimum_required(VERSION 2.8.3)
project(spencer_tracking_utils)
find_package(catkin REQUIRED COMPONENTS rospy roscpp tf spencer_tracking_msgs cmake_modules)
find_package(Eigen REQUIRED)
include_directories(${Eigen_INCLUDE_DIRS})
#catkin_python_setup()
catkin_package(
CATKIN_DEPENDS rospy roscpp spencer_tracking_msgs
)
include_directories(${catkin_INCLUDE_DIRS})
link_directories(${catkin_LIBRARY_DIRS})
set(SOURCE_DIR src/spencer_tracking_utils)
### Executable for logical filtering of two sets of TrackedPersons (logical AND / OR based upon track IDs) ###
add_executable(filter_tracks_logically
${SOURCE_DIR}/filter_tracks_logically.cpp
)
add_dependencies(filter_tracks_logically ${catkin_EXPORTED_TARGETS})
target_link_libraries(filter_tracks_logically ${catkin_LIBRARIES})
### Executable for filtering out any tracks which have not been confirmed visually (based upon modality of the associated CompositeDetectedPerson instance) ###
add_executable(filter_visually_confirmed_tracks
${SOURCE_DIR}/filter_visually_confirmed_tracks.cpp
)
add_dependencies(filter_visually_confirmed_tracks ${catkin_EXPORTED_TARGETS})
target_link_libraries(filter_visually_confirmed_tracks ${catkin_LIBRARIES})
### Executable for filtering non-moving targets ###
add_executable(filter_non_moving_targets
${SOURCE_DIR}/filter_non_moving_targets.cpp
)
add_dependencies(filter_non_moving_targets ${catkin_EXPORTED_TARGETS})
target_link_libraries(filter_non_moving_targets ${catkin_LIBRARIES})
### Executable to fix the orientation of non-moving targets (use previous orientation while target was still moving; if unknown, face towards sensor) ###
add_executable(fix_orientation_of_non_moving_targets
${SOURCE_DIR}/fix_orientation_of_non_moving_targets.cpp
)
add_dependencies(fix_orientation_of_non_moving_targets ${catkin_EXPORTED_TARGETS})
target_link_libraries(fix_orientation_of_non_moving_targets ${catkin_LIBRARIES})
### Executable to simulate detections from tracks ###
add_executable(tracks_to_detections
${SOURCE_DIR}/tracks_to_detections.cpp
)
add_dependencies(tracks_to_detections ${catkin_EXPORTED_TARGETS})
target_link_libraries(tracks_to_detections ${catkin_LIBRARIES})
### Executable to simulate occlusions among detections, by assuming robot in origin of specified sensor target frame ###
add_executable(simulate_occluded_detections_via_raytracing
${SOURCE_DIR}/simulate_occluded_detections_via_raytracing.cpp
)
add_dependencies(simulate_occluded_detections_via_raytracing ${catkin_EXPORTED_TARGETS})
target_link_libraries(simulate_occluded_detections_via_raytracing ${catkin_LIBRARIES})
### Executable to filter tracks based upon minimum/maximum distance to a given sensor frame origin ###
add_executable(filter_tracks_by_distance
${SOURCE_DIR}/filter_tracks_by_distance.cpp
)
add_dependencies(filter_tracks_by_distance ${catkin_EXPORTED_TARGETS})
target_link_libraries(filter_tracks_by_distance ${catkin_LIBRARIES})
### Executable to mark all input tracks as occluded and otherwise pass them through as-is ###
add_executable(mark_all_tracks_as_occluded
${SOURCE_DIR}/mark_all_tracks_as_occluded.cpp
)
add_dependencies(mark_all_tracks_as_occluded ${catkin_EXPORTED_TARGETS})
target_link_libraries(mark_all_tracks_as_occluded ${catkin_LIBRARIES})
### Executable to match existing tracks against laser points, by synchronizing with a laserscan and checking if it has laser points at the person's coordinates ###
### NOTE: It is assumed that the tracks have initially been marked as occluded by the mark_all_tracks_as_occluded executable ###
add_executable(match_tracks_against_laser
${SOURCE_DIR}/match_tracks_against_laser.cpp
)
add_dependencies(match_tracks_against_laser ${catkin_EXPORTED_TARGETS})
target_link_libraries(match_tracks_against_laser ${catkin_LIBRARIES})
### Executable to filter out detections which appear as obstacles in a static map ###
add_executable(filter_detections_by_static_map
${SOURCE_DIR}/filter_detections_by_static_map.cpp
)
add_dependencies(filter_detections_by_static_map ${catkin_EXPORTED_TARGETS})
target_link_libraries(filter_detections_by_static_map ${catkin_LIBRARIES})
### Executable to filter out detections which are outside of the horizontal FOV of a sensor ###
add_executable(filter_detections_by_fov
${SOURCE_DIR}/filter_detections_by_fov.cpp
)
add_dependencies(filter_detections_by_fov ${catkin_EXPORTED_TARGETS})
target_link_libraries(filter_detections_by_fov ${catkin_LIBRARIES})
### Executable to filter out or set to occluded tracks which are outside of the horizontal FOV of a sensor ###
add_executable(filter_tracks_by_fov
${SOURCE_DIR}/filter_tracks_by_fov.cpp
)
add_dependencies(filter_tracks_by_fov ${catkin_EXPORTED_TARGETS})
target_link_libraries(filter_tracks_by_fov ${catkin_LIBRARIES})