Skip to content

Commit

Permalink
Merge pull request #1 from usdot-fhwa-stol/feature/integrate-carma
Browse files Browse the repository at this point in the history
Define packages as ROS 2 carma packages
  • Loading branch information
JonSmet authored Aug 23, 2023
2 parents 67564a4 + cfb8b39 commit 73a1a0c
Show file tree
Hide file tree
Showing 30 changed files with 86 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ros2bag/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
<maintainer email="ros-tooling@googlegroups.com">ROS Tooling Working Group</maintainer>
<license>Apache License 2.0</license>

<build_depend>carma_cmake_common</build_depend>

<depend>ros2cli</depend>
<depend>rosbag2_py</depend>
<depend>rosbag2_transport</depend>
Expand Down
5 changes: 5 additions & 0 deletions rosbag2/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
cmake_minimum_required(VERSION 3.5)
project(rosbag2)

# Declare carma package and check ROS version
find_package(carma_cmake_common REQUIRED)
carma_check_ros_version(2)
carma_package()

find_package(ament_cmake REQUIRED)
ament_package()
1 change: 1 addition & 0 deletions rosbag2/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<license>Apache License 2.0</license>

<buildtool_depend>ament_cmake</buildtool_depend>
<build_depend>carma_cmake_common</build_depend>

<exec_depend>ros2bag</exec_depend>
<exec_depend>rosbag2_compression</exec_depend>
Expand Down
5 changes: 5 additions & 0 deletions rosbag2_compression/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
cmake_minimum_required(VERSION 3.5)
project(rosbag2_compression)

# Declare carma package and check ROS version
find_package(carma_cmake_common REQUIRED)
carma_check_ros_version(2)
carma_package()

# Default to C99
if(NOT CMAKE_C_STANDARD)
set(CMAKE_C_STANDARD 99)
Expand Down
1 change: 1 addition & 0 deletions rosbag2_compression/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<license>Apache License 2.0</license>

<buildtool_depend>ament_cmake</buildtool_depend>
<build_depend>carma_cmake_common</build_depend>

<depend>rcpputils</depend>
<depend>rcutils</depend>
Expand Down
5 changes: 5 additions & 0 deletions rosbag2_compression_zstd/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
cmake_minimum_required(VERSION 3.5)
project(rosbag2_compression_zstd)

# Declare carma package and check ROS version
find_package(carma_cmake_common REQUIRED)
carma_check_ros_version(2)
carma_package()

# Default to C99
if(NOT CMAKE_C_STANDARD)
set(CMAKE_C_STANDARD 99)
Expand Down
1 change: 1 addition & 0 deletions rosbag2_compression_zstd/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<author email="eknapp@amazon.com">Emerson Knapp</author>

<buildtool_depend>ament_cmake</buildtool_depend>
<build_depend>carma_cmake_common</build_depend>

<depend>pluginlib</depend>
<depend>rcpputils</depend>
Expand Down
5 changes: 5 additions & 0 deletions rosbag2_cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
cmake_minimum_required(VERSION 3.5)
project(rosbag2_cpp)

# Declare carma package and check ROS version
find_package(carma_cmake_common REQUIRED)
carma_check_ros_version(2)
carma_package()

# Default to C99
if(NOT CMAKE_C_STANDARD)
set(CMAKE_C_STANDARD 99)
Expand Down
1 change: 1 addition & 0 deletions rosbag2_cpp/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<license>Apache License 2.0</license>

<buildtool_depend>ament_cmake</buildtool_depend>
<build_depend>carma_cmake_common</build_depend>

<depend>ament_index_cpp</depend>
<depend>pluginlib</depend>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
cmake_minimum_required(VERSION 3.5)
project(rosbag2_performance_benchmarking)

# Declare carma package and check ROS version
find_package(carma_cmake_common REQUIRED)
carma_check_ros_version(2)
carma_package()

# Default to C++14
if(NOT CMAKE_CXX_STANDARD)
set(CMAKE_CXX_STANDARD 14)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<license>Apache License 2.0</license>

<buildtool_depend>ament_cmake</buildtool_depend>
<build_depend>carma_cmake_common</build_depend>

<depend>rclcpp</depend>
<depend>rosbag2_compression</depend>
Expand Down
5 changes: 5 additions & 0 deletions rosbag2_py/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
cmake_minimum_required(VERSION 3.5)
project(rosbag2_py)

# Declare carma package and check ROS version
find_package(carma_cmake_common REQUIRED)
carma_check_ros_version(2)
carma_package()

# Default to C99
if(NOT CMAKE_C_STANDARD)
set(CMAKE_C_STANDARD 99)
Expand Down
1 change: 1 addition & 0 deletions rosbag2_py/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
<buildtool_depend>ament_cmake_ros</buildtool_depend>
<buildtool_depend>ament_cmake_python</buildtool_depend>
<buildtool_depend>python_cmake_module</buildtool_depend>
<build_depend>carma_cmake_common</build_depend>

<depend>pybind11_vendor</depend>
<depend>rosbag2_compression</depend>
Expand Down
5 changes: 5 additions & 0 deletions rosbag2_storage/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
cmake_minimum_required(VERSION 3.5)
project(rosbag2_storage)

# Declare carma package and check ROS version
find_package(carma_cmake_common REQUIRED)
carma_check_ros_version(2)
carma_package()

# Default to C99
if(NOT CMAKE_C_STANDARD)
set(CMAKE_C_STANDARD 99)
Expand Down
1 change: 1 addition & 0 deletions rosbag2_storage/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<license>Apache License 2.0</license>

<buildtool_depend>ament_cmake</buildtool_depend>
<build_depend>carma_cmake_common</build_depend>

<depend>pluginlib</depend>
<depend>rcpputils</depend>
Expand Down
4 changes: 4 additions & 0 deletions rosbag2_storage_default_plugins/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
cmake_minimum_required(VERSION 3.5)
project(rosbag2_storage_default_plugins)

find_package(carma_cmake_common REQUIRED)
carma_check_ros_version(2)
carma_package()

# Default to C99
if(NOT CMAKE_C_STANDARD)
set(CMAKE_C_STANDARD 99)
Expand Down
1 change: 1 addition & 0 deletions rosbag2_storage_default_plugins/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<license>Apache License 2.0</license>

<buildtool_depend>ament_cmake</buildtool_depend>
<build_depend>carma_cmake_common</build_depend>

<depend>pluginlib</depend>
<depend>rcpputils</depend>
Expand Down
4 changes: 4 additions & 0 deletions rosbag2_storage_evaluation/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ cmake_minimum_required(VERSION 3.5)

project(ros2_rosbag_evaluation)

find_package(carma_cmake_common REQUIRED)
carma_check_ros_version(2)
carma_package()

set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_FLAGS "-O3")
set(BUILD_SHARED_LIBS ON)
Expand Down
4 changes: 4 additions & 0 deletions rosbag2_test_common/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
cmake_minimum_required(VERSION 3.5)
project(rosbag2_test_common)

find_package(carma_cmake_common REQUIRED)
carma_check_ros_version(2)
carma_package()

# Default to C99
if(NOT CMAKE_C_STANDARD)
set(CMAKE_C_STANDARD 99)
Expand Down
1 change: 1 addition & 0 deletions rosbag2_test_common/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<license>Apache License 2.0</license>

<buildtool_depend>ament_cmake</buildtool_depend>
<build_depend>carma_cmake_common</build_depend>

<build_depend>rclcpp</build_depend>
<build_depend>rcutils</build_depend>
Expand Down
5 changes: 5 additions & 0 deletions rosbag2_tests/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
cmake_minimum_required(VERSION 3.5)
project(rosbag2_tests)

# Declare carma package and check ROS version
find_package(carma_cmake_common REQUIRED)
carma_check_ros_version(2)
carma_package()

add_definitions(-D_SRC_RESOURCES_DIR_PATH="${CMAKE_CURRENT_SOURCE_DIR}/resources")

# Default to C99
Expand Down
1 change: 1 addition & 0 deletions rosbag2_tests/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<license>Apache License 2.0</license>

<buildtool_depend>ament_cmake</buildtool_depend>
<build_depend>carma_cmake_common</build_depend>

<depend>ament_index_cpp</depend>

Expand Down
4 changes: 4 additions & 0 deletions rosbag2_transport/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
cmake_minimum_required(VERSION 3.5)
project(rosbag2_transport)

find_package(carma_cmake_common REQUIRED)
carma_check_ros_version(2)
carma_package()

# Default to C99
if(NOT CMAKE_C_STANDARD)
set(CMAKE_C_STANDARD 99)
Expand Down
1 change: 1 addition & 0 deletions rosbag2_transport/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<license>Apache License 2.0</license>

<buildtool_depend>ament_cmake_ros</buildtool_depend>
<build_depend>carma_cmake_common</build_depend>

<depend>python_cmake_module</depend>
<depend>rclcpp</depend>
Expand Down
5 changes: 5 additions & 0 deletions shared_queues_vendor/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
cmake_minimum_required(VERSION 3.5)
project(shared_queues_vendor)

# Declare carma package and check ROS version
find_package(carma_cmake_common REQUIRED)
carma_check_ros_version(2)
carma_package()

find_package(ament_cmake REQUIRED)

include(ExternalProject)
Expand Down
1 change: 1 addition & 0 deletions shared_queues_vendor/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<license>Apache License 2.0</license>

<buildtool_depend>ament_cmake</buildtool_depend>
<build_depend>carma_cmake_common</build_depend>

<export>
<build_type>ament_cmake</build_type>
Expand Down
5 changes: 5 additions & 0 deletions sqlite3_vendor/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
cmake_minimum_required(VERSION 3.5)
project(sqlite3_vendor)

# Declare carma package and check ROS version
find_package(carma_cmake_common REQUIRED)
carma_check_ros_version(2)
carma_package()

find_package(ament_cmake REQUIRED)

option(FORCE_BUILD_VENDOR_PKG
Expand Down
1 change: 1 addition & 0 deletions sqlite3_vendor/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<license>Apache License 2.0</license>

<buildtool_depend>ament_cmake</buildtool_depend>
<build_depend>carma_cmake_common</build_depend>

<depend>libsqlite3-dev</depend>

Expand Down
4 changes: 4 additions & 0 deletions zstd_vendor/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ cmake_minimum_required(VERSION 3.7)

project(zstd_vendor)

find_package(carma_cmake_common REQUIRED)
carma_check_ros_version(2)
carma_package()

find_package(ament_cmake REQUIRED)

option(FORCE_BUILD_VENDOR_PKG
Expand Down
1 change: 1 addition & 0 deletions zstd_vendor/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
<url type="website">https://facebook.github.io/zstd/</url>

<buildtool_depend>ament_cmake</buildtool_depend>
<build_depend>carma_cmake_common</build_depend>

<depend>libzstd-dev</depend>

Expand Down

0 comments on commit 73a1a0c

Please sign in to comment.