-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
209 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,4 @@ | |
#pragma once | ||
|
||
#include <intrometry/intrometry.h> | ||
#include "sink.h" | ||
#include <intrometry/pjmsg_mcap/sink.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,4 @@ | |
#pragma once | ||
|
||
#include <intrometry/intrometry.h> | ||
#include "sink.h" | ||
#include <intrometry/pjmsg_topic/sink.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
cmake_minimum_required(VERSION 3.8) | ||
project(intrometry_tests VERSION 1.0.0 LANGUAGES CXX) | ||
|
||
if(CCWS_CXX_FLAGS) | ||
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CCWS_CXX_FLAGS}") | ||
set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${CCWS_LINKER_FLAGS}") | ||
else() | ||
set(CMAKE_POSITION_INDEPENDENT_CODE ON) | ||
set(CMAKE_VERBOSE_MAKEFILE ON) | ||
|
||
if(NOT CMAKE_CXX_STANDARD) | ||
set(CMAKE_CXX_STANDARD 17) | ||
set(CMAKE_CXX_STANDARD_REQUIRED ON) | ||
endif() | ||
|
||
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang") | ||
add_compile_options(-Wall -Wextra -Wpedantic -Werror) | ||
endif() | ||
endif() | ||
|
||
if(NOT DEFINED BUILD_TESTING OR BUILD_TESTING) | ||
enable_testing() | ||
add_subdirectory(test) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?xml version="1.0"?> | ||
<package format="2"> | ||
<name>intrometry_tests</name> | ||
<version>1.0.0</version> | ||
<description>Intrometry tests</description> | ||
<maintainer email="[email protected]">Alexander Sherikov</maintainer> | ||
<author email="[email protected]">Alexander Sherikov</author> | ||
<license>Apache 2.0</license> | ||
|
||
<export> | ||
<build_type>cmake</build_type> | ||
</export> | ||
|
||
<depend>thread_supervisor</depend> | ||
<depend>intrometry_pjmsg_mcap</depend> | ||
<depend>intrometry_pjmsg_topic</depend> | ||
|
||
<test_depend>gtest</test_depend> | ||
</package> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
find_package(GTest REQUIRED) | ||
find_package(thread_supervisor REQUIRED) | ||
|
||
set(TEST_BACKEND pjmsg_mcap) | ||
foreach(TEST_NAME combo intrometry) | ||
find_package(intrometry_${TEST_BACKEND} REQUIRED) | ||
|
||
add_executable(test_${TEST_BACKEND}_${TEST_NAME} ${TEST_BACKEND}_${TEST_NAME}.cpp) | ||
target_link_libraries(test_${TEST_BACKEND}_${TEST_NAME} | ||
intrometry::${TEST_BACKEND} | ||
GTest::GTest | ||
) | ||
add_test(test_${TEST_BACKEND}_${TEST_NAME} test_${TEST_BACKEND}_${TEST_NAME}) | ||
endforeach() | ||
|
||
set(TEST_BACKEND pjmsg_topic) | ||
foreach(TEST_NAME combo intrometry) | ||
find_package(rclcpp REQUIRED) | ||
find_package(plotjuggler_msgs REQUIRED) | ||
find_package(intrometry_${TEST_BACKEND} REQUIRED) | ||
|
||
add_executable(test_${TEST_BACKEND}_${TEST_NAME} ${TEST_BACKEND}_${TEST_NAME}.cpp) | ||
target_link_libraries(test_${TEST_BACKEND}_${TEST_NAME} | ||
intrometry::${TEST_BACKEND} | ||
GTest::GTest | ||
thread_supervisor::thread_supervisor | ||
rclcpp::rclcpp | ||
plotjuggler_msgs::plotjuggler_msgs__rosidl_typesupport_cpp | ||
) | ||
add_test(test_${TEST_BACKEND}_${TEST_NAME} test_${TEST_BACKEND}_${TEST_NAME}) | ||
endforeach() | ||
|
||
|
||
foreach(TEST_NAME sink_base) | ||
add_executable(test_${TEST_NAME} ${TEST_NAME}.cpp) | ||
target_link_libraries(test_${TEST_NAME} | ||
intrometry::pjmsg_topic | ||
intrometry::pjmsg_mcap | ||
GTest::GTest | ||
) | ||
add_test(test_${TEST_NAME} test_${TEST_NAME}) | ||
endforeach() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/** | ||
@file | ||
@author Alexander Sherikov | ||
@copyright 2024 Alexander Sherikov. Licensed under the Apache License, | ||
Version 2.0. (see LICENSE or http://www.apache.org/licenses/LICENSE-2.0) | ||
@brief | ||
*/ | ||
|
||
#pragma once | ||
|
||
#include <intrometry/pjmsg_mcap/all.h> | ||
#include "common.h" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.