Skip to content

Commit

Permalink
Setup pandora_sensor_planner package for development
Browse files Browse the repository at this point in the history
  • Loading branch information
tsirif committed May 22, 2015
1 parent 433e7f4 commit 9674256
Show file tree
Hide file tree
Showing 8 changed files with 172 additions and 0 deletions.
58 changes: 58 additions & 0 deletions pandora_sensor_planner/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
cmake_minimum_required(VERSION 2.8.3)
project(pandora_sensor_planner)

################################################################################
# Find Package #
################################################################################
# - Use `find_package` command to bring dependencies
# - Use `generate_dynamic_reconfigure_options` to setup dynamic reconfigure
# - Set flags if needed

################################################################################
# Catkin Package Setup #
################################################################################
# - Use `catkin_package` to declare this catkin package and how it interacts
# with other packages in the catkin package ecosystem
# - Use `catkin_python_setup` to setup catkin python ecosystem with ./setup.py
# - Set `include_directories`
# - Set `link_directories` (if necessary, usually avoid to if concerns catkin
# libraries)

################################################################################
# Libraries #
################################################################################
# - Declare software libraries that will be made in this package and their
# target names with `add_library`
# - Set `target_link_libraries` for each library target
# - Set `add_dependencies`, if necessary, to `${catkin_EXPORTED_TARGETS}` or
# others

################################################################################
# Executables #
################################################################################
# - Declare software executables that will be made in this package and their
# target names with `add_executable`
# - Set `target_link_libraries` for each executable target

################################################################################
# Roslint
################################################################################
# - Setup roslint for test code with `roslint_cpp`, `roslint_python` or
# `roslint_custom`

################################################################################
# Testing #
################################################################################
# - Declare test subdirectory, in order not to pollute source code's
# CMakeLists.txt with it

if(CATKIN_ENABLE_TESTING)
# add_subdirectory(test)
endif()

################################################################################
# Install Package #
################################################################################
# - Install directory of header files with `install(DIRECTORY ...)`
# - Install targets of exported libraries with `install(TARGETS ...)`
# - Install targets of executables with `install(TARGETS ...)`
Empty file.
Empty file.
6 changes: 6 additions & 0 deletions pandora_sensor_planner/interfaces.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<package>

<!-- Declare Nodes and inside them declare Subscribers, Publisher,
ActionServers, ActionClients, ServiceServers and ServiceClients -->

</package>
40 changes: 40 additions & 0 deletions pandora_sensor_planner/package.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<package format="2">
<name>pandora_sensor_planner</name>
<version>0.0.0</version>
<description>Contains modules for PANDORA's UGV sensor planning for exploration</description>

<maintainer email='[email protected]'>Tsirigotis Christos</maintainer>
<maintainer email='[email protected]'>Lykartsis Ioannis</maintainer>

<license>BSD</license>

<url type="bugtracker">https://github.com/pandora-auth-ros-pkg/pandora_discovery/issues</url>
<url type="repository">https://github.com/pandora-auth-ros-pkg/pandora_discovery.git</url>

<author>Tsirigotis Christos</author>
<author>Lykartsis Ioannis</author>

<!--
Buildtool Dependencies
-->
<buildtool_depend>catkin</buildtool_depend>

<!--
Build Dependencies
-->

<!--
Exec Dependencies
-->

<!--
Dependencies
-->

<!--
Test Dependencies
-->

<export>
</export>
</package>
Empty file.
Empty file.
68 changes: 68 additions & 0 deletions pandora_sensor_planner/test/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
################################################################################
# Find Package #
################################################################################
# - Use `find_package` command to bring dependencies. Don't override catkin
# dependency group. This is declared by package's main CMakeLists.txt
# - Set flags if needed
# - Reset `include_directories`. Don't forget to list again the already set
# ${catkin_INCLUDE_DIRS} together with those you will be newly declaring

# find_package(rostest REQUIRED)
# find_package(pandora_testing_tools REQUIRED)
# find_package(pandora_cmake_tools REQUIRED)

# include_directories(
# ${pandora_testing_tools_INCLUDE_DIRS}
# ${catkin_INCLUDE_DIRS}
# )

################################################################################
# Tests #
################################################################################

################################################################################
# Download Test Data #
################################################################################
# - Use `catkin_download_test_data` to download a specific file from the web
# which is to be used for testing
# - Use `download_extra_data` to download a testing data base from the web
# according to an `EXTRA_FILES` yaml file
# - Prefer `${CATKIN_DEVEL_PREFIX}/${CATKIN_PACKAGE_SHARE_DESTINATION}/test` as
# a testing data `DESTINATION`, so as not to pollute catkin's src directory
# with extra data
# - DON'N forget to `find_package(pandora_cmake_tools REQUIRED)` if you intend
# to use `download_extra_data`

################################################################################
# Unit Tests #
################################################################################
# - Use `catkin_add_gtest` to declare test targets for cpp libraries
# - Use `catkin_add_nosetests` to declare test targets for python libraries
# - All unit tests' code should be listed under ./unit subdirectory
# - Set `target_link_libraries` for each test target
# - Set `add_dependencies`, if necessary,
# to ${catkin_EXPORTED_TARGETS} or others
# - For gtests you can add `gtest_main` as a target link library to enable its
# executation when `catkin_make run_tests` is invoked

################################################################################
# Functional Tests #
################################################################################
# - Use `add_rostest` to declare that a functional test launch file will be
# executed when `catkin_make run_tests` is invoked. Convenient for functional
# tests written in python
# - Use 'add_rostest_gtest` to declare a functional test which is made from
# gtest cpp code by `add_rostest_gtest(my_gtest_rostest_target
# functional/launch/my_gtest_rostest.launch
# functional/src/my_gtest_rostest.cpp [more cpp files])`
# - Set `target_link_libraries` for each functional test target. By ros indigo,
# you can use `DEPENDENCIES` to declare a rostest target dependency
# - DON'T forget to `find_package(rostest REQUIRED)` if you intend to do
# functional testing

################################################################################
# Roslint
################################################################################
# - Setup roslint for test code with `roslint_cpp`, `roslint_python` or
# `roslint_custom`
# - You can call `roslint_add_test` also

0 comments on commit 9674256

Please sign in to comment.