From 2d421cd5d15b00b82b4b70f10d04418c3a85b531 Mon Sep 17 00:00:00 2001 From: franklinselva Date: Fri, 6 Sep 2024 09:13:26 +0200 Subject: [PATCH] Initial Commit for perseverance rover demo --- perseverance_common/CMakeLists.txt | 26 ++++++++++++++++++++++++++ perseverance_common/package.xml | 18 ++++++++++++++++++ perseverance_demo/CMakeLists.txt | 26 ++++++++++++++++++++++++++ perseverance_demo/package.xml | 18 ++++++++++++++++++ 4 files changed, 88 insertions(+) create mode 100644 perseverance_common/CMakeLists.txt create mode 100644 perseverance_common/package.xml create mode 100644 perseverance_demo/CMakeLists.txt create mode 100644 perseverance_demo/package.xml diff --git a/perseverance_common/CMakeLists.txt b/perseverance_common/CMakeLists.txt new file mode 100644 index 00000000..e1c668d8 --- /dev/null +++ b/perseverance_common/CMakeLists.txt @@ -0,0 +1,26 @@ +cmake_minimum_required(VERSION 3.8) +project(perseverance_common) + +if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang") + add_compile_options(-Wall -Wextra -Wpedantic) +endif() + +# find dependencies +find_package(ament_cmake REQUIRED) +# uncomment the following section in order to fill in +# further dependencies manually. +# find_package( REQUIRED) + +if(BUILD_TESTING) + find_package(ament_lint_auto REQUIRED) + # the following line skips the linter which checks for copyrights + # comment the line when a copyright and license is added to all source files + set(ament_cmake_copyright_FOUND TRUE) + # the following line skips cpplint (only works in a git repo) + # comment the line when this package is in a git repo and when + # a copyright and license is added to all source files + set(ament_cmake_cpplint_FOUND TRUE) + ament_lint_auto_find_test_dependencies() +endif() + +ament_package() diff --git a/perseverance_common/package.xml b/perseverance_common/package.xml new file mode 100644 index 00000000..9706d297 --- /dev/null +++ b/perseverance_common/package.xml @@ -0,0 +1,18 @@ + + + + perseverance_common + 0.0.0 + TODO: Package description + franklinselva + TODO: License declaration + + ament_cmake + + ament_lint_auto + ament_lint_common + + + ament_cmake + + diff --git a/perseverance_demo/CMakeLists.txt b/perseverance_demo/CMakeLists.txt new file mode 100644 index 00000000..899b9855 --- /dev/null +++ b/perseverance_demo/CMakeLists.txt @@ -0,0 +1,26 @@ +cmake_minimum_required(VERSION 3.8) +project(perseverance_demo) + +if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang") + add_compile_options(-Wall -Wextra -Wpedantic) +endif() + +# find dependencies +find_package(ament_cmake REQUIRED) +# uncomment the following section in order to fill in +# further dependencies manually. +# find_package( REQUIRED) + +if(BUILD_TESTING) + find_package(ament_lint_auto REQUIRED) + # the following line skips the linter which checks for copyrights + # comment the line when a copyright and license is added to all source files + set(ament_cmake_copyright_FOUND TRUE) + # the following line skips cpplint (only works in a git repo) + # comment the line when this package is in a git repo and when + # a copyright and license is added to all source files + set(ament_cmake_cpplint_FOUND TRUE) + ament_lint_auto_find_test_dependencies() +endif() + +ament_package() diff --git a/perseverance_demo/package.xml b/perseverance_demo/package.xml new file mode 100644 index 00000000..a0992029 --- /dev/null +++ b/perseverance_demo/package.xml @@ -0,0 +1,18 @@ + + + + perseverance_demo + 0.0.0 + TODO: Package description + franklinselva + TODO: License declaration + + ament_cmake + + ament_lint_auto + ament_lint_common + + + ament_cmake + +