2016-06-15 11:35:56 -07:00
|
|
|
cmake_minimum_required(VERSION 3.5)
|
2014-07-30 17:57:21 -07:00
|
|
|
|
|
|
|
project(rclcpp)
|
|
|
|
|
2018-02-26 09:46:44 -08:00
|
|
|
find_package(ament_cmake_ros REQUIRED)
|
2017-03-21 17:41:49 -07:00
|
|
|
find_package(builtin_interfaces REQUIRED)
|
2016-04-24 21:25:19 +00:00
|
|
|
find_package(rcl REQUIRED)
|
2015-08-18 18:41:40 -07:00
|
|
|
find_package(rcl_interfaces REQUIRED)
|
2018-06-05 10:54:08 -07:00
|
|
|
find_package(rcl_yaml_param_parser REQUIRED)
|
2019-09-06 11:35:36 -07:00
|
|
|
find_package(rcpputils REQUIRED)
|
2015-11-05 18:55:52 -08:00
|
|
|
find_package(rmw REQUIRED)
|
2015-12-07 18:04:19 -08:00
|
|
|
find_package(rmw_implementation REQUIRED)
|
2018-05-30 20:32:08 -03:00
|
|
|
find_package(rosgraph_msgs REQUIRED)
|
2015-11-05 18:55:52 -08:00
|
|
|
find_package(rosidl_generator_cpp REQUIRED)
|
2016-12-28 12:12:05 -08:00
|
|
|
find_package(rosidl_typesupport_c REQUIRED)
|
2016-11-18 11:45:18 -08:00
|
|
|
find_package(rosidl_typesupport_cpp REQUIRED)
|
2019-10-19 00:28:04 +02:00
|
|
|
find_package(tracetools REQUIRED)
|
2015-11-05 18:55:52 -08:00
|
|
|
|
2017-06-15 13:48:42 -07:00
|
|
|
# Default to C++14
|
|
|
|
if(NOT CMAKE_CXX_STANDARD)
|
|
|
|
set(CMAKE_CXX_STANDARD 14)
|
|
|
|
endif()
|
|
|
|
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
2018-09-18 15:42:00 -07:00
|
|
|
add_compile_options(-Wall -Wextra -Wpedantic)
|
2015-11-05 18:55:52 -08:00
|
|
|
endif()
|
|
|
|
|
|
|
|
include_directories(include)
|
|
|
|
|
|
|
|
set(${PROJECT_NAME}_SRCS
|
|
|
|
src/rclcpp/any_executable.cpp
|
|
|
|
src/rclcpp/callback_group.cpp
|
|
|
|
src/rclcpp/client.cpp
|
2017-11-16 17:26:56 -08:00
|
|
|
src/rclcpp/clock.cpp
|
2015-11-05 18:55:52 -08:00
|
|
|
src/rclcpp/context.cpp
|
|
|
|
src/rclcpp/contexts/default_context.cpp
|
2019-10-08 15:40:27 -07:00
|
|
|
src/rclcpp/detail/rmw_implementation_specific_payload.cpp
|
|
|
|
src/rclcpp/detail/rmw_implementation_specific_publisher_payload.cpp
|
|
|
|
src/rclcpp/detail/rmw_implementation_specific_subscription_payload.cpp
|
2017-11-16 17:26:56 -08:00
|
|
|
src/rclcpp/duration.cpp
|
2016-06-22 20:18:46 -07:00
|
|
|
src/rclcpp/event.cpp
|
|
|
|
src/rclcpp/exceptions.cpp
|
2015-11-05 18:55:52 -08:00
|
|
|
src/rclcpp/executor.cpp
|
|
|
|
src/rclcpp/executors.cpp
|
2017-05-30 18:25:11 -07:00
|
|
|
src/rclcpp/expand_topic_or_service_name.cpp
|
2015-11-05 18:55:52 -08:00
|
|
|
src/rclcpp/executors/multi_threaded_executor.cpp
|
|
|
|
src/rclcpp/executors/single_threaded_executor.cpp
|
2016-06-22 20:18:46 -07:00
|
|
|
src/rclcpp/graph_listener.cpp
|
2018-11-29 21:33:01 -08:00
|
|
|
src/rclcpp/init_options.cpp
|
2015-11-05 18:55:52 -08:00
|
|
|
src/rclcpp/intra_process_manager.cpp
|
2017-12-04 16:07:29 -08:00
|
|
|
src/rclcpp/logger.cpp
|
2015-11-05 18:55:52 -08:00
|
|
|
src/rclcpp/memory_strategies.cpp
|
|
|
|
src/rclcpp/memory_strategy.cpp
|
2016-12-09 17:09:29 -08:00
|
|
|
src/rclcpp/node.cpp
|
2019-02-06 01:10:43 -06:00
|
|
|
src/rclcpp/node_options.cpp
|
2016-12-09 17:09:29 -08:00
|
|
|
src/rclcpp/node_interfaces/node_base.cpp
|
2017-11-30 14:07:23 -08:00
|
|
|
src/rclcpp/node_interfaces/node_clock.cpp
|
2016-12-09 17:09:29 -08:00
|
|
|
src/rclcpp/node_interfaces/node_graph.cpp
|
2017-12-04 16:07:29 -08:00
|
|
|
src/rclcpp/node_interfaces/node_logging.cpp
|
2016-12-09 17:09:29 -08:00
|
|
|
src/rclcpp/node_interfaces/node_parameters.cpp
|
|
|
|
src/rclcpp/node_interfaces/node_services.cpp
|
2018-12-12 11:52:54 -08:00
|
|
|
src/rclcpp/node_interfaces/node_time_source.cpp
|
2016-12-09 17:09:29 -08:00
|
|
|
src/rclcpp/node_interfaces/node_timers.cpp
|
|
|
|
src/rclcpp/node_interfaces/node_topics.cpp
|
2018-11-22 14:03:51 -08:00
|
|
|
src/rclcpp/node_interfaces/node_waitables.cpp
|
2015-11-05 18:55:52 -08:00
|
|
|
src/rclcpp/parameter.cpp
|
2018-06-01 11:48:56 -07:00
|
|
|
src/rclcpp/parameter_value.cpp
|
2015-11-05 18:55:52 -08:00
|
|
|
src/rclcpp/parameter_client.cpp
|
2017-11-29 11:11:18 -08:00
|
|
|
src/rclcpp/parameter_events_filter.cpp
|
2018-06-05 10:54:08 -07:00
|
|
|
src/rclcpp/parameter_map.cpp
|
2015-11-05 18:55:52 -08:00
|
|
|
src/rclcpp/parameter_service.cpp
|
2019-04-30 16:05:53 -03:00
|
|
|
src/rclcpp/publisher_base.cpp
|
2019-05-08 14:24:40 -07:00
|
|
|
src/rclcpp/qos.cpp
|
2019-05-03 10:16:39 -07:00
|
|
|
src/rclcpp/qos_event.cpp
|
2015-11-05 18:55:52 -08:00
|
|
|
src/rclcpp/service.cpp
|
2018-12-12 21:12:49 -08:00
|
|
|
src/rclcpp/signal_handler.cpp
|
2019-04-30 16:05:53 -03:00
|
|
|
src/rclcpp/subscription_base.cpp
|
New Intra-Process Communication (#778)
* basic ipc implementation from alsora/new_ipc_proposal
Signed-off-by: alberto <alberto.soragna@gmail.com>
better use of node_topic create subscription
Signed-off-by: alberto <alberto.soragna@gmail.com>
added intra process manager test
Signed-off-by: alberto <alberto.soragna@gmail.com>
fixed ring buffer and added test
Signed-off-by: alberto <alberto.soragna@gmail.com>
added intra process buffer test
Signed-off-by: alberto <alberto.soragna@gmail.com>
added intra process buffer test
Signed-off-by: alberto <alberto.soragna@gmail.com>
Signed-off-by: alberto <alberto.soragna@gmail.com>
removed intra-process methods from subscription base
Signed-off-by: alberto <alberto.soragna@gmail.com>
using lock_guard instead of unique_lock, renamed var without camel case
Signed-off-by: alberto <alberto.soragna@gmail.com>
using unordered set and references in intra process manager
Signed-off-by: alberto <alberto.soragna@gmail.com>
subscription intra-process does not depend anymore on subscription, but has a copy of the callback
Signed-off-by: alberto <alberto.soragna@gmail.com>
changed buffer API to use rvo
Signed-off-by: Alberto <alberto.soragna@gmail.com>
avoid copying shared_ptr
Signed-off-by: alberto <alberto.soragna@gmail.com>
revert not needed changes to create_subscription
Signed-off-by: alberto <alberto.soragna@gmail.com>
updated tests according to new buffer APIs
Signed-off-by: alberto <alberto.soragna@gmail.com>
updated types in ring buffer implementation avoid using uint32_t
Signed-off-by: alberto <alberto.soragna@gmail.com>
using unique ptr for buffers in subscription_intra_process
Signed-off-by: alberto <alberto.soragna@gmail.com>
added missing std::move in subscription_intra_process constructor
Signed-off-by: alberto <alberto.soragna@gmail.com>
use consisting names for ring_buffer_implementation members
Signed-off-by: alberto <alberto.soragna@gmail.com>
addressing typos, one-liners and similar from ivanpauno review
Signed-off-by: alberto <alberto.soragna@gmail.com>
moved subscription_intra_process_base to its own files and moved non templated method from derived class
Signed-off-by: alberto <alberto.soragna@gmail.com>
removed forward declarations, fixed include subscription_intra_process_base
Signed-off-by: alberto <alberto.soragna@gmail.com>
removed member variable from do_intra_process_publish signature
Signed-off-by: alberto <alberto.soragna@gmail.com>
declare public before private in intra_process_manager_impl
Signed-off-by: alberto <alberto.soragna@gmail.com>
made matches_any_intra_process_publishers const
Signed-off-by: alberto <alberto.soragna@gmail.com>
using const reference in get_all_matching_publishers
Signed-off-by: alberto <alberto.soragna@gmail.com>
added deleter and alloc templates in intra_process_buffer
Signed-off-by: alberto <alberto.soragna@gmail.com>
added RCLCPP_WARN to intra_process_manager_impl
Signed-off-by: alberto <alberto.soragna@gmail.com>
passing context from node to subscription_intra_process
Signed-off-by: alberto <alberto.soragna@gmail.com>
using allocators in intra_process_manager
Signed-off-by: alberto <alberto.soragna@gmail.com>
use size_t instead of int in ring buffer indices
Signed-off-by: alberto <alberto.soragna@gmail.com>
creating buffer inside subscription_intra_process constructor
Signed-off-by: alberto <alberto.soragna@gmail.com>
fix lint errors
Signed-off-by: alberto <alberto.soragna@gmail.com>
throw error if trying to dequeue when buffer empty; remove duplicated methods in intra_process_buffer
Signed-off-by: alberto <alberto.soragna@gmail.com>
added todo for creating an rmw function for checking qos compatibility
Signed-off-by: alberto <alberto.soragna@gmail.com>
test fixes
Signed-off-by: alberto <alberto.soragna@gmail.com>
refactored intra_process_manager, removed ipm impl
Signed-off-by: alberto <alberto.soragna@gmail.com>
added mutex in intra_process_manager add_* methods
Signed-off-by: Soragna, Alberto <alberto.soragna@gmail.com>
added allocator to intra_process_buffer
Signed-off-by: Soragna, Alberto <alberto.soragna@gmail.com>
added invalid intra_process qos test for subscription
Signed-off-by: Soragna, Alberto <alberto.soragna@gmail.com>
throw error if history size is 0 with keep last and ipc
Signed-off-by: Soragna, Alberto <alberto.soragna@gmail.com>
using allocator when creating unique_ptr from shared_ptr
Signed-off-by: Soragna, Alberto <alberto.soragna@gmail.com>
adding deleter template argument to intra_process buffer
Signed-off-by: Soragna, Alberto <alberto.soragna@gmail.com>
fix linter
Signed-off-by: Soragna, Alberto <alberto.soragna@gmail.com>
throw error with callbackT different from messageT
Signed-off-by: Soragna, Alberto <alberto.soragna@gmail.com>
updated deleter template argument in subscription factory
Signed-off-by: Soragna, Alberto <alberto.soragna@gmail.com>
Fix typo in test fixture tear down method name (#787)
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
Add free function for creating service clients (#788)
Equivalent to the free function for creating a service.
Resolves #768
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
Cmake infrastructure for creating components (#784)
*cmake macro to create components for libraries with multiple nodes
Signed-off-by: Siddharth Kucheria <kucheria@usc.edu>
Allow registering multiple on_parameters_set_callback (#772)
Signed-off-by: ivanpauno <ivanpauno@ekumenlabs.com>
fix for multiple nodes not being recognized (#790)
Signed-off-by: Siddharth Kucheria <kucheria@usc.edu>
Remove non-package from ament_target_dependencies() (#793)
Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
fix linter issue (#795)
Signed-off-by: Siddharth Kucheria <kucheria@usc.edu>
Make TimeSource ignore use_sim_time events coming from other nodes. (#799)
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
passing deleter template parameter
Signed-off-by: Soragna, Alberto <alberto.soragna@gmail.com>
small fixes for failing tests
Signed-off-by: Soragna, Alberto <alberto.soragna@gmail.com>
fixed imports in test_intra_process_manager
Signed-off-by: Soragna, Alberto <alberto.soragna@gmail.com>
using RCLCPP_SMART_PTR_ALIASES_ONLY and RCLCPP_PUBLIC macros
Signed-off-by: Soragna, Alberto <alberto.soragna@gmail.com>
added RCLCPP_PUBLIC macros and virtual destructor to sub intra_process base
Signed-off-by: Soragna, Alberto <alberto.soragna@gmail.com>
added unique_ptr alias to macros
Signed-off-by: Soragna, Alberto <alberto.soragna@gmail.com>
updated test_intra_process_manager.cpp
Signed-off-by: Soragna, Alberto <alberto.soragna@gmail.com>
remove mock msgs from rclcpp (#800)
Signed-off-by: Karsten Knese <karsten@openrobotics.org>
Add line break after first open paren in multiline function call (#785)
* Add line break after first open paren in multiline function call
as per developer guide:
https://index.ros.org/doc/ros2/Contributing/Developer-Guide/#open-versus-cuddled-braces
see https://github.com/ament/ament_lint/pull/148
Signed-off-by: Dan Rose <dan@digilabs.io>
Fix dedent when first function argument starts with a brace
Signed-off-by: Dan Rose <dan@digilabs.io>
Line break with multiline if condition
Remove line breaks where allowed.
Signed-off-by: Dan Rose <dan@digilabs.io>
Fixup after rebase
Signed-off-by: Dan Rose <dan@digilabs.io>
Fixup again after reverting indent_paren_open_brace
Signed-off-by: Dan Rose <dan@digilabs.io>
* Revert comment spacing change, condense some lines
Signed-off-by: Dan Rose <dan@digilabs.io>
Adapt to '--ros-args ... [--]'-based ROS args extraction (#816)
* Use --ros-args to deal with node arguments in rclcpp.
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
* Document implicit --ros-args flag in NodeOptions::arguments().
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
* Add missing size_t to int cast.
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
* Only add implicit --ros-args flag if not present already.
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
* Add some rclcpp::NodeOptions test coverage.
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
* Address peer review comments.
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
* Please cpplint and uncrustify.
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
Guard against making multiple result requests for a goal handle (#808)
This fixes a runtime error caused by a race condition when making consecutive requests for the
result.
Specifically, this happens if the user provides a result callback when sending a goal and then
calls async_get_result shortly after.
Resolves #783
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
Explain return value of spin_until_future_complete (#792)
Signed-off-by: Dan Rose <dan@digilabs.io>
Allow passing logger by const ref (#820)
Signed-off-by: Karsten Knese <karsten@openrobotics.org>
Delete unnecessary call for get_node_by_group (#823)
Signed-off-by: Tomoya.Fujita <Tomoya.Fujita@sony.com>
Fix get_node_interfaces functions taking a pointer (#821)
Signed-off-by: ivanpauno <ivanpauno@ekumenlabs.com>
add callback group as member variable and constructor arg (#811)
Signed-off-by: bpwilcox <bpwilcox@eng.ucsd.edu>
remove callback group as member variable
Wrap documentation examples in code blocks (#830)
This makes the code examples easier to read in the generated documentation.
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
Crash in callback group pointer vector iterator (#814)
Signed-off-by: Guillaume Autran <gautran@clearpath.ai>
add mutex in add/remove_node and wait_for_work to protect concurrent use/change of memory_strategy_ (#837)
Signed-off-by: Dirk Thomas <dirk-thomas@users.noreply.github.com>
Fix hang with timers in MultiThreadedExecutor (#835) (#836)
Signed-off-by: Todd Malsbary <todd.malsbary@intel.com>
Use of -r/--remap flags where appropriate. (#834)
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
Force explicit --ros-args in NodeOptions::arguments(). (#845)
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
Fail on invalid and unknown ROS specific arguments (#842)
* Fail on invalid and unknown ROS specific arguments.
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
* Revert changes to utilities.hpp in rclcpp
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
* Fully revert change to utilities.hpp
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
Fix typo in deprecated warning. (#848)
"it's" instead of its
Signed-off-by: Luca Della Vedova <luca@openrobotics.org>
Add throwing parameter name if parameter is not set (#833)
* added throwing parameter name if parameter is not set
Signed-off-by: Alex <cvbn127@gmail.com>
Signed-off-by: ivanpauno <ivanpauno@ekumenlabs.com>
check valid timer handler 1st to reduce the time window for scan. (#841)
Signed-off-by: Tomoya.Fujita <Tomoya.Fujita@sony.com>
remove features and related code which were deprecated in dashing (#852)
Signed-off-by: William Woodall <william@osrfoundation.org>
reset error message before setting a new one, embed the original one (#854)
Signed-off-by: Dirk Thomas <dirk-thomas@users.noreply.github.com>
restored virtual destructor in publisher_base
Signed-off-by: Soragna, Alberto <alberto.soragna@gmail.com>
* fixup a few things after rebase
Signed-off-by: William Woodall <william@osrfoundation.org>
* refactor some API's and get code compiling again
Signed-off-by: William Woodall <william@osrfoundation.org>
* docs and style changes (whitespace)
Signed-off-by: William Woodall <william@osrfoundation.org>
* move new intra process internals into experimental namespace
Signed-off-by: William Woodall <william@osrfoundation.org>
* uncrustify
Signed-off-by: William Woodall <william@osrfoundation.org>
* fix issues with LoanedMessages after rebase
Signed-off-by: William Woodall <william@osrfoundation.org>
* more fixups
Signed-off-by: William Woodall <william@osrfoundation.org>
* readd logic for avoiding in compatible QoS
Signed-off-by: William Woodall <william@osrfoundation.org>
* avoid an error when intra process is disabled
Signed-off-by: William Woodall <william@osrfoundation.org>
* change intra process to preserve pointer in cyclic_pipeline
Signed-off-by: William Woodall <william@osrfoundation.org>
* fix issue matching topics in intra process
Signed-off-by: William Woodall <william@osrfoundation.org>
* fix some issues with the tests after latest behavior change
Signed-off-by: William Woodall <william@osrfoundation.org>
* address review feedback
Signed-off-by: William Woodall <william@osrfoundation.org>
* fix the initialization order
Signed-off-by: William Woodall <william@osrfoundation.org>
* avoid possible loss of data warning
Signed-off-by: William Woodall <william@osrfoundation.org>
* more fixes related to initialization
Signed-off-by: William Woodall <william@osrfoundation.org>
* fix use of custom allocators
Signed-off-by: William Woodall <william@osrfoundation.org>
2019-10-21 22:46:38 +02:00
|
|
|
src/rclcpp/subscription_intra_process_base.cpp
|
2017-08-08 15:18:17 -07:00
|
|
|
src/rclcpp/time.cpp
|
2017-11-16 17:26:56 -08:00
|
|
|
src/rclcpp/time_source.cpp
|
2015-11-05 18:55:52 -08:00
|
|
|
src/rclcpp/timer.cpp
|
2015-12-07 18:04:19 -08:00
|
|
|
src/rclcpp/type_support.cpp
|
2015-11-05 18:55:52 -08:00
|
|
|
src/rclcpp/utilities.cpp
|
2018-11-22 14:03:51 -08:00
|
|
|
src/rclcpp/waitable.cpp
|
2015-11-05 18:55:52 -08:00
|
|
|
)
|
2015-12-07 18:04:19 -08:00
|
|
|
|
2017-11-15 14:14:09 -08:00
|
|
|
# "watch" template for changes
|
|
|
|
configure_file(
|
|
|
|
"resource/logging.hpp.em"
|
|
|
|
"logging.hpp.em.watch"
|
|
|
|
COPYONLY
|
|
|
|
)
|
|
|
|
# generate header with logging macros
|
|
|
|
set(python_code
|
|
|
|
"import em"
|
|
|
|
"em.invoke(['-o', 'include/rclcpp/logging.hpp', '${CMAKE_CURRENT_SOURCE_DIR}/resource/logging.hpp.em'])")
|
|
|
|
string(REPLACE ";" "$<SEMICOLON>" python_code "${python_code}")
|
|
|
|
add_custom_command(OUTPUT include/rclcpp/logging.hpp
|
|
|
|
COMMAND ${CMAKE_COMMAND} -E make_directory "include/rclcpp"
|
|
|
|
COMMAND ${PYTHON_EXECUTABLE} ARGS -c "${python_code}"
|
|
|
|
DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/logging.hpp.em.watch"
|
|
|
|
COMMENT "Expanding logging.hpp.em"
|
|
|
|
VERBATIM
|
|
|
|
)
|
|
|
|
list(APPEND ${PROJECT_NAME}_SRCS
|
|
|
|
include/rclcpp/logging.hpp)
|
|
|
|
include_directories("${CMAKE_CURRENT_BINARY_DIR}/include")
|
|
|
|
|
2018-02-26 09:46:44 -08:00
|
|
|
add_library(${PROJECT_NAME}
|
2017-01-05 12:13:58 -08:00
|
|
|
${${PROJECT_NAME}_SRCS})
|
2018-03-22 16:26:42 -07:00
|
|
|
# specific order: dependents before dependencies
|
2017-01-05 12:13:58 -08:00
|
|
|
ament_target_dependencies(${PROJECT_NAME}
|
|
|
|
"rcl"
|
2018-06-05 10:54:08 -07:00
|
|
|
"rcl_yaml_param_parser"
|
2019-09-06 11:35:36 -07:00
|
|
|
"rcpputils"
|
2018-03-22 16:26:42 -07:00
|
|
|
"builtin_interfaces"
|
2018-05-30 20:32:08 -03:00
|
|
|
"rosgraph_msgs"
|
2018-03-22 16:26:42 -07:00
|
|
|
"rosidl_typesupport_cpp"
|
2019-10-19 00:28:04 +02:00
|
|
|
"rosidl_generator_cpp"
|
|
|
|
"tracetools"
|
|
|
|
)
|
2015-12-07 18:04:19 -08:00
|
|
|
|
2017-01-05 12:13:58 -08:00
|
|
|
# Causes the visibility macros to use dllexport rather than dllimport,
|
|
|
|
# which is appropriate when building the dll but not consuming it.
|
|
|
|
target_compile_definitions(${PROJECT_NAME}
|
|
|
|
PRIVATE "RCLCPP_BUILDING_LIBRARY")
|
2015-12-07 18:04:19 -08:00
|
|
|
|
2017-01-05 12:13:58 -08:00
|
|
|
install(
|
|
|
|
TARGETS ${PROJECT_NAME}
|
|
|
|
ARCHIVE DESTINATION lib
|
|
|
|
LIBRARY DESTINATION lib
|
|
|
|
RUNTIME DESTINATION bin
|
|
|
|
)
|
2014-07-30 17:57:21 -07:00
|
|
|
|
2018-03-22 16:26:42 -07:00
|
|
|
# specific order: dependents before dependencies
|
|
|
|
ament_export_include_directories(include)
|
|
|
|
ament_export_libraries(${PROJECT_NAME})
|
|
|
|
|
2016-02-11 08:24:30 -08:00
|
|
|
ament_export_dependencies(ament_cmake)
|
2016-04-24 21:25:19 +00:00
|
|
|
ament_export_dependencies(rcl)
|
2019-09-06 11:35:36 -07:00
|
|
|
ament_export_dependencies(rcpputils)
|
2018-03-22 16:26:42 -07:00
|
|
|
ament_export_dependencies(builtin_interfaces)
|
2018-05-30 20:32:08 -03:00
|
|
|
ament_export_dependencies(rosgraph_msgs)
|
2016-11-18 11:45:18 -08:00
|
|
|
ament_export_dependencies(rosidl_typesupport_cpp)
|
2018-03-22 16:26:42 -07:00
|
|
|
ament_export_dependencies(rosidl_typesupport_c)
|
|
|
|
ament_export_dependencies(rosidl_generator_cpp)
|
2018-06-05 10:54:08 -07:00
|
|
|
ament_export_dependencies(rcl_yaml_param_parser)
|
2019-10-19 00:28:04 +02:00
|
|
|
ament_export_dependencies(tracetools)
|
2015-11-05 18:55:52 -08:00
|
|
|
|
2016-04-28 18:45:08 -07:00
|
|
|
if(BUILD_TESTING)
|
2018-03-19 21:05:26 -07:00
|
|
|
find_package(ament_cmake_gtest REQUIRED)
|
2015-03-07 01:24:52 +01:00
|
|
|
find_package(ament_lint_auto REQUIRED)
|
|
|
|
ament_lint_auto_find_test_dependencies()
|
2015-08-18 18:41:40 -07:00
|
|
|
|
2017-01-05 12:13:58 -08:00
|
|
|
find_package(rmw_implementation_cmake REQUIRED)
|
|
|
|
|
2019-08-05 22:43:30 -07:00
|
|
|
find_package(test_msgs REQUIRED)
|
|
|
|
|
2019-05-08 14:24:40 -07:00
|
|
|
include(cmake/rclcpp_add_build_failure_test.cmake)
|
|
|
|
|
2019-09-25 14:57:49 -03:00
|
|
|
add_definitions(-DTEST_RESOURCES_DIRECTORY="${CMAKE_CURRENT_BINARY_DIR}/test/resources")
|
|
|
|
|
2017-05-30 18:25:11 -07:00
|
|
|
ament_add_gtest(test_client test/test_client.cpp)
|
|
|
|
if(TARGET test_client)
|
2019-03-19 09:23:10 -03:00
|
|
|
ament_target_dependencies(test_client
|
|
|
|
"rcl_interfaces"
|
|
|
|
"rmw"
|
|
|
|
"rosidl_generator_cpp"
|
|
|
|
"rosidl_typesupport_cpp"
|
2017-05-30 18:25:11 -07:00
|
|
|
)
|
|
|
|
target_link_libraries(test_client ${PROJECT_NAME})
|
|
|
|
endif()
|
2019-06-10 16:37:55 -07:00
|
|
|
ament_add_gtest(test_create_timer test/test_create_timer.cpp)
|
|
|
|
if(TARGET test_create_timer)
|
|
|
|
ament_target_dependencies(test_create_timer
|
|
|
|
"rcl_interfaces"
|
|
|
|
"rmw"
|
|
|
|
"rcl"
|
|
|
|
"rosidl_generator_cpp"
|
|
|
|
"rosidl_typesupport_cpp"
|
|
|
|
)
|
|
|
|
target_link_libraries(test_create_timer ${PROJECT_NAME})
|
|
|
|
target_include_directories(test_create_timer PRIVATE test/)
|
|
|
|
endif()
|
2017-05-30 18:25:11 -07:00
|
|
|
ament_add_gtest(test_expand_topic_or_service_name test/test_expand_topic_or_service_name.cpp)
|
|
|
|
if(TARGET test_expand_topic_or_service_name)
|
2019-03-19 09:23:10 -03:00
|
|
|
ament_target_dependencies(test_expand_topic_or_service_name
|
|
|
|
"rcl_interfaces"
|
|
|
|
"rmw"
|
|
|
|
"rosidl_generator_cpp"
|
|
|
|
"rosidl_typesupport_cpp"
|
2017-05-30 18:25:11 -07:00
|
|
|
)
|
|
|
|
target_link_libraries(test_expand_topic_or_service_name ${PROJECT_NAME})
|
|
|
|
endif()
|
2015-10-12 11:55:33 -07:00
|
|
|
ament_add_gtest(test_function_traits test/test_function_traits.cpp)
|
2015-11-05 18:55:52 -08:00
|
|
|
if(TARGET test_function_traits)
|
2019-03-19 09:23:10 -03:00
|
|
|
ament_target_dependencies(test_function_traits
|
|
|
|
"rcl_interfaces"
|
|
|
|
"rmw"
|
|
|
|
"rosidl_generator_cpp"
|
|
|
|
"rosidl_typesupport_cpp"
|
2015-11-05 18:55:52 -08:00
|
|
|
)
|
|
|
|
endif()
|
New Intra-Process Communication (#778)
* basic ipc implementation from alsora/new_ipc_proposal
Signed-off-by: alberto <alberto.soragna@gmail.com>
better use of node_topic create subscription
Signed-off-by: alberto <alberto.soragna@gmail.com>
added intra process manager test
Signed-off-by: alberto <alberto.soragna@gmail.com>
fixed ring buffer and added test
Signed-off-by: alberto <alberto.soragna@gmail.com>
added intra process buffer test
Signed-off-by: alberto <alberto.soragna@gmail.com>
added intra process buffer test
Signed-off-by: alberto <alberto.soragna@gmail.com>
Signed-off-by: alberto <alberto.soragna@gmail.com>
removed intra-process methods from subscription base
Signed-off-by: alberto <alberto.soragna@gmail.com>
using lock_guard instead of unique_lock, renamed var without camel case
Signed-off-by: alberto <alberto.soragna@gmail.com>
using unordered set and references in intra process manager
Signed-off-by: alberto <alberto.soragna@gmail.com>
subscription intra-process does not depend anymore on subscription, but has a copy of the callback
Signed-off-by: alberto <alberto.soragna@gmail.com>
changed buffer API to use rvo
Signed-off-by: Alberto <alberto.soragna@gmail.com>
avoid copying shared_ptr
Signed-off-by: alberto <alberto.soragna@gmail.com>
revert not needed changes to create_subscription
Signed-off-by: alberto <alberto.soragna@gmail.com>
updated tests according to new buffer APIs
Signed-off-by: alberto <alberto.soragna@gmail.com>
updated types in ring buffer implementation avoid using uint32_t
Signed-off-by: alberto <alberto.soragna@gmail.com>
using unique ptr for buffers in subscription_intra_process
Signed-off-by: alberto <alberto.soragna@gmail.com>
added missing std::move in subscription_intra_process constructor
Signed-off-by: alberto <alberto.soragna@gmail.com>
use consisting names for ring_buffer_implementation members
Signed-off-by: alberto <alberto.soragna@gmail.com>
addressing typos, one-liners and similar from ivanpauno review
Signed-off-by: alberto <alberto.soragna@gmail.com>
moved subscription_intra_process_base to its own files and moved non templated method from derived class
Signed-off-by: alberto <alberto.soragna@gmail.com>
removed forward declarations, fixed include subscription_intra_process_base
Signed-off-by: alberto <alberto.soragna@gmail.com>
removed member variable from do_intra_process_publish signature
Signed-off-by: alberto <alberto.soragna@gmail.com>
declare public before private in intra_process_manager_impl
Signed-off-by: alberto <alberto.soragna@gmail.com>
made matches_any_intra_process_publishers const
Signed-off-by: alberto <alberto.soragna@gmail.com>
using const reference in get_all_matching_publishers
Signed-off-by: alberto <alberto.soragna@gmail.com>
added deleter and alloc templates in intra_process_buffer
Signed-off-by: alberto <alberto.soragna@gmail.com>
added RCLCPP_WARN to intra_process_manager_impl
Signed-off-by: alberto <alberto.soragna@gmail.com>
passing context from node to subscription_intra_process
Signed-off-by: alberto <alberto.soragna@gmail.com>
using allocators in intra_process_manager
Signed-off-by: alberto <alberto.soragna@gmail.com>
use size_t instead of int in ring buffer indices
Signed-off-by: alberto <alberto.soragna@gmail.com>
creating buffer inside subscription_intra_process constructor
Signed-off-by: alberto <alberto.soragna@gmail.com>
fix lint errors
Signed-off-by: alberto <alberto.soragna@gmail.com>
throw error if trying to dequeue when buffer empty; remove duplicated methods in intra_process_buffer
Signed-off-by: alberto <alberto.soragna@gmail.com>
added todo for creating an rmw function for checking qos compatibility
Signed-off-by: alberto <alberto.soragna@gmail.com>
test fixes
Signed-off-by: alberto <alberto.soragna@gmail.com>
refactored intra_process_manager, removed ipm impl
Signed-off-by: alberto <alberto.soragna@gmail.com>
added mutex in intra_process_manager add_* methods
Signed-off-by: Soragna, Alberto <alberto.soragna@gmail.com>
added allocator to intra_process_buffer
Signed-off-by: Soragna, Alberto <alberto.soragna@gmail.com>
added invalid intra_process qos test for subscription
Signed-off-by: Soragna, Alberto <alberto.soragna@gmail.com>
throw error if history size is 0 with keep last and ipc
Signed-off-by: Soragna, Alberto <alberto.soragna@gmail.com>
using allocator when creating unique_ptr from shared_ptr
Signed-off-by: Soragna, Alberto <alberto.soragna@gmail.com>
adding deleter template argument to intra_process buffer
Signed-off-by: Soragna, Alberto <alberto.soragna@gmail.com>
fix linter
Signed-off-by: Soragna, Alberto <alberto.soragna@gmail.com>
throw error with callbackT different from messageT
Signed-off-by: Soragna, Alberto <alberto.soragna@gmail.com>
updated deleter template argument in subscription factory
Signed-off-by: Soragna, Alberto <alberto.soragna@gmail.com>
Fix typo in test fixture tear down method name (#787)
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
Add free function for creating service clients (#788)
Equivalent to the free function for creating a service.
Resolves #768
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
Cmake infrastructure for creating components (#784)
*cmake macro to create components for libraries with multiple nodes
Signed-off-by: Siddharth Kucheria <kucheria@usc.edu>
Allow registering multiple on_parameters_set_callback (#772)
Signed-off-by: ivanpauno <ivanpauno@ekumenlabs.com>
fix for multiple nodes not being recognized (#790)
Signed-off-by: Siddharth Kucheria <kucheria@usc.edu>
Remove non-package from ament_target_dependencies() (#793)
Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
fix linter issue (#795)
Signed-off-by: Siddharth Kucheria <kucheria@usc.edu>
Make TimeSource ignore use_sim_time events coming from other nodes. (#799)
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
passing deleter template parameter
Signed-off-by: Soragna, Alberto <alberto.soragna@gmail.com>
small fixes for failing tests
Signed-off-by: Soragna, Alberto <alberto.soragna@gmail.com>
fixed imports in test_intra_process_manager
Signed-off-by: Soragna, Alberto <alberto.soragna@gmail.com>
using RCLCPP_SMART_PTR_ALIASES_ONLY and RCLCPP_PUBLIC macros
Signed-off-by: Soragna, Alberto <alberto.soragna@gmail.com>
added RCLCPP_PUBLIC macros and virtual destructor to sub intra_process base
Signed-off-by: Soragna, Alberto <alberto.soragna@gmail.com>
added unique_ptr alias to macros
Signed-off-by: Soragna, Alberto <alberto.soragna@gmail.com>
updated test_intra_process_manager.cpp
Signed-off-by: Soragna, Alberto <alberto.soragna@gmail.com>
remove mock msgs from rclcpp (#800)
Signed-off-by: Karsten Knese <karsten@openrobotics.org>
Add line break after first open paren in multiline function call (#785)
* Add line break after first open paren in multiline function call
as per developer guide:
https://index.ros.org/doc/ros2/Contributing/Developer-Guide/#open-versus-cuddled-braces
see https://github.com/ament/ament_lint/pull/148
Signed-off-by: Dan Rose <dan@digilabs.io>
Fix dedent when first function argument starts with a brace
Signed-off-by: Dan Rose <dan@digilabs.io>
Line break with multiline if condition
Remove line breaks where allowed.
Signed-off-by: Dan Rose <dan@digilabs.io>
Fixup after rebase
Signed-off-by: Dan Rose <dan@digilabs.io>
Fixup again after reverting indent_paren_open_brace
Signed-off-by: Dan Rose <dan@digilabs.io>
* Revert comment spacing change, condense some lines
Signed-off-by: Dan Rose <dan@digilabs.io>
Adapt to '--ros-args ... [--]'-based ROS args extraction (#816)
* Use --ros-args to deal with node arguments in rclcpp.
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
* Document implicit --ros-args flag in NodeOptions::arguments().
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
* Add missing size_t to int cast.
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
* Only add implicit --ros-args flag if not present already.
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
* Add some rclcpp::NodeOptions test coverage.
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
* Address peer review comments.
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
* Please cpplint and uncrustify.
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
Guard against making multiple result requests for a goal handle (#808)
This fixes a runtime error caused by a race condition when making consecutive requests for the
result.
Specifically, this happens if the user provides a result callback when sending a goal and then
calls async_get_result shortly after.
Resolves #783
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
Explain return value of spin_until_future_complete (#792)
Signed-off-by: Dan Rose <dan@digilabs.io>
Allow passing logger by const ref (#820)
Signed-off-by: Karsten Knese <karsten@openrobotics.org>
Delete unnecessary call for get_node_by_group (#823)
Signed-off-by: Tomoya.Fujita <Tomoya.Fujita@sony.com>
Fix get_node_interfaces functions taking a pointer (#821)
Signed-off-by: ivanpauno <ivanpauno@ekumenlabs.com>
add callback group as member variable and constructor arg (#811)
Signed-off-by: bpwilcox <bpwilcox@eng.ucsd.edu>
remove callback group as member variable
Wrap documentation examples in code blocks (#830)
This makes the code examples easier to read in the generated documentation.
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
Crash in callback group pointer vector iterator (#814)
Signed-off-by: Guillaume Autran <gautran@clearpath.ai>
add mutex in add/remove_node and wait_for_work to protect concurrent use/change of memory_strategy_ (#837)
Signed-off-by: Dirk Thomas <dirk-thomas@users.noreply.github.com>
Fix hang with timers in MultiThreadedExecutor (#835) (#836)
Signed-off-by: Todd Malsbary <todd.malsbary@intel.com>
Use of -r/--remap flags where appropriate. (#834)
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
Force explicit --ros-args in NodeOptions::arguments(). (#845)
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
Fail on invalid and unknown ROS specific arguments (#842)
* Fail on invalid and unknown ROS specific arguments.
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
* Revert changes to utilities.hpp in rclcpp
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
* Fully revert change to utilities.hpp
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
Fix typo in deprecated warning. (#848)
"it's" instead of its
Signed-off-by: Luca Della Vedova <luca@openrobotics.org>
Add throwing parameter name if parameter is not set (#833)
* added throwing parameter name if parameter is not set
Signed-off-by: Alex <cvbn127@gmail.com>
Signed-off-by: ivanpauno <ivanpauno@ekumenlabs.com>
check valid timer handler 1st to reduce the time window for scan. (#841)
Signed-off-by: Tomoya.Fujita <Tomoya.Fujita@sony.com>
remove features and related code which were deprecated in dashing (#852)
Signed-off-by: William Woodall <william@osrfoundation.org>
reset error message before setting a new one, embed the original one (#854)
Signed-off-by: Dirk Thomas <dirk-thomas@users.noreply.github.com>
restored virtual destructor in publisher_base
Signed-off-by: Soragna, Alberto <alberto.soragna@gmail.com>
* fixup a few things after rebase
Signed-off-by: William Woodall <william@osrfoundation.org>
* refactor some API's and get code compiling again
Signed-off-by: William Woodall <william@osrfoundation.org>
* docs and style changes (whitespace)
Signed-off-by: William Woodall <william@osrfoundation.org>
* move new intra process internals into experimental namespace
Signed-off-by: William Woodall <william@osrfoundation.org>
* uncrustify
Signed-off-by: William Woodall <william@osrfoundation.org>
* fix issues with LoanedMessages after rebase
Signed-off-by: William Woodall <william@osrfoundation.org>
* more fixups
Signed-off-by: William Woodall <william@osrfoundation.org>
* readd logic for avoiding in compatible QoS
Signed-off-by: William Woodall <william@osrfoundation.org>
* avoid an error when intra process is disabled
Signed-off-by: William Woodall <william@osrfoundation.org>
* change intra process to preserve pointer in cyclic_pipeline
Signed-off-by: William Woodall <william@osrfoundation.org>
* fix issue matching topics in intra process
Signed-off-by: William Woodall <william@osrfoundation.org>
* fix some issues with the tests after latest behavior change
Signed-off-by: William Woodall <william@osrfoundation.org>
* address review feedback
Signed-off-by: William Woodall <william@osrfoundation.org>
* fix the initialization order
Signed-off-by: William Woodall <william@osrfoundation.org>
* avoid possible loss of data warning
Signed-off-by: William Woodall <william@osrfoundation.org>
* more fixes related to initialization
Signed-off-by: William Woodall <william@osrfoundation.org>
* fix use of custom allocators
Signed-off-by: William Woodall <william@osrfoundation.org>
2019-10-21 22:46:38 +02:00
|
|
|
ament_add_gmock(test_intra_process_manager test/test_intra_process_manager.cpp)
|
|
|
|
if(TARGET test_intra_process_manager)
|
|
|
|
ament_target_dependencies(test_intra_process_manager
|
2019-03-19 09:23:10 -03:00
|
|
|
"rcl"
|
|
|
|
"rcl_interfaces"
|
|
|
|
"rmw"
|
|
|
|
"rosidl_generator_cpp"
|
|
|
|
"rosidl_typesupport_cpp"
|
2015-11-05 18:55:52 -08:00
|
|
|
)
|
New Intra-Process Communication (#778)
* basic ipc implementation from alsora/new_ipc_proposal
Signed-off-by: alberto <alberto.soragna@gmail.com>
better use of node_topic create subscription
Signed-off-by: alberto <alberto.soragna@gmail.com>
added intra process manager test
Signed-off-by: alberto <alberto.soragna@gmail.com>
fixed ring buffer and added test
Signed-off-by: alberto <alberto.soragna@gmail.com>
added intra process buffer test
Signed-off-by: alberto <alberto.soragna@gmail.com>
added intra process buffer test
Signed-off-by: alberto <alberto.soragna@gmail.com>
Signed-off-by: alberto <alberto.soragna@gmail.com>
removed intra-process methods from subscription base
Signed-off-by: alberto <alberto.soragna@gmail.com>
using lock_guard instead of unique_lock, renamed var without camel case
Signed-off-by: alberto <alberto.soragna@gmail.com>
using unordered set and references in intra process manager
Signed-off-by: alberto <alberto.soragna@gmail.com>
subscription intra-process does not depend anymore on subscription, but has a copy of the callback
Signed-off-by: alberto <alberto.soragna@gmail.com>
changed buffer API to use rvo
Signed-off-by: Alberto <alberto.soragna@gmail.com>
avoid copying shared_ptr
Signed-off-by: alberto <alberto.soragna@gmail.com>
revert not needed changes to create_subscription
Signed-off-by: alberto <alberto.soragna@gmail.com>
updated tests according to new buffer APIs
Signed-off-by: alberto <alberto.soragna@gmail.com>
updated types in ring buffer implementation avoid using uint32_t
Signed-off-by: alberto <alberto.soragna@gmail.com>
using unique ptr for buffers in subscription_intra_process
Signed-off-by: alberto <alberto.soragna@gmail.com>
added missing std::move in subscription_intra_process constructor
Signed-off-by: alberto <alberto.soragna@gmail.com>
use consisting names for ring_buffer_implementation members
Signed-off-by: alberto <alberto.soragna@gmail.com>
addressing typos, one-liners and similar from ivanpauno review
Signed-off-by: alberto <alberto.soragna@gmail.com>
moved subscription_intra_process_base to its own files and moved non templated method from derived class
Signed-off-by: alberto <alberto.soragna@gmail.com>
removed forward declarations, fixed include subscription_intra_process_base
Signed-off-by: alberto <alberto.soragna@gmail.com>
removed member variable from do_intra_process_publish signature
Signed-off-by: alberto <alberto.soragna@gmail.com>
declare public before private in intra_process_manager_impl
Signed-off-by: alberto <alberto.soragna@gmail.com>
made matches_any_intra_process_publishers const
Signed-off-by: alberto <alberto.soragna@gmail.com>
using const reference in get_all_matching_publishers
Signed-off-by: alberto <alberto.soragna@gmail.com>
added deleter and alloc templates in intra_process_buffer
Signed-off-by: alberto <alberto.soragna@gmail.com>
added RCLCPP_WARN to intra_process_manager_impl
Signed-off-by: alberto <alberto.soragna@gmail.com>
passing context from node to subscription_intra_process
Signed-off-by: alberto <alberto.soragna@gmail.com>
using allocators in intra_process_manager
Signed-off-by: alberto <alberto.soragna@gmail.com>
use size_t instead of int in ring buffer indices
Signed-off-by: alberto <alberto.soragna@gmail.com>
creating buffer inside subscription_intra_process constructor
Signed-off-by: alberto <alberto.soragna@gmail.com>
fix lint errors
Signed-off-by: alberto <alberto.soragna@gmail.com>
throw error if trying to dequeue when buffer empty; remove duplicated methods in intra_process_buffer
Signed-off-by: alberto <alberto.soragna@gmail.com>
added todo for creating an rmw function for checking qos compatibility
Signed-off-by: alberto <alberto.soragna@gmail.com>
test fixes
Signed-off-by: alberto <alberto.soragna@gmail.com>
refactored intra_process_manager, removed ipm impl
Signed-off-by: alberto <alberto.soragna@gmail.com>
added mutex in intra_process_manager add_* methods
Signed-off-by: Soragna, Alberto <alberto.soragna@gmail.com>
added allocator to intra_process_buffer
Signed-off-by: Soragna, Alberto <alberto.soragna@gmail.com>
added invalid intra_process qos test for subscription
Signed-off-by: Soragna, Alberto <alberto.soragna@gmail.com>
throw error if history size is 0 with keep last and ipc
Signed-off-by: Soragna, Alberto <alberto.soragna@gmail.com>
using allocator when creating unique_ptr from shared_ptr
Signed-off-by: Soragna, Alberto <alberto.soragna@gmail.com>
adding deleter template argument to intra_process buffer
Signed-off-by: Soragna, Alberto <alberto.soragna@gmail.com>
fix linter
Signed-off-by: Soragna, Alberto <alberto.soragna@gmail.com>
throw error with callbackT different from messageT
Signed-off-by: Soragna, Alberto <alberto.soragna@gmail.com>
updated deleter template argument in subscription factory
Signed-off-by: Soragna, Alberto <alberto.soragna@gmail.com>
Fix typo in test fixture tear down method name (#787)
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
Add free function for creating service clients (#788)
Equivalent to the free function for creating a service.
Resolves #768
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
Cmake infrastructure for creating components (#784)
*cmake macro to create components for libraries with multiple nodes
Signed-off-by: Siddharth Kucheria <kucheria@usc.edu>
Allow registering multiple on_parameters_set_callback (#772)
Signed-off-by: ivanpauno <ivanpauno@ekumenlabs.com>
fix for multiple nodes not being recognized (#790)
Signed-off-by: Siddharth Kucheria <kucheria@usc.edu>
Remove non-package from ament_target_dependencies() (#793)
Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
fix linter issue (#795)
Signed-off-by: Siddharth Kucheria <kucheria@usc.edu>
Make TimeSource ignore use_sim_time events coming from other nodes. (#799)
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
passing deleter template parameter
Signed-off-by: Soragna, Alberto <alberto.soragna@gmail.com>
small fixes for failing tests
Signed-off-by: Soragna, Alberto <alberto.soragna@gmail.com>
fixed imports in test_intra_process_manager
Signed-off-by: Soragna, Alberto <alberto.soragna@gmail.com>
using RCLCPP_SMART_PTR_ALIASES_ONLY and RCLCPP_PUBLIC macros
Signed-off-by: Soragna, Alberto <alberto.soragna@gmail.com>
added RCLCPP_PUBLIC macros and virtual destructor to sub intra_process base
Signed-off-by: Soragna, Alberto <alberto.soragna@gmail.com>
added unique_ptr alias to macros
Signed-off-by: Soragna, Alberto <alberto.soragna@gmail.com>
updated test_intra_process_manager.cpp
Signed-off-by: Soragna, Alberto <alberto.soragna@gmail.com>
remove mock msgs from rclcpp (#800)
Signed-off-by: Karsten Knese <karsten@openrobotics.org>
Add line break after first open paren in multiline function call (#785)
* Add line break after first open paren in multiline function call
as per developer guide:
https://index.ros.org/doc/ros2/Contributing/Developer-Guide/#open-versus-cuddled-braces
see https://github.com/ament/ament_lint/pull/148
Signed-off-by: Dan Rose <dan@digilabs.io>
Fix dedent when first function argument starts with a brace
Signed-off-by: Dan Rose <dan@digilabs.io>
Line break with multiline if condition
Remove line breaks where allowed.
Signed-off-by: Dan Rose <dan@digilabs.io>
Fixup after rebase
Signed-off-by: Dan Rose <dan@digilabs.io>
Fixup again after reverting indent_paren_open_brace
Signed-off-by: Dan Rose <dan@digilabs.io>
* Revert comment spacing change, condense some lines
Signed-off-by: Dan Rose <dan@digilabs.io>
Adapt to '--ros-args ... [--]'-based ROS args extraction (#816)
* Use --ros-args to deal with node arguments in rclcpp.
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
* Document implicit --ros-args flag in NodeOptions::arguments().
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
* Add missing size_t to int cast.
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
* Only add implicit --ros-args flag if not present already.
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
* Add some rclcpp::NodeOptions test coverage.
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
* Address peer review comments.
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
* Please cpplint and uncrustify.
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
Guard against making multiple result requests for a goal handle (#808)
This fixes a runtime error caused by a race condition when making consecutive requests for the
result.
Specifically, this happens if the user provides a result callback when sending a goal and then
calls async_get_result shortly after.
Resolves #783
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
Explain return value of spin_until_future_complete (#792)
Signed-off-by: Dan Rose <dan@digilabs.io>
Allow passing logger by const ref (#820)
Signed-off-by: Karsten Knese <karsten@openrobotics.org>
Delete unnecessary call for get_node_by_group (#823)
Signed-off-by: Tomoya.Fujita <Tomoya.Fujita@sony.com>
Fix get_node_interfaces functions taking a pointer (#821)
Signed-off-by: ivanpauno <ivanpauno@ekumenlabs.com>
add callback group as member variable and constructor arg (#811)
Signed-off-by: bpwilcox <bpwilcox@eng.ucsd.edu>
remove callback group as member variable
Wrap documentation examples in code blocks (#830)
This makes the code examples easier to read in the generated documentation.
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
Crash in callback group pointer vector iterator (#814)
Signed-off-by: Guillaume Autran <gautran@clearpath.ai>
add mutex in add/remove_node and wait_for_work to protect concurrent use/change of memory_strategy_ (#837)
Signed-off-by: Dirk Thomas <dirk-thomas@users.noreply.github.com>
Fix hang with timers in MultiThreadedExecutor (#835) (#836)
Signed-off-by: Todd Malsbary <todd.malsbary@intel.com>
Use of -r/--remap flags where appropriate. (#834)
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
Force explicit --ros-args in NodeOptions::arguments(). (#845)
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
Fail on invalid and unknown ROS specific arguments (#842)
* Fail on invalid and unknown ROS specific arguments.
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
* Revert changes to utilities.hpp in rclcpp
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
* Fully revert change to utilities.hpp
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
Fix typo in deprecated warning. (#848)
"it's" instead of its
Signed-off-by: Luca Della Vedova <luca@openrobotics.org>
Add throwing parameter name if parameter is not set (#833)
* added throwing parameter name if parameter is not set
Signed-off-by: Alex <cvbn127@gmail.com>
Signed-off-by: ivanpauno <ivanpauno@ekumenlabs.com>
check valid timer handler 1st to reduce the time window for scan. (#841)
Signed-off-by: Tomoya.Fujita <Tomoya.Fujita@sony.com>
remove features and related code which were deprecated in dashing (#852)
Signed-off-by: William Woodall <william@osrfoundation.org>
reset error message before setting a new one, embed the original one (#854)
Signed-off-by: Dirk Thomas <dirk-thomas@users.noreply.github.com>
restored virtual destructor in publisher_base
Signed-off-by: Soragna, Alberto <alberto.soragna@gmail.com>
* fixup a few things after rebase
Signed-off-by: William Woodall <william@osrfoundation.org>
* refactor some API's and get code compiling again
Signed-off-by: William Woodall <william@osrfoundation.org>
* docs and style changes (whitespace)
Signed-off-by: William Woodall <william@osrfoundation.org>
* move new intra process internals into experimental namespace
Signed-off-by: William Woodall <william@osrfoundation.org>
* uncrustify
Signed-off-by: William Woodall <william@osrfoundation.org>
* fix issues with LoanedMessages after rebase
Signed-off-by: William Woodall <william@osrfoundation.org>
* more fixups
Signed-off-by: William Woodall <william@osrfoundation.org>
* readd logic for avoiding in compatible QoS
Signed-off-by: William Woodall <william@osrfoundation.org>
* avoid an error when intra process is disabled
Signed-off-by: William Woodall <william@osrfoundation.org>
* change intra process to preserve pointer in cyclic_pipeline
Signed-off-by: William Woodall <william@osrfoundation.org>
* fix issue matching topics in intra process
Signed-off-by: William Woodall <william@osrfoundation.org>
* fix some issues with the tests after latest behavior change
Signed-off-by: William Woodall <william@osrfoundation.org>
* address review feedback
Signed-off-by: William Woodall <william@osrfoundation.org>
* fix the initialization order
Signed-off-by: William Woodall <william@osrfoundation.org>
* avoid possible loss of data warning
Signed-off-by: William Woodall <william@osrfoundation.org>
* more fixes related to initialization
Signed-off-by: William Woodall <william@osrfoundation.org>
* fix use of custom allocators
Signed-off-by: William Woodall <william@osrfoundation.org>
2019-10-21 22:46:38 +02:00
|
|
|
target_link_libraries(test_intra_process_manager ${PROJECT_NAME})
|
2015-11-05 18:55:52 -08:00
|
|
|
endif()
|
New Intra-Process Communication (#778)
* basic ipc implementation from alsora/new_ipc_proposal
Signed-off-by: alberto <alberto.soragna@gmail.com>
better use of node_topic create subscription
Signed-off-by: alberto <alberto.soragna@gmail.com>
added intra process manager test
Signed-off-by: alberto <alberto.soragna@gmail.com>
fixed ring buffer and added test
Signed-off-by: alberto <alberto.soragna@gmail.com>
added intra process buffer test
Signed-off-by: alberto <alberto.soragna@gmail.com>
added intra process buffer test
Signed-off-by: alberto <alberto.soragna@gmail.com>
Signed-off-by: alberto <alberto.soragna@gmail.com>
removed intra-process methods from subscription base
Signed-off-by: alberto <alberto.soragna@gmail.com>
using lock_guard instead of unique_lock, renamed var without camel case
Signed-off-by: alberto <alberto.soragna@gmail.com>
using unordered set and references in intra process manager
Signed-off-by: alberto <alberto.soragna@gmail.com>
subscription intra-process does not depend anymore on subscription, but has a copy of the callback
Signed-off-by: alberto <alberto.soragna@gmail.com>
changed buffer API to use rvo
Signed-off-by: Alberto <alberto.soragna@gmail.com>
avoid copying shared_ptr
Signed-off-by: alberto <alberto.soragna@gmail.com>
revert not needed changes to create_subscription
Signed-off-by: alberto <alberto.soragna@gmail.com>
updated tests according to new buffer APIs
Signed-off-by: alberto <alberto.soragna@gmail.com>
updated types in ring buffer implementation avoid using uint32_t
Signed-off-by: alberto <alberto.soragna@gmail.com>
using unique ptr for buffers in subscription_intra_process
Signed-off-by: alberto <alberto.soragna@gmail.com>
added missing std::move in subscription_intra_process constructor
Signed-off-by: alberto <alberto.soragna@gmail.com>
use consisting names for ring_buffer_implementation members
Signed-off-by: alberto <alberto.soragna@gmail.com>
addressing typos, one-liners and similar from ivanpauno review
Signed-off-by: alberto <alberto.soragna@gmail.com>
moved subscription_intra_process_base to its own files and moved non templated method from derived class
Signed-off-by: alberto <alberto.soragna@gmail.com>
removed forward declarations, fixed include subscription_intra_process_base
Signed-off-by: alberto <alberto.soragna@gmail.com>
removed member variable from do_intra_process_publish signature
Signed-off-by: alberto <alberto.soragna@gmail.com>
declare public before private in intra_process_manager_impl
Signed-off-by: alberto <alberto.soragna@gmail.com>
made matches_any_intra_process_publishers const
Signed-off-by: alberto <alberto.soragna@gmail.com>
using const reference in get_all_matching_publishers
Signed-off-by: alberto <alberto.soragna@gmail.com>
added deleter and alloc templates in intra_process_buffer
Signed-off-by: alberto <alberto.soragna@gmail.com>
added RCLCPP_WARN to intra_process_manager_impl
Signed-off-by: alberto <alberto.soragna@gmail.com>
passing context from node to subscription_intra_process
Signed-off-by: alberto <alberto.soragna@gmail.com>
using allocators in intra_process_manager
Signed-off-by: alberto <alberto.soragna@gmail.com>
use size_t instead of int in ring buffer indices
Signed-off-by: alberto <alberto.soragna@gmail.com>
creating buffer inside subscription_intra_process constructor
Signed-off-by: alberto <alberto.soragna@gmail.com>
fix lint errors
Signed-off-by: alberto <alberto.soragna@gmail.com>
throw error if trying to dequeue when buffer empty; remove duplicated methods in intra_process_buffer
Signed-off-by: alberto <alberto.soragna@gmail.com>
added todo for creating an rmw function for checking qos compatibility
Signed-off-by: alberto <alberto.soragna@gmail.com>
test fixes
Signed-off-by: alberto <alberto.soragna@gmail.com>
refactored intra_process_manager, removed ipm impl
Signed-off-by: alberto <alberto.soragna@gmail.com>
added mutex in intra_process_manager add_* methods
Signed-off-by: Soragna, Alberto <alberto.soragna@gmail.com>
added allocator to intra_process_buffer
Signed-off-by: Soragna, Alberto <alberto.soragna@gmail.com>
added invalid intra_process qos test for subscription
Signed-off-by: Soragna, Alberto <alberto.soragna@gmail.com>
throw error if history size is 0 with keep last and ipc
Signed-off-by: Soragna, Alberto <alberto.soragna@gmail.com>
using allocator when creating unique_ptr from shared_ptr
Signed-off-by: Soragna, Alberto <alberto.soragna@gmail.com>
adding deleter template argument to intra_process buffer
Signed-off-by: Soragna, Alberto <alberto.soragna@gmail.com>
fix linter
Signed-off-by: Soragna, Alberto <alberto.soragna@gmail.com>
throw error with callbackT different from messageT
Signed-off-by: Soragna, Alberto <alberto.soragna@gmail.com>
updated deleter template argument in subscription factory
Signed-off-by: Soragna, Alberto <alberto.soragna@gmail.com>
Fix typo in test fixture tear down method name (#787)
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
Add free function for creating service clients (#788)
Equivalent to the free function for creating a service.
Resolves #768
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
Cmake infrastructure for creating components (#784)
*cmake macro to create components for libraries with multiple nodes
Signed-off-by: Siddharth Kucheria <kucheria@usc.edu>
Allow registering multiple on_parameters_set_callback (#772)
Signed-off-by: ivanpauno <ivanpauno@ekumenlabs.com>
fix for multiple nodes not being recognized (#790)
Signed-off-by: Siddharth Kucheria <kucheria@usc.edu>
Remove non-package from ament_target_dependencies() (#793)
Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
fix linter issue (#795)
Signed-off-by: Siddharth Kucheria <kucheria@usc.edu>
Make TimeSource ignore use_sim_time events coming from other nodes. (#799)
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
passing deleter template parameter
Signed-off-by: Soragna, Alberto <alberto.soragna@gmail.com>
small fixes for failing tests
Signed-off-by: Soragna, Alberto <alberto.soragna@gmail.com>
fixed imports in test_intra_process_manager
Signed-off-by: Soragna, Alberto <alberto.soragna@gmail.com>
using RCLCPP_SMART_PTR_ALIASES_ONLY and RCLCPP_PUBLIC macros
Signed-off-by: Soragna, Alberto <alberto.soragna@gmail.com>
added RCLCPP_PUBLIC macros and virtual destructor to sub intra_process base
Signed-off-by: Soragna, Alberto <alberto.soragna@gmail.com>
added unique_ptr alias to macros
Signed-off-by: Soragna, Alberto <alberto.soragna@gmail.com>
updated test_intra_process_manager.cpp
Signed-off-by: Soragna, Alberto <alberto.soragna@gmail.com>
remove mock msgs from rclcpp (#800)
Signed-off-by: Karsten Knese <karsten@openrobotics.org>
Add line break after first open paren in multiline function call (#785)
* Add line break after first open paren in multiline function call
as per developer guide:
https://index.ros.org/doc/ros2/Contributing/Developer-Guide/#open-versus-cuddled-braces
see https://github.com/ament/ament_lint/pull/148
Signed-off-by: Dan Rose <dan@digilabs.io>
Fix dedent when first function argument starts with a brace
Signed-off-by: Dan Rose <dan@digilabs.io>
Line break with multiline if condition
Remove line breaks where allowed.
Signed-off-by: Dan Rose <dan@digilabs.io>
Fixup after rebase
Signed-off-by: Dan Rose <dan@digilabs.io>
Fixup again after reverting indent_paren_open_brace
Signed-off-by: Dan Rose <dan@digilabs.io>
* Revert comment spacing change, condense some lines
Signed-off-by: Dan Rose <dan@digilabs.io>
Adapt to '--ros-args ... [--]'-based ROS args extraction (#816)
* Use --ros-args to deal with node arguments in rclcpp.
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
* Document implicit --ros-args flag in NodeOptions::arguments().
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
* Add missing size_t to int cast.
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
* Only add implicit --ros-args flag if not present already.
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
* Add some rclcpp::NodeOptions test coverage.
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
* Address peer review comments.
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
* Please cpplint and uncrustify.
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
Guard against making multiple result requests for a goal handle (#808)
This fixes a runtime error caused by a race condition when making consecutive requests for the
result.
Specifically, this happens if the user provides a result callback when sending a goal and then
calls async_get_result shortly after.
Resolves #783
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
Explain return value of spin_until_future_complete (#792)
Signed-off-by: Dan Rose <dan@digilabs.io>
Allow passing logger by const ref (#820)
Signed-off-by: Karsten Knese <karsten@openrobotics.org>
Delete unnecessary call for get_node_by_group (#823)
Signed-off-by: Tomoya.Fujita <Tomoya.Fujita@sony.com>
Fix get_node_interfaces functions taking a pointer (#821)
Signed-off-by: ivanpauno <ivanpauno@ekumenlabs.com>
add callback group as member variable and constructor arg (#811)
Signed-off-by: bpwilcox <bpwilcox@eng.ucsd.edu>
remove callback group as member variable
Wrap documentation examples in code blocks (#830)
This makes the code examples easier to read in the generated documentation.
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
Crash in callback group pointer vector iterator (#814)
Signed-off-by: Guillaume Autran <gautran@clearpath.ai>
add mutex in add/remove_node and wait_for_work to protect concurrent use/change of memory_strategy_ (#837)
Signed-off-by: Dirk Thomas <dirk-thomas@users.noreply.github.com>
Fix hang with timers in MultiThreadedExecutor (#835) (#836)
Signed-off-by: Todd Malsbary <todd.malsbary@intel.com>
Use of -r/--remap flags where appropriate. (#834)
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
Force explicit --ros-args in NodeOptions::arguments(). (#845)
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
Fail on invalid and unknown ROS specific arguments (#842)
* Fail on invalid and unknown ROS specific arguments.
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
* Revert changes to utilities.hpp in rclcpp
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
* Fully revert change to utilities.hpp
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
Fix typo in deprecated warning. (#848)
"it's" instead of its
Signed-off-by: Luca Della Vedova <luca@openrobotics.org>
Add throwing parameter name if parameter is not set (#833)
* added throwing parameter name if parameter is not set
Signed-off-by: Alex <cvbn127@gmail.com>
Signed-off-by: ivanpauno <ivanpauno@ekumenlabs.com>
check valid timer handler 1st to reduce the time window for scan. (#841)
Signed-off-by: Tomoya.Fujita <Tomoya.Fujita@sony.com>
remove features and related code which were deprecated in dashing (#852)
Signed-off-by: William Woodall <william@osrfoundation.org>
reset error message before setting a new one, embed the original one (#854)
Signed-off-by: Dirk Thomas <dirk-thomas@users.noreply.github.com>
restored virtual destructor in publisher_base
Signed-off-by: Soragna, Alberto <alberto.soragna@gmail.com>
* fixup a few things after rebase
Signed-off-by: William Woodall <william@osrfoundation.org>
* refactor some API's and get code compiling again
Signed-off-by: William Woodall <william@osrfoundation.org>
* docs and style changes (whitespace)
Signed-off-by: William Woodall <william@osrfoundation.org>
* move new intra process internals into experimental namespace
Signed-off-by: William Woodall <william@osrfoundation.org>
* uncrustify
Signed-off-by: William Woodall <william@osrfoundation.org>
* fix issues with LoanedMessages after rebase
Signed-off-by: William Woodall <william@osrfoundation.org>
* more fixups
Signed-off-by: William Woodall <william@osrfoundation.org>
* readd logic for avoiding in compatible QoS
Signed-off-by: William Woodall <william@osrfoundation.org>
* avoid an error when intra process is disabled
Signed-off-by: William Woodall <william@osrfoundation.org>
* change intra process to preserve pointer in cyclic_pipeline
Signed-off-by: William Woodall <william@osrfoundation.org>
* fix issue matching topics in intra process
Signed-off-by: William Woodall <william@osrfoundation.org>
* fix some issues with the tests after latest behavior change
Signed-off-by: William Woodall <william@osrfoundation.org>
* address review feedback
Signed-off-by: William Woodall <william@osrfoundation.org>
* fix the initialization order
Signed-off-by: William Woodall <william@osrfoundation.org>
* avoid possible loss of data warning
Signed-off-by: William Woodall <william@osrfoundation.org>
* more fixes related to initialization
Signed-off-by: William Woodall <william@osrfoundation.org>
* fix use of custom allocators
Signed-off-by: William Woodall <william@osrfoundation.org>
2019-10-21 22:46:38 +02:00
|
|
|
ament_add_gtest(test_ring_buffer_implementation test/test_ring_buffer_implementation.cpp)
|
|
|
|
if(TARGET test_ring_buffer_implementation)
|
|
|
|
ament_target_dependencies(test_ring_buffer_implementation
|
|
|
|
"rcl_interfaces"
|
|
|
|
"rmw"
|
|
|
|
"rosidl_generator_cpp"
|
|
|
|
"rosidl_typesupport_cpp"
|
|
|
|
)
|
|
|
|
target_link_libraries(test_ring_buffer_implementation ${PROJECT_NAME})
|
|
|
|
endif()
|
|
|
|
ament_add_gtest(test_intra_process_buffer test/test_intra_process_buffer.cpp)
|
|
|
|
if(TARGET test_intra_process_buffer)
|
|
|
|
ament_target_dependencies(test_intra_process_buffer
|
2019-03-19 09:23:10 -03:00
|
|
|
"rcl_interfaces"
|
|
|
|
"rmw"
|
|
|
|
"rosidl_generator_cpp"
|
|
|
|
"rosidl_typesupport_cpp"
|
2015-11-05 18:55:52 -08:00
|
|
|
)
|
New Intra-Process Communication (#778)
* basic ipc implementation from alsora/new_ipc_proposal
Signed-off-by: alberto <alberto.soragna@gmail.com>
better use of node_topic create subscription
Signed-off-by: alberto <alberto.soragna@gmail.com>
added intra process manager test
Signed-off-by: alberto <alberto.soragna@gmail.com>
fixed ring buffer and added test
Signed-off-by: alberto <alberto.soragna@gmail.com>
added intra process buffer test
Signed-off-by: alberto <alberto.soragna@gmail.com>
added intra process buffer test
Signed-off-by: alberto <alberto.soragna@gmail.com>
Signed-off-by: alberto <alberto.soragna@gmail.com>
removed intra-process methods from subscription base
Signed-off-by: alberto <alberto.soragna@gmail.com>
using lock_guard instead of unique_lock, renamed var without camel case
Signed-off-by: alberto <alberto.soragna@gmail.com>
using unordered set and references in intra process manager
Signed-off-by: alberto <alberto.soragna@gmail.com>
subscription intra-process does not depend anymore on subscription, but has a copy of the callback
Signed-off-by: alberto <alberto.soragna@gmail.com>
changed buffer API to use rvo
Signed-off-by: Alberto <alberto.soragna@gmail.com>
avoid copying shared_ptr
Signed-off-by: alberto <alberto.soragna@gmail.com>
revert not needed changes to create_subscription
Signed-off-by: alberto <alberto.soragna@gmail.com>
updated tests according to new buffer APIs
Signed-off-by: alberto <alberto.soragna@gmail.com>
updated types in ring buffer implementation avoid using uint32_t
Signed-off-by: alberto <alberto.soragna@gmail.com>
using unique ptr for buffers in subscription_intra_process
Signed-off-by: alberto <alberto.soragna@gmail.com>
added missing std::move in subscription_intra_process constructor
Signed-off-by: alberto <alberto.soragna@gmail.com>
use consisting names for ring_buffer_implementation members
Signed-off-by: alberto <alberto.soragna@gmail.com>
addressing typos, one-liners and similar from ivanpauno review
Signed-off-by: alberto <alberto.soragna@gmail.com>
moved subscription_intra_process_base to its own files and moved non templated method from derived class
Signed-off-by: alberto <alberto.soragna@gmail.com>
removed forward declarations, fixed include subscription_intra_process_base
Signed-off-by: alberto <alberto.soragna@gmail.com>
removed member variable from do_intra_process_publish signature
Signed-off-by: alberto <alberto.soragna@gmail.com>
declare public before private in intra_process_manager_impl
Signed-off-by: alberto <alberto.soragna@gmail.com>
made matches_any_intra_process_publishers const
Signed-off-by: alberto <alberto.soragna@gmail.com>
using const reference in get_all_matching_publishers
Signed-off-by: alberto <alberto.soragna@gmail.com>
added deleter and alloc templates in intra_process_buffer
Signed-off-by: alberto <alberto.soragna@gmail.com>
added RCLCPP_WARN to intra_process_manager_impl
Signed-off-by: alberto <alberto.soragna@gmail.com>
passing context from node to subscription_intra_process
Signed-off-by: alberto <alberto.soragna@gmail.com>
using allocators in intra_process_manager
Signed-off-by: alberto <alberto.soragna@gmail.com>
use size_t instead of int in ring buffer indices
Signed-off-by: alberto <alberto.soragna@gmail.com>
creating buffer inside subscription_intra_process constructor
Signed-off-by: alberto <alberto.soragna@gmail.com>
fix lint errors
Signed-off-by: alberto <alberto.soragna@gmail.com>
throw error if trying to dequeue when buffer empty; remove duplicated methods in intra_process_buffer
Signed-off-by: alberto <alberto.soragna@gmail.com>
added todo for creating an rmw function for checking qos compatibility
Signed-off-by: alberto <alberto.soragna@gmail.com>
test fixes
Signed-off-by: alberto <alberto.soragna@gmail.com>
refactored intra_process_manager, removed ipm impl
Signed-off-by: alberto <alberto.soragna@gmail.com>
added mutex in intra_process_manager add_* methods
Signed-off-by: Soragna, Alberto <alberto.soragna@gmail.com>
added allocator to intra_process_buffer
Signed-off-by: Soragna, Alberto <alberto.soragna@gmail.com>
added invalid intra_process qos test for subscription
Signed-off-by: Soragna, Alberto <alberto.soragna@gmail.com>
throw error if history size is 0 with keep last and ipc
Signed-off-by: Soragna, Alberto <alberto.soragna@gmail.com>
using allocator when creating unique_ptr from shared_ptr
Signed-off-by: Soragna, Alberto <alberto.soragna@gmail.com>
adding deleter template argument to intra_process buffer
Signed-off-by: Soragna, Alberto <alberto.soragna@gmail.com>
fix linter
Signed-off-by: Soragna, Alberto <alberto.soragna@gmail.com>
throw error with callbackT different from messageT
Signed-off-by: Soragna, Alberto <alberto.soragna@gmail.com>
updated deleter template argument in subscription factory
Signed-off-by: Soragna, Alberto <alberto.soragna@gmail.com>
Fix typo in test fixture tear down method name (#787)
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
Add free function for creating service clients (#788)
Equivalent to the free function for creating a service.
Resolves #768
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
Cmake infrastructure for creating components (#784)
*cmake macro to create components for libraries with multiple nodes
Signed-off-by: Siddharth Kucheria <kucheria@usc.edu>
Allow registering multiple on_parameters_set_callback (#772)
Signed-off-by: ivanpauno <ivanpauno@ekumenlabs.com>
fix for multiple nodes not being recognized (#790)
Signed-off-by: Siddharth Kucheria <kucheria@usc.edu>
Remove non-package from ament_target_dependencies() (#793)
Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
fix linter issue (#795)
Signed-off-by: Siddharth Kucheria <kucheria@usc.edu>
Make TimeSource ignore use_sim_time events coming from other nodes. (#799)
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
passing deleter template parameter
Signed-off-by: Soragna, Alberto <alberto.soragna@gmail.com>
small fixes for failing tests
Signed-off-by: Soragna, Alberto <alberto.soragna@gmail.com>
fixed imports in test_intra_process_manager
Signed-off-by: Soragna, Alberto <alberto.soragna@gmail.com>
using RCLCPP_SMART_PTR_ALIASES_ONLY and RCLCPP_PUBLIC macros
Signed-off-by: Soragna, Alberto <alberto.soragna@gmail.com>
added RCLCPP_PUBLIC macros and virtual destructor to sub intra_process base
Signed-off-by: Soragna, Alberto <alberto.soragna@gmail.com>
added unique_ptr alias to macros
Signed-off-by: Soragna, Alberto <alberto.soragna@gmail.com>
updated test_intra_process_manager.cpp
Signed-off-by: Soragna, Alberto <alberto.soragna@gmail.com>
remove mock msgs from rclcpp (#800)
Signed-off-by: Karsten Knese <karsten@openrobotics.org>
Add line break after first open paren in multiline function call (#785)
* Add line break after first open paren in multiline function call
as per developer guide:
https://index.ros.org/doc/ros2/Contributing/Developer-Guide/#open-versus-cuddled-braces
see https://github.com/ament/ament_lint/pull/148
Signed-off-by: Dan Rose <dan@digilabs.io>
Fix dedent when first function argument starts with a brace
Signed-off-by: Dan Rose <dan@digilabs.io>
Line break with multiline if condition
Remove line breaks where allowed.
Signed-off-by: Dan Rose <dan@digilabs.io>
Fixup after rebase
Signed-off-by: Dan Rose <dan@digilabs.io>
Fixup again after reverting indent_paren_open_brace
Signed-off-by: Dan Rose <dan@digilabs.io>
* Revert comment spacing change, condense some lines
Signed-off-by: Dan Rose <dan@digilabs.io>
Adapt to '--ros-args ... [--]'-based ROS args extraction (#816)
* Use --ros-args to deal with node arguments in rclcpp.
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
* Document implicit --ros-args flag in NodeOptions::arguments().
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
* Add missing size_t to int cast.
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
* Only add implicit --ros-args flag if not present already.
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
* Add some rclcpp::NodeOptions test coverage.
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
* Address peer review comments.
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
* Please cpplint and uncrustify.
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
Guard against making multiple result requests for a goal handle (#808)
This fixes a runtime error caused by a race condition when making consecutive requests for the
result.
Specifically, this happens if the user provides a result callback when sending a goal and then
calls async_get_result shortly after.
Resolves #783
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
Explain return value of spin_until_future_complete (#792)
Signed-off-by: Dan Rose <dan@digilabs.io>
Allow passing logger by const ref (#820)
Signed-off-by: Karsten Knese <karsten@openrobotics.org>
Delete unnecessary call for get_node_by_group (#823)
Signed-off-by: Tomoya.Fujita <Tomoya.Fujita@sony.com>
Fix get_node_interfaces functions taking a pointer (#821)
Signed-off-by: ivanpauno <ivanpauno@ekumenlabs.com>
add callback group as member variable and constructor arg (#811)
Signed-off-by: bpwilcox <bpwilcox@eng.ucsd.edu>
remove callback group as member variable
Wrap documentation examples in code blocks (#830)
This makes the code examples easier to read in the generated documentation.
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
Crash in callback group pointer vector iterator (#814)
Signed-off-by: Guillaume Autran <gautran@clearpath.ai>
add mutex in add/remove_node and wait_for_work to protect concurrent use/change of memory_strategy_ (#837)
Signed-off-by: Dirk Thomas <dirk-thomas@users.noreply.github.com>
Fix hang with timers in MultiThreadedExecutor (#835) (#836)
Signed-off-by: Todd Malsbary <todd.malsbary@intel.com>
Use of -r/--remap flags where appropriate. (#834)
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
Force explicit --ros-args in NodeOptions::arguments(). (#845)
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
Fail on invalid and unknown ROS specific arguments (#842)
* Fail on invalid and unknown ROS specific arguments.
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
* Revert changes to utilities.hpp in rclcpp
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
* Fully revert change to utilities.hpp
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
Fix typo in deprecated warning. (#848)
"it's" instead of its
Signed-off-by: Luca Della Vedova <luca@openrobotics.org>
Add throwing parameter name if parameter is not set (#833)
* added throwing parameter name if parameter is not set
Signed-off-by: Alex <cvbn127@gmail.com>
Signed-off-by: ivanpauno <ivanpauno@ekumenlabs.com>
check valid timer handler 1st to reduce the time window for scan. (#841)
Signed-off-by: Tomoya.Fujita <Tomoya.Fujita@sony.com>
remove features and related code which were deprecated in dashing (#852)
Signed-off-by: William Woodall <william@osrfoundation.org>
reset error message before setting a new one, embed the original one (#854)
Signed-off-by: Dirk Thomas <dirk-thomas@users.noreply.github.com>
restored virtual destructor in publisher_base
Signed-off-by: Soragna, Alberto <alberto.soragna@gmail.com>
* fixup a few things after rebase
Signed-off-by: William Woodall <william@osrfoundation.org>
* refactor some API's and get code compiling again
Signed-off-by: William Woodall <william@osrfoundation.org>
* docs and style changes (whitespace)
Signed-off-by: William Woodall <william@osrfoundation.org>
* move new intra process internals into experimental namespace
Signed-off-by: William Woodall <william@osrfoundation.org>
* uncrustify
Signed-off-by: William Woodall <william@osrfoundation.org>
* fix issues with LoanedMessages after rebase
Signed-off-by: William Woodall <william@osrfoundation.org>
* more fixups
Signed-off-by: William Woodall <william@osrfoundation.org>
* readd logic for avoiding in compatible QoS
Signed-off-by: William Woodall <william@osrfoundation.org>
* avoid an error when intra process is disabled
Signed-off-by: William Woodall <william@osrfoundation.org>
* change intra process to preserve pointer in cyclic_pipeline
Signed-off-by: William Woodall <william@osrfoundation.org>
* fix issue matching topics in intra process
Signed-off-by: William Woodall <william@osrfoundation.org>
* fix some issues with the tests after latest behavior change
Signed-off-by: William Woodall <william@osrfoundation.org>
* address review feedback
Signed-off-by: William Woodall <william@osrfoundation.org>
* fix the initialization order
Signed-off-by: William Woodall <william@osrfoundation.org>
* avoid possible loss of data warning
Signed-off-by: William Woodall <william@osrfoundation.org>
* more fixes related to initialization
Signed-off-by: William Woodall <william@osrfoundation.org>
* fix use of custom allocators
Signed-off-by: William Woodall <william@osrfoundation.org>
2019-10-21 22:46:38 +02:00
|
|
|
target_link_libraries(test_intra_process_buffer ${PROJECT_NAME})
|
2015-08-19 13:10:15 -07:00
|
|
|
endif()
|
2019-10-18 14:51:24 -07:00
|
|
|
|
|
|
|
ament_add_gtest(test_loaned_message test/test_loaned_message.cpp)
|
|
|
|
ament_target_dependencies(test_loaned_message
|
|
|
|
"test_msgs"
|
|
|
|
)
|
|
|
|
target_link_libraries(test_loaned_message ${PROJECT_NAME})
|
|
|
|
|
2017-05-30 18:25:11 -07:00
|
|
|
ament_add_gtest(test_node test/test_node.cpp)
|
|
|
|
if(TARGET test_node)
|
2019-03-19 09:23:10 -03:00
|
|
|
ament_target_dependencies(test_node
|
|
|
|
"rcl_interfaces"
|
2019-09-25 14:57:49 -03:00
|
|
|
"rcpputils"
|
2019-03-19 09:23:10 -03:00
|
|
|
"rmw"
|
|
|
|
"rosidl_generator_cpp"
|
|
|
|
"rosidl_typesupport_cpp"
|
2017-05-30 18:25:11 -07:00
|
|
|
)
|
|
|
|
target_link_libraries(test_node ${PROJECT_NAME})
|
|
|
|
endif()
|
2019-05-08 14:24:40 -07:00
|
|
|
|
|
|
|
ament_add_gtest(test_node_interfaces__get_node_interfaces
|
|
|
|
test/node_interfaces/test_get_node_interfaces.cpp)
|
|
|
|
if(TARGET test_node_interfaces__get_node_interfaces)
|
|
|
|
target_link_libraries(test_node_interfaces__get_node_interfaces ${PROJECT_NAME})
|
|
|
|
endif()
|
|
|
|
|
|
|
|
# TODO(wjwwood): reenable these build failure tests when I can get Jenkins to ignore their output
|
|
|
|
# rclcpp_add_build_failure_test(build_failure__get_node_topics_interface_const_ref_rclcpp_node
|
|
|
|
# test/node_interfaces/test_does_not_compile/get_node_topics_interface_const_ref_rclcpp_node.cpp)
|
|
|
|
# target_link_libraries(build_failure__get_node_topics_interface_const_ref_rclcpp_node
|
|
|
|
# ${PROJECT_NAME})
|
|
|
|
|
|
|
|
# rclcpp_add_build_failure_test(build_failure__get_node_topics_interface_const_ptr_rclcpp_node
|
|
|
|
# test/node_interfaces/test_does_not_compile/get_node_topics_interface_const_ptr_rclcpp_node.cpp)
|
|
|
|
# target_link_libraries(build_failure__get_node_topics_interface_const_ptr_rclcpp_node
|
|
|
|
# ${PROJECT_NAME})
|
|
|
|
|
|
|
|
# rclcpp_add_build_failure_test(build_failure__get_node_topics_interface_const_ref_wrapped_node
|
|
|
|
# test/node_interfaces/test_does_not_compile/get_node_topics_interface_const_ref_wrapped_node.cpp)
|
|
|
|
# target_link_libraries(build_failure__get_node_topics_interface_const_ref_rclcpp_node
|
|
|
|
# ${PROJECT_NAME})
|
|
|
|
|
|
|
|
# rclcpp_add_build_failure_test(build_failure__get_node_topics_interface_const_ptr_wrapped_node
|
|
|
|
# test/node_interfaces/test_does_not_compile/get_node_topics_interface_const_ptr_wrapped_node.cpp)
|
|
|
|
# target_link_libraries(build_failure__get_node_topics_interface_const_ptr_rclcpp_node
|
|
|
|
# ${PROJECT_NAME})
|
|
|
|
|
2018-04-17 10:52:49 -07:00
|
|
|
ament_add_gtest(test_node_global_args test/test_node_global_args.cpp)
|
|
|
|
if(TARGET test_node_global_args)
|
2019-03-19 09:23:10 -03:00
|
|
|
ament_target_dependencies(test_node_global_args
|
|
|
|
"rcl_interfaces"
|
|
|
|
"rmw"
|
|
|
|
"rosidl_generator_cpp"
|
|
|
|
"rosidl_typesupport_cpp"
|
2018-04-17 10:52:49 -07:00
|
|
|
)
|
|
|
|
target_link_libraries(test_node_global_args ${PROJECT_NAME})
|
|
|
|
endif()
|
2019-08-07 12:58:25 -03:00
|
|
|
ament_add_gtest(test_node_options test/test_node_options.cpp)
|
|
|
|
if(TARGET test_node_options)
|
|
|
|
ament_target_dependencies(test_node_options "rcl")
|
|
|
|
target_link_libraries(test_node_options ${PROJECT_NAME})
|
|
|
|
endif()
|
2019-05-16 21:45:10 +01:00
|
|
|
ament_add_gtest(test_parameter_client test/test_parameter_client.cpp)
|
|
|
|
if(TARGET test_parameter_client)
|
|
|
|
ament_target_dependencies(test_parameter_client
|
|
|
|
"rcl_interfaces"
|
|
|
|
)
|
|
|
|
target_link_libraries(test_parameter_client ${PROJECT_NAME})
|
|
|
|
endif()
|
2017-11-29 11:11:18 -08:00
|
|
|
ament_add_gtest(test_parameter_events_filter test/test_parameter_events_filter.cpp)
|
|
|
|
if(TARGET test_parameter_events_filter)
|
2019-03-19 09:23:10 -03:00
|
|
|
ament_target_dependencies(test_parameter_events_filter
|
|
|
|
"rcl_interfaces"
|
|
|
|
"rmw"
|
|
|
|
"rosidl_generator_cpp"
|
|
|
|
"rosidl_typesupport_cpp"
|
2017-11-29 11:11:18 -08:00
|
|
|
)
|
|
|
|
target_link_libraries(test_parameter_events_filter ${PROJECT_NAME})
|
|
|
|
endif()
|
2018-05-11 00:05:52 +01:00
|
|
|
ament_add_gtest(test_parameter test/test_parameter.cpp)
|
|
|
|
if(TARGET test_parameter)
|
2019-03-19 09:23:10 -03:00
|
|
|
ament_target_dependencies(test_parameter
|
|
|
|
"rcl_interfaces"
|
|
|
|
"rmw"
|
|
|
|
"rosidl_generator_cpp"
|
|
|
|
"rosidl_typesupport_cpp"
|
2018-05-11 00:05:52 +01:00
|
|
|
)
|
|
|
|
target_link_libraries(test_parameter ${PROJECT_NAME})
|
|
|
|
endif()
|
2018-06-05 10:54:08 -07:00
|
|
|
ament_add_gtest(test_parameter_map test/test_parameter_map.cpp)
|
|
|
|
if(TARGET test_parameter_map)
|
|
|
|
target_link_libraries(test_parameter_map ${PROJECT_NAME})
|
|
|
|
endif()
|
2017-05-30 18:25:11 -07:00
|
|
|
ament_add_gtest(test_publisher test/test_publisher.cpp)
|
|
|
|
if(TARGET test_publisher)
|
2019-03-19 09:23:10 -03:00
|
|
|
ament_target_dependencies(test_publisher
|
|
|
|
"rcl_interfaces"
|
|
|
|
"rmw"
|
|
|
|
"rosidl_generator_cpp"
|
|
|
|
"rosidl_typesupport_cpp"
|
2017-05-30 18:25:11 -07:00
|
|
|
)
|
|
|
|
target_link_libraries(test_publisher ${PROJECT_NAME})
|
|
|
|
endif()
|
2019-02-21 14:18:06 -03:00
|
|
|
ament_add_gtest(test_publisher_subscription_count_api test/test_publisher_subscription_count_api.cpp)
|
|
|
|
if(TARGET test_publisher_subscription_count_api)
|
2019-03-19 09:23:10 -03:00
|
|
|
ament_target_dependencies(test_publisher_subscription_count_api
|
|
|
|
"rcl_interfaces"
|
|
|
|
"rmw"
|
|
|
|
"rosidl_generator_cpp"
|
|
|
|
"rosidl_typesupport_cpp"
|
2019-02-21 14:18:06 -03:00
|
|
|
)
|
|
|
|
target_link_libraries(test_publisher_subscription_count_api ${PROJECT_NAME})
|
|
|
|
endif()
|
2018-07-11 14:08:09 -07:00
|
|
|
ament_add_gtest(test_rate test/test_rate.cpp)
|
2015-12-15 00:27:46 -08:00
|
|
|
if(TARGET test_rate)
|
2019-03-19 09:23:10 -03:00
|
|
|
ament_target_dependencies(test_rate
|
|
|
|
"rcl_interfaces"
|
|
|
|
"rmw"
|
|
|
|
"rosidl_generator_cpp"
|
|
|
|
"rosidl_typesupport_cpp"
|
2015-12-15 00:27:46 -08:00
|
|
|
)
|
|
|
|
target_link_libraries(test_rate
|
2016-04-26 17:42:57 -07:00
|
|
|
${PROJECT_NAME}
|
2015-12-15 00:27:46 -08:00
|
|
|
)
|
|
|
|
endif()
|
2018-07-11 14:08:09 -07:00
|
|
|
ament_add_gtest(test_serialized_message_allocator test/test_serialized_message_allocator.cpp)
|
2018-06-16 10:36:00 +02:00
|
|
|
if(TARGET test_serialized_message_allocator)
|
2019-03-19 09:23:10 -03:00
|
|
|
ament_target_dependencies(test_serialized_message_allocator
|
|
|
|
test_msgs
|
2018-06-16 10:36:00 +02:00
|
|
|
)
|
|
|
|
target_link_libraries(test_serialized_message_allocator
|
|
|
|
${PROJECT_NAME}
|
|
|
|
)
|
|
|
|
endif()
|
2017-05-30 18:25:11 -07:00
|
|
|
ament_add_gtest(test_service test/test_service.cpp)
|
|
|
|
if(TARGET test_service)
|
2019-03-19 09:23:10 -03:00
|
|
|
ament_target_dependencies(test_service
|
|
|
|
"rcl_interfaces"
|
|
|
|
"rmw"
|
|
|
|
"rosidl_generator_cpp"
|
|
|
|
"rosidl_typesupport_cpp"
|
2017-05-30 18:25:11 -07:00
|
|
|
)
|
|
|
|
target_link_libraries(test_service ${PROJECT_NAME})
|
|
|
|
endif()
|
|
|
|
ament_add_gtest(test_subscription test/test_subscription.cpp)
|
|
|
|
if(TARGET test_subscription)
|
2019-03-19 09:23:10 -03:00
|
|
|
ament_target_dependencies(test_subscription
|
|
|
|
"rcl_interfaces"
|
|
|
|
"rmw"
|
|
|
|
"rosidl_generator_cpp"
|
|
|
|
"rosidl_typesupport_cpp"
|
2017-05-30 18:25:11 -07:00
|
|
|
)
|
|
|
|
target_link_libraries(test_subscription ${PROJECT_NAME})
|
|
|
|
endif()
|
2019-02-21 14:18:06 -03:00
|
|
|
ament_add_gtest(test_subscription_publisher_count_api test/test_subscription_publisher_count_api.cpp)
|
|
|
|
if(TARGET test_subscription_publisher_count_api)
|
2019-03-19 09:23:10 -03:00
|
|
|
ament_target_dependencies(test_subscription_publisher_count_api
|
|
|
|
"rcl_interfaces"
|
|
|
|
"rmw"
|
|
|
|
"rosidl_generator_cpp"
|
|
|
|
"rosidl_typesupport_cpp"
|
2019-02-21 14:18:06 -03:00
|
|
|
)
|
|
|
|
target_link_libraries(test_subscription_publisher_count_api ${PROJECT_NAME})
|
|
|
|
endif()
|
2018-06-16 10:36:00 +02:00
|
|
|
ament_add_gtest(test_subscription_traits test/test_subscription_traits.cpp)
|
|
|
|
if(TARGET test_subscription_traits)
|
2019-03-19 09:23:10 -03:00
|
|
|
ament_target_dependencies(test_subscription_traits
|
|
|
|
"rcl"
|
|
|
|
"test_msgs"
|
2018-06-16 10:36:00 +02:00
|
|
|
)
|
|
|
|
endif()
|
2016-11-17 12:59:50 -05:00
|
|
|
ament_add_gtest(test_find_weak_nodes test/test_find_weak_nodes.cpp)
|
|
|
|
if(TARGET test_find_weak_nodes)
|
2019-03-19 09:23:10 -03:00
|
|
|
ament_target_dependencies(test_find_weak_nodes
|
|
|
|
"rcl"
|
2016-11-17 12:59:50 -05:00
|
|
|
)
|
|
|
|
target_link_libraries(test_find_weak_nodes ${PROJECT_NAME})
|
|
|
|
endif()
|
2016-12-02 01:05:59 -08:00
|
|
|
|
2016-11-18 11:45:18 -08:00
|
|
|
set(append_library_dirs "${CMAKE_CURRENT_BINARY_DIR}")
|
|
|
|
if(WIN32)
|
2016-12-20 11:38:44 -08:00
|
|
|
set(append_library_dirs "${append_library_dirs}/$<CONFIG>")
|
2016-11-18 11:45:18 -08:00
|
|
|
endif()
|
|
|
|
|
2019-08-05 22:43:30 -07:00
|
|
|
ament_add_gtest(test_externally_defined_services test/test_externally_defined_services.cpp)
|
|
|
|
ament_target_dependencies(test_externally_defined_services
|
|
|
|
"rcl"
|
|
|
|
"test_msgs"
|
|
|
|
)
|
|
|
|
target_link_libraries(test_externally_defined_services ${PROJECT_NAME})
|
2017-03-21 17:41:49 -07:00
|
|
|
|
2017-11-16 17:26:56 -08:00
|
|
|
ament_add_gtest(test_duration test/test_duration.cpp
|
|
|
|
APPEND_LIBRARY_DIRS "${append_library_dirs}")
|
|
|
|
if(TARGET test_duration)
|
|
|
|
ament_target_dependencies(test_duration
|
|
|
|
"rcl")
|
|
|
|
target_link_libraries(test_duration ${PROJECT_NAME})
|
|
|
|
endif()
|
|
|
|
|
2017-11-21 11:42:44 -08:00
|
|
|
ament_add_gtest(test_executor test/test_executor.cpp
|
|
|
|
APPEND_LIBRARY_DIRS "${append_library_dirs}")
|
|
|
|
if(TARGET test_executor)
|
|
|
|
ament_target_dependencies(test_executor
|
|
|
|
"rcl")
|
|
|
|
target_link_libraries(test_executor ${PROJECT_NAME})
|
|
|
|
endif()
|
|
|
|
|
2017-12-04 16:07:29 -08:00
|
|
|
ament_add_gtest(test_logger test/test_logger.cpp)
|
|
|
|
target_link_libraries(test_logger ${PROJECT_NAME})
|
|
|
|
|
2017-11-16 17:26:56 -08:00
|
|
|
ament_add_gmock(test_logging test/test_logging.cpp)
|
|
|
|
target_link_libraries(test_logging ${PROJECT_NAME})
|
|
|
|
|
2017-03-21 17:41:49 -07:00
|
|
|
ament_add_gtest(test_time test/test_time.cpp
|
|
|
|
APPEND_LIBRARY_DIRS "${append_library_dirs}")
|
|
|
|
if(TARGET test_time)
|
|
|
|
ament_target_dependencies(test_time
|
|
|
|
"rcl")
|
|
|
|
target_link_libraries(test_time ${PROJECT_NAME})
|
|
|
|
endif()
|
2017-11-15 14:14:09 -08:00
|
|
|
|
2019-04-18 14:29:38 -07:00
|
|
|
ament_add_gtest(test_timer test/test_timer.cpp
|
|
|
|
APPEND_LIBRARY_DIRS "${append_library_dirs}")
|
|
|
|
if(TARGET test_timer)
|
|
|
|
ament_target_dependencies(test_timer
|
|
|
|
"rcl")
|
|
|
|
target_link_libraries(test_timer ${PROJECT_NAME})
|
|
|
|
endif()
|
|
|
|
|
2017-11-16 17:26:56 -08:00
|
|
|
ament_add_gtest(test_time_source test/test_time_source.cpp
|
|
|
|
APPEND_LIBRARY_DIRS "${append_library_dirs}")
|
|
|
|
if(TARGET test_time_source)
|
|
|
|
ament_target_dependencies(test_time_source
|
|
|
|
"rcl")
|
|
|
|
target_link_libraries(test_time_source ${PROJECT_NAME})
|
|
|
|
endif()
|
2018-03-27 14:57:23 -07:00
|
|
|
|
|
|
|
ament_add_gtest(test_utilities test/test_utilities.cpp
|
|
|
|
APPEND_LIBRARY_DIRS "${append_library_dirs}")
|
|
|
|
if(TARGET test_utilities)
|
|
|
|
ament_target_dependencies(test_utilities
|
|
|
|
"rcl")
|
|
|
|
target_link_libraries(test_utilities ${PROJECT_NAME})
|
|
|
|
endif()
|
2018-06-18 20:46:28 -07:00
|
|
|
|
2018-07-26 13:17:33 -07:00
|
|
|
ament_add_gtest(test_init test/test_init.cpp
|
|
|
|
APPEND_LIBRARY_DIRS "${append_library_dirs}")
|
|
|
|
if(TARGET test_init)
|
|
|
|
ament_target_dependencies(test_init
|
|
|
|
"rcl")
|
|
|
|
target_link_libraries(test_init ${PROJECT_NAME})
|
|
|
|
endif()
|
|
|
|
|
2018-06-18 20:46:28 -07:00
|
|
|
ament_add_gtest(test_multi_threaded_executor test/executors/test_multi_threaded_executor.cpp
|
|
|
|
APPEND_LIBRARY_DIRS "${append_library_dirs}")
|
|
|
|
if(TARGET test_multi_threaded_executor)
|
|
|
|
ament_target_dependencies(test_multi_threaded_executor
|
|
|
|
"rcl")
|
|
|
|
target_link_libraries(test_multi_threaded_executor ${PROJECT_NAME})
|
|
|
|
endif()
|
2019-09-25 14:57:49 -03:00
|
|
|
|
|
|
|
# Install test resources
|
|
|
|
install(
|
|
|
|
DIRECTORY test/resources
|
|
|
|
DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/test)
|
2015-03-07 01:24:52 +01:00
|
|
|
endif()
|
|
|
|
|
2019-04-04 11:16:32 -05:00
|
|
|
ament_package()
|
2015-12-07 18:04:19 -08:00
|
|
|
|
2014-07-30 17:57:21 -07:00
|
|
|
install(
|
2017-11-15 14:14:09 -08:00
|
|
|
DIRECTORY include/ ${CMAKE_CURRENT_BINARY_DIR}/include/
|
2014-07-30 17:57:21 -07:00
|
|
|
DESTINATION include
|
|
|
|
)
|