Register RMW output filters.

Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
This commit is contained in:
Michel Hidalgo 2020-04-10 13:19:15 -03:00 committed by eboasson
parent 21dd7c4570
commit f6866c5fc1
2 changed files with 35 additions and 0 deletions

View file

@ -113,3 +113,7 @@ install(
LIBRARY DESTINATION lib
RUNTIME DESTINATION bin
)
include(cmake/get_rmw_cyclonedds_output_filter.cmake)
get_rmw_cyclonedds_output_filter(rmw_cyclonedds_output_patterns)
ament_index_register_resource("rmw_output_patterns" CONTENT "${rmw_cyclonedds_output_patterns}")

View file

@ -0,0 +1,31 @@
# Copyright 2020 Open Source Robotics Foundation, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# Get patterns for output filtering for CycloneDDS RMW.
#
# :param output_patterns: patterns that will be used to identify console
# output generated by CycloneDDS.
# :type output_filter: string
#
# @public
#
macro(get_rmw_cyclonedds_output_filter output_patterns)
if(NOT "${ARGN}" STREQUAL "")
message(FATAL_ERROR "get_rmw_cyclonedds_output_filter() called with "
"unused arguments: ${ARGN}")
endif()
set(${output_patterns} ".*using network interface \\w+ \\(.*\\) selected arbitrarily from:.*")
endmacro()