Skip to content

Commit cbf55da

Browse files
committed
Initial commit
0 parents  commit cbf55da

File tree

6 files changed

+549
-0
lines changed

6 files changed

+549
-0
lines changed

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto

CMakeLists.txt

Lines changed: 204 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,204 @@
1+
cmake_minimum_required(VERSION 3.0.2)
2+
project(uwb_localization)
3+
4+
## Compile as C++11, supported in ROS Kinetic and newer
5+
# add_compile_options(-std=c++11)
6+
7+
## Find catkin macros and libraries
8+
## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz)
9+
## is used, also find other catkin packages
10+
find_package(catkin REQUIRED COMPONENTS
11+
rospy
12+
)
13+
14+
## System dependencies are found with CMake's conventions
15+
# find_package(Boost REQUIRED COMPONENTS system)
16+
17+
18+
## Uncomment this if the package has a setup.py. This macro ensures
19+
## modules and global scripts declared therein get installed
20+
## See http://ros.org/doc/api/catkin/html/user_guide/setup_dot_py.html
21+
# catkin_python_setup()
22+
23+
################################################
24+
## Declare ROS messages, services and actions ##
25+
################################################
26+
27+
## To declare and build messages, services or actions from within this
28+
## package, follow these steps:
29+
## * Let MSG_DEP_SET be the set of packages whose message types you use in
30+
## your messages/services/actions (e.g. std_msgs, actionlib_msgs, ...).
31+
## * In the file package.xml:
32+
## * add a build_depend tag for "message_generation"
33+
## * add a build_depend and a exec_depend tag for each package in MSG_DEP_SET
34+
## * If MSG_DEP_SET isn't empty the following dependency has been pulled in
35+
## but can be declared for certainty nonetheless:
36+
## * add a exec_depend tag for "message_runtime"
37+
## * In this file (CMakeLists.txt):
38+
## * add "message_generation" and every package in MSG_DEP_SET to
39+
## find_package(catkin REQUIRED COMPONENTS ...)
40+
## * add "message_runtime" and every package in MSG_DEP_SET to
41+
## catkin_package(CATKIN_DEPENDS ...)
42+
## * uncomment the add_*_files sections below as needed
43+
## and list every .msg/.srv/.action file to be processed
44+
## * uncomment the generate_messages entry below
45+
## * add every package in MSG_DEP_SET to generate_messages(DEPENDENCIES ...)
46+
47+
## Generate messages in the 'msg' folder
48+
# add_message_files(
49+
# FILES
50+
# Message1.msg
51+
# Message2.msg
52+
# )
53+
54+
## Generate services in the 'srv' folder
55+
# add_service_files(
56+
# FILES
57+
# Service1.srv
58+
# Service2.srv
59+
# )
60+
61+
## Generate actions in the 'action' folder
62+
# add_action_files(
63+
# FILES
64+
# Action1.action
65+
# Action2.action
66+
# )
67+
68+
## Generate added messages and services with any dependencies listed here
69+
# generate_messages(
70+
# DEPENDENCIES
71+
# std_msgs # Or other packages containing msgs
72+
# )
73+
74+
################################################
75+
## Declare ROS dynamic reconfigure parameters ##
76+
################################################
77+
78+
## To declare and build dynamic reconfigure parameters within this
79+
## package, follow these steps:
80+
## * In the file package.xml:
81+
## * add a build_depend and a exec_depend tag for "dynamic_reconfigure"
82+
## * In this file (CMakeLists.txt):
83+
## * add "dynamic_reconfigure" to
84+
## find_package(catkin REQUIRED COMPONENTS ...)
85+
## * uncomment the "generate_dynamic_reconfigure_options" section below
86+
## and list every .cfg file to be processed
87+
88+
## Generate dynamic reconfigure parameters in the 'cfg' folder
89+
# generate_dynamic_reconfigure_options(
90+
# cfg/DynReconf1.cfg
91+
# cfg/DynReconf2.cfg
92+
# )
93+
94+
###################################
95+
## catkin specific configuration ##
96+
###################################
97+
## The catkin_package macro generates cmake config files for your package
98+
## Declare things to be passed to dependent projects
99+
## INCLUDE_DIRS: uncomment this if your package contains header files
100+
## LIBRARIES: libraries you create in this project that dependent projects also need
101+
## CATKIN_DEPENDS: catkin_packages dependent projects also need
102+
## DEPENDS: system dependencies of this project that dependent projects also need
103+
catkin_package(
104+
# INCLUDE_DIRS include
105+
# LIBRARIES uwb_localization
106+
# CATKIN_DEPENDS rospy
107+
# DEPENDS system_lib
108+
)
109+
110+
###########
111+
## Build ##
112+
###########
113+
114+
## Specify additional locations of header files
115+
## Your package locations should be listed before other locations
116+
include_directories(
117+
# include
118+
${catkin_INCLUDE_DIRS}
119+
)
120+
121+
## Declare a C++ library
122+
# add_library(${PROJECT_NAME}
123+
# src/${PROJECT_NAME}/uwb_localization.cpp
124+
# )
125+
126+
## Add cmake target dependencies of the library
127+
## as an example, code may need to be generated before libraries
128+
## either from message generation or dynamic reconfigure
129+
# add_dependencies(${PROJECT_NAME} ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
130+
131+
## Declare a C++ executable
132+
## With catkin_make all packages are built within a single CMake context
133+
## The recommended prefix ensures that target names across packages don't collide
134+
# add_executable(${PROJECT_NAME}_node src/uwb_localization_node.cpp)
135+
136+
## Rename C++ executable without prefix
137+
## The above recommended prefix causes long target names, the following renames the
138+
## target back to the shorter version for ease of user use
139+
## e.g. "rosrun someones_pkg node" instead of "rosrun someones_pkg someones_pkg_node"
140+
# set_target_properties(${PROJECT_NAME}_node PROPERTIES OUTPUT_NAME node PREFIX "")
141+
142+
## Add cmake target dependencies of the executable
143+
## same as for the library above
144+
# add_dependencies(${PROJECT_NAME}_node ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
145+
146+
## Specify libraries to link a library or executable target against
147+
# target_link_libraries(${PROJECT_NAME}_node
148+
# ${catkin_LIBRARIES}
149+
# )
150+
151+
#############
152+
## Install ##
153+
#############
154+
155+
# all install targets should use catkin DESTINATION variables
156+
# See http://ros.org/doc/api/catkin/html/adv_user_guide/variables.html
157+
158+
## Mark executable scripts (Python etc.) for installation
159+
## in contrast to setup.py, you can choose the destination
160+
# catkin_install_python(PROGRAMS
161+
# scripts/my_python_script
162+
# DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
163+
# )
164+
165+
## Mark executables for installation
166+
## See http://docs.ros.org/melodic/api/catkin/html/howto/format1/building_executables.html
167+
# install(TARGETS ${PROJECT_NAME}_node
168+
# RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
169+
# )
170+
171+
## Mark libraries for installation
172+
## See http://docs.ros.org/melodic/api/catkin/html/howto/format1/building_libraries.html
173+
# install(TARGETS ${PROJECT_NAME}
174+
# ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
175+
# LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
176+
# RUNTIME DESTINATION ${CATKIN_GLOBAL_BIN_DESTINATION}
177+
# )
178+
179+
## Mark cpp header files for installation
180+
# install(DIRECTORY include/${PROJECT_NAME}/
181+
# DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION}
182+
# FILES_MATCHING PATTERN "*.h"
183+
# PATTERN ".svn" EXCLUDE
184+
# )
185+
186+
## Mark other files for installation (e.g. launch and bag files, etc.)
187+
# install(FILES
188+
# # myfile1
189+
# # myfile2
190+
# DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
191+
# )
192+
193+
#############
194+
## Testing ##
195+
#############
196+
197+
## Add gtest based cpp test target and link libraries
198+
# catkin_add_gtest(${PROJECT_NAME}-test test/test_uwb_localization.cpp)
199+
# if(TARGET ${PROJECT_NAME}-test)
200+
# target_link_libraries(${PROJECT_NAME}-test ${PROJECT_NAME})
201+
# endif()
202+
203+
## Add folders to be run by python nosetests
204+
# catkin_add_nosetests(test)

0 commit comments

Comments
 (0)