forked from ros2/rclcpp
-
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.
change API to encourage users to specify history depth always (ros2#713)
* improve interoperability with rclcpp::Duration and std::chrono Signed-off-by: William Woodall <[email protected]> * add to_rmw_time to Duration Signed-off-by: William Woodall <[email protected]> * add new QoS class to rclcpp Signed-off-by: William Woodall <[email protected]> * changes to NodeBase, NodeTopics, etc in preparation for changes to pub/sub Signed-off-by: William Woodall <[email protected]> * refactor publisher creation to use new QoS class Signed-off-by: William Woodall <[email protected]> * refactor subscription creation to use new QoS class Signed-off-by: William Woodall <[email protected]> * fixing fallout from changes to pub/sub creation Signed-off-by: William Woodall <[email protected]> * fixed Windows error: no appropriate default constructor available why? who knows Signed-off-by: William Woodall <[email protected]> * fixed Windows error: could not deduce template argument for 'PublisherT' Signed-off-by: William Woodall <[email protected]> * fix missing vftable linker error on Windows Signed-off-by: William Woodall <[email protected]> * fix more cases of no suitable default constructor errors... Signed-off-by: William Woodall <[email protected]> * prevent msvc from trying to interpret some cases as functions Signed-off-by: William Woodall <[email protected]> * uncrustify Signed-off-by: William Woodall <[email protected]> * cpplint Signed-off-by: William Woodall <[email protected]> * add C++ version of default action qos Signed-off-by: William Woodall <[email protected]> * fixing lifecycle subscription signatures Signed-off-by: William Woodall <[email protected]> * fix allocators (we actually use this already in the pub/sub factory) Signed-off-by: William Woodall <[email protected]> * suppress cppcheck on false positive syntax error Signed-off-by: William Woodall <[email protected]> * fix more cppcheck syntax error false positives Signed-off-by: William Woodall <[email protected]> * fix case where sub-type of QoS is used Signed-off-by: William Woodall <[email protected]> * fixup get_node_topics_interface.hpp according to reviews and tests Signed-off-by: William Woodall <[email protected]> * additional fixes based on local testing and CI Signed-off-by: William Woodall <[email protected]> * another trick to avoid 'no appropriate default constructor available' Signed-off-by: William Woodall <[email protected]> * fix compiler error with clang on macOS Signed-off-by: William Woodall <[email protected]> * disable build failure tests until we can get Jenkins to ignore their output Signed-off-by: William Woodall <[email protected]> * suppress more cppcheck false positives Signed-off-by: William Woodall <[email protected]> * add missing visibility macros to default QoS profile classes Signed-off-by: William Woodall <[email protected]> * fix another case of 'no appropriate default constructor available' Signed-off-by: William Woodall <[email protected]> * unfortunately this actaully fixes a build error on Windows... Signed-off-by: William Woodall <[email protected]> * fix typos Signed-off-by: William Woodall <[email protected]>
- Loading branch information
1 parent
0196941
commit 12db214
Showing
53 changed files
with
1,908 additions
and
454 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# Copyright 2019 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. | ||
|
||
# | ||
# Register a test which tries to compile a file and expects it to fail to build. | ||
# | ||
# This will create two targets, one by the given target name and a test target | ||
# which has the same name prefixed with `test_`. | ||
# For example, if target is `should_not_compile__use_const_argument` then there | ||
# will be an executable target called `should_not_compile__use_const_argument` | ||
# and a test target called `test_should_not_compile__use_const_argument`. | ||
# | ||
# :param target: the name of the target to be created | ||
# :type target: string | ||
# :param ARGN: the list of source files to be used to create the test executable | ||
# :type ARGN: list of strings | ||
# | ||
macro(rclcpp_add_build_failure_test target) | ||
if(${ARGC} EQUAL 0) | ||
message( | ||
FATAL_ERROR | ||
"rclcpp_add_build_failure_test() requires a target name and " | ||
"at least one source file") | ||
endif() | ||
|
||
add_executable(${target} ${ARGN}) | ||
set_target_properties(${target} | ||
PROPERTIES | ||
EXCLUDE_FROM_ALL TRUE | ||
EXCLUDE_FROM_DEFAULT_BUILD TRUE) | ||
|
||
add_test( | ||
NAME test_${target} | ||
COMMAND | ||
${CMAKE_COMMAND} | ||
--build . | ||
--target ${target} | ||
--config $<CONFIGURATION> | ||
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}) | ||
set_tests_properties(test_${target} | ||
PROPERTIES | ||
WILL_FAIL TRUE | ||
LABELS "build_failure" | ||
) | ||
endmacro() |
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
Oops, something went wrong.