File tree 16 files changed +62
-6
lines changed
rosbag2_performance/rosbag2_performance_benchmarking
rosbag2_storage_default_plugins
include/rosbag2_test_common
16 files changed +62
-6
lines changed Original file line number Diff line number Diff line change @@ -2,4 +2,7 @@ cmake_minimum_required(VERSION 3.5)
2
2
project (rosbag2)
3
3
4
4
find_package (ament_cmake REQUIRED)
5
+ # workaround so that package.xml can use _future, but other projects can find this without the suffix
6
+ _ament_package_xml(${CMAKE_CURRENT_BINARY_DIR} /ament_cmake_core)
7
+ set (_AMENT_PACKAGE_NAME ${PROJECT_NAME} )
5
8
ament_package()
Original file line number Diff line number Diff line change @@ -26,6 +26,9 @@ find_package(rcpputils REQUIRED)
26
26
find_package (rcutils REQUIRED)
27
27
find_package (rosbag2_cpp)
28
28
find_package (rosbag2_storage REQUIRED)
29
+ # workaround so that package.xml can use _future, but other projects can find this without the suffix
30
+ _ament_package_xml(${CMAKE_CURRENT_BINARY_DIR} /ament_cmake_core)
31
+ set (_AMENT_PACKAGE_NAME ${PROJECT_NAME} )
29
32
30
33
add_library (${PROJECT_NAME}
31
34
SHARED
Original file line number Diff line number Diff line change @@ -26,6 +26,9 @@ find_package(rcpputils REQUIRED)
26
26
find_package (rosbag2_compression REQUIRED)
27
27
find_package (zstd_vendor REQUIRED)
28
28
find_package (zstd REQUIRED)
29
+ # workaround so that package.xml can use _future, but other projects can find this without the suffix
30
+ _ament_package_xml(${CMAKE_CURRENT_BINARY_DIR} /ament_cmake_core)
31
+ set (_AMENT_PACKAGE_NAME ${PROJECT_NAME} )
29
32
30
33
add_library (${PROJECT_NAME} SHARED
31
34
src/rosbag2_compression_zstd/compression_utils.cpp
Original file line number Diff line number Diff line change @@ -45,6 +45,9 @@ find_package(rosidl_runtime_c REQUIRED)
45
45
find_package (rosidl_runtime_cpp REQUIRED)
46
46
find_package (rosidl_typesupport_cpp REQUIRED)
47
47
find_package (rosidl_typesupport_introspection_cpp REQUIRED)
48
+ # workaround so that package.xml can use _future, but other projects can find this without the suffix
49
+ _ament_package_xml(${CMAKE_CURRENT_BINARY_DIR} /ament_cmake_core)
50
+ set (_AMENT_PACKAGE_NAME ${PROJECT_NAME} )
48
51
49
52
add_library (${PROJECT_NAME} SHARED
50
53
src/rosbag2_cpp/cache /cache_consumer.cpp
Original file line number Diff line number Diff line change @@ -11,6 +11,9 @@ if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
11
11
endif ()
12
12
13
13
find_package (ament_cmake REQUIRED)
14
+ # workaround so that package.xml can use _future, but other projects can find this without the suffix
15
+ _ament_package_xml(${CMAKE_CURRENT_BINARY_DIR} /ament_cmake_core)
16
+ set (_AMENT_PACKAGE_NAME ${PROJECT_NAME} )
14
17
15
18
if (BUILD_ROSBAG2_BENCHMARKS)
16
19
find_package (rclcpp REQUIRED)
Original file line number Diff line number Diff line change @@ -21,6 +21,9 @@ find_package(ament_cmake_ros REQUIRED)
21
21
find_package (rosbag2_compression REQUIRED)
22
22
find_package (rosbag2_cpp REQUIRED)
23
23
find_package (rosbag2_storage REQUIRED)
24
+ # workaround so that package.xml can use _future, but other projects can find this without the suffix
25
+ _ament_package_xml(${CMAKE_CURRENT_BINARY_DIR} /ament_cmake_core)
26
+ set (_AMENT_PACKAGE_NAME ${PROJECT_NAME} )
24
27
25
28
# Find python before pybind11
26
29
find_package (python_cmake_module REQUIRED)
Original file line number Diff line number Diff line change @@ -25,6 +25,9 @@ find_package(pluginlib REQUIRED)
25
25
find_package (rcpputils REQUIRED)
26
26
find_package (rcutils REQUIRED)
27
27
find_package (yaml_cpp_vendor REQUIRED)
28
+ # workaround so that package.xml can use _future, but other projects can find this without the suffix
29
+ _ament_package_xml(${CMAKE_CURRENT_BINARY_DIR} /ament_cmake_core)
30
+ set (_AMENT_PACKAGE_NAME ${PROJECT_NAME} )
28
31
29
32
add_library (
30
33
${PROJECT_NAME}
Original file line number Diff line number Diff line change @@ -28,6 +28,9 @@ find_package(rosbag2_storage REQUIRED)
28
28
find_package (sqlite3_vendor REQUIRED)
29
29
find_package (SQLite3 REQUIRED) # provided by sqlite3_vendor
30
30
find_package (yaml_cpp_vendor REQUIRED)
31
+ # workaround so that package.xml can use _future, but other projects can find this without the suffix
32
+ _ament_package_xml(${CMAKE_CURRENT_BINARY_DIR} /ament_cmake_core)
33
+ set (_AMENT_PACKAGE_NAME ${PROJECT_NAME} )
31
34
32
35
add_library (${PROJECT_NAME} SHARED
33
36
src/rosbag2_storage_default_plugins/sqlite/sqlite_wrapper.cpp
Original file line number Diff line number Diff line change @@ -24,6 +24,10 @@ find_package(ament_cmake REQUIRED)
24
24
find_package (rclcpp REQUIRED)
25
25
find_package (rcutils REQUIRED)
26
26
27
+ # workaround so that package.xml can use _future, but other projects can find this without the suffix
28
+ _ament_package_xml(${CMAKE_CURRENT_BINARY_DIR} /ament_cmake_core)
29
+ set (_AMENT_PACKAGE_NAME ${PROJECT_NAME} )
30
+
27
31
add_library (${PROJECT_NAME} INTERFACE )
28
32
target_include_directories (${PROJECT_NAME} INTERFACE
29
33
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR} /include >
@@ -46,4 +50,5 @@ ament_export_dependencies(rclcpp rcutils)
46
50
47
51
ament_export_include_directories(include )
48
52
ament_export_targets(export_${PROJECT_NAME} )
53
+
49
54
ament_package()
Original file line number Diff line number Diff line change @@ -31,7 +31,18 @@ class TemporaryDirectoryFixture : public Test
31
31
public:
32
32
TemporaryDirectoryFixture ()
33
33
{
34
- temporary_dir_path_ = rcpputils::fs::create_temp_directory (" tmp_test_dir_" ).string ();
34
+ // Foxy compatibility. Adapt for lack of https://github.com/ros2/rcpputils/pull/126
35
+ char template_char[] = " tmp_test_dir.XXXXXX" ;
36
+ #ifdef _WIN32
37
+ char temp_path[255 ];
38
+ GetTempPathA (255 , temp_path);
39
+ _mktemp_s (template_char, strnlen (template_char, 20 ) + 1 );
40
+ temporary_dir_path_ = std::string (temp_path) + std::string (template_char);
41
+ _mkdir (temporary_dir_path_.c_str ());
42
+ #else
43
+ char * dir_name = mkdtemp (template_char);
44
+ temporary_dir_path_ = dir_name;
45
+ #endif
35
46
}
36
47
37
48
~TemporaryDirectoryFixture () override
Original file line number Diff line number Diff line change @@ -24,6 +24,9 @@ endif()
24
24
25
25
find_package (ament_cmake REQUIRED)
26
26
find_package (ament_index_cpp REQUIRED)
27
+ # workaround so that package.xml can use _future, but other projects can find this without the suffix
28
+ _ament_package_xml(${CMAKE_CURRENT_BINARY_DIR} /ament_cmake_core)
29
+ set (_AMENT_PACKAGE_NAME ${PROJECT_NAME} )
27
30
28
31
if (BUILD_TESTING)
29
32
find_package (ament_cmake_gmock REQUIRED)
Original file line number Diff line number Diff line change @@ -32,6 +32,9 @@ find_package(rosbag2_storage REQUIRED)
32
32
find_package (rmw_implementation_cmake REQUIRED)
33
33
find_package (shared_queues_vendor REQUIRED)
34
34
find_package (yaml_cpp_vendor REQUIRED)
35
+ # workaround so that package.xml can use _future, but other projects can find this without the suffix
36
+ _ament_package_xml(${CMAKE_CURRENT_BINARY_DIR} /ament_cmake_core)
37
+ set (_AMENT_PACKAGE_NAME ${PROJECT_NAME} )
35
38
36
39
add_library (${PROJECT_NAME} SHARED
37
40
src/rosbag2_transport/player.cpp
Original file line number Diff line number Diff line change 14
14
15
15
<depend >python_cmake_module</depend >
16
16
<depend >rclcpp</depend >
17
- <depend >rosbag2_compression </depend >
18
- <depend >rosbag2_cpp </depend >
19
- <depend >rosbag2_storage </depend >
17
+ <depend >rosbag2_compression_future </depend >
18
+ <depend >rosbag2_cpp_future </depend >
19
+ <depend >rosbag2_storage_future </depend >
20
20
<depend >rmw</depend >
21
21
<depend >rpyutils</depend >
22
- <depend >shared_queues_vendor </depend >
22
+ <depend >shared_queues_vendor_future </depend >
23
23
<depend >yaml_cpp_vendor</depend >
24
24
25
25
<test_depend >ament_cmake_gmock</test_depend >
26
26
<test_depend >ament_index_cpp</test_depend >
27
27
<test_depend >ament_lint_auto</test_depend >
28
28
<test_depend >ament_lint_common</test_depend >
29
29
<test_depend >rmw_implementation_cmake</test_depend >
30
- <test_depend >rosbag2_test_common </test_depend >
30
+ <test_depend >rosbag2_test_common_future </test_depend >
31
31
<test_depend >test_msgs</test_depend >
32
32
33
33
<export >
Original file line number Diff line number Diff line change @@ -2,6 +2,9 @@ cmake_minimum_required(VERSION 3.5)
2
2
project (shared_queues_vendor)
3
3
4
4
find_package (ament_cmake REQUIRED)
5
+ # workaround so that package.xml can use _future, but other projects can find this without the suffix
6
+ _ament_package_xml(${CMAKE_CURRENT_BINARY_DIR} /ament_cmake_core)
7
+ set (_AMENT_PACKAGE_NAME ${PROJECT_NAME} )
5
8
6
9
include (ExternalProject)
7
10
# Single producer single consumer queue by moodycamel - header only, don't build, install
@@ -54,4 +57,5 @@ install(
54
57
55
58
ament_export_include_directories(include )
56
59
ament_export_targets(export_${PROJECT_NAME} )
60
+
57
61
ament_package()
Original file line number Diff line number Diff line change @@ -2,6 +2,9 @@ cmake_minimum_required(VERSION 3.5)
2
2
project (sqlite3_vendor)
3
3
4
4
find_package (ament_cmake REQUIRED)
5
+ # workaround so that package.xml can use _future, but other projects can find this without the suffix
6
+ _ament_package_xml(${CMAKE_CURRENT_BINARY_DIR} /ament_cmake_core)
7
+ set (_AMENT_PACKAGE_NAME ${PROJECT_NAME} )
5
8
6
9
option (FORCE_BUILD_VENDOR_PKG
7
10
"Build SQLite3 from source, even if system-installed package is available"
Original file line number Diff line number Diff line change @@ -3,6 +3,9 @@ cmake_minimum_required(VERSION 3.7)
3
3
project (zstd_vendor)
4
4
5
5
find_package (ament_cmake REQUIRED)
6
+ # workaround so that package.xml can use _future, but other projects can find this without the suffix
7
+ _ament_package_xml(${CMAKE_CURRENT_BINARY_DIR} /ament_cmake_core)
8
+ set (_AMENT_PACKAGE_NAME ${PROJECT_NAME} )
6
9
7
10
option (FORCE_BUILD_VENDOR_PKG
8
11
"Build zstd from source, even if system-installed package is available"
You can’t perform that action at this time.
0 commit comments