issue a warning if publishing on a not active publisher (#574)
* issue a warning if publishing on a not active publisher * Adding a logger private member in LifecyclePublisher for avoiding creating a new one echa call
This commit is contained in:
parent
b600c18121
commit
e30f31551e
2 changed files with 29 additions and 3 deletions
|
@ -91,7 +91,8 @@ def is_supported_feature_combination(feature_combination):
|
|||
*/
|
||||
#define RCLCPP_@(severity)@(suffix)(logger, @(''.join([p + ', ' for p in get_macro_parameters(feature_combination).keys()]))...) \
|
||||
static_assert( \
|
||||
::std::is_same<std::remove_reference<decltype(logger)>::type, ::rclcpp::Logger>::value, \
|
||||
::std::is_same<typename std::remove_reference<decltype(logger)>::type, \
|
||||
typename ::rclcpp::Logger>::value, \
|
||||
"First argument to logging macros must be an rclcpp::Logger"); \
|
||||
RCUTILS_LOG_@(severity)@(suffix)_NAMED( \
|
||||
@{params = get_macro_parameters(feature_combination).keys()}@
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue