Allow for implicitly convertable loggers as well#2922
Allow for implicitly convertable loggers as well#2922jmachowinski merged 4 commits intoros2:rollingfrom
Conversation
92e99c4 to
99e11a3
Compare
fujitatomoya
left a comment
There was a problem hiding this comment.
lgtm with green CI.
The new check enables more flexible and extensible code, allowing for future enhancements and custom logger types. It also prevents compile errors when a compatible logger type (not strictly rclcpp::Logger) is used.
|
Pulls: #2922 |
|
Is CI flaky or is this something I introduced? |
|
@ros-pull-request-builder retest this please |
Signed-off-by: Tim Clephas <tim.clephas@nobleo.nl>
Signed-off-by: Tim Clephas <tim.clephas@nobleo.nl>
Signed-off-by: Tim Clephas <tim.clephas@nobleo.nl>
Signed-off-by: Tim Clephas <tim.clephas@nobleo.nl>
1890f16 to
f35170d
Compare
|
I rebased, seemed to have resolved the build error. |
|
Pulls: #2922 |
|
https://github.com/Mergifyio backport kilted jazzy humble |
✅ Backports have been createdDetails
|
* Allow for implicitly convertable loggers as well Signed-off-by: Tim Clephas <tim.clephas@nobleo.nl> * Test implicitly convertable logger Signed-off-by: Tim Clephas <tim.clephas@nobleo.nl> * This can be simplified now Signed-off-by: Tim Clephas <tim.clephas@nobleo.nl> * fixup! This can be simplified now Signed-off-by: Tim Clephas <tim.clephas@nobleo.nl> --------- Signed-off-by: Tim Clephas <tim.clephas@nobleo.nl> (cherry picked from commit e615c7c) # Conflicts: # rclcpp/include/rclcpp/logging.hpp
* Allow for implicitly convertable loggers as well Signed-off-by: Tim Clephas <tim.clephas@nobleo.nl> * Test implicitly convertable logger Signed-off-by: Tim Clephas <tim.clephas@nobleo.nl> * This can be simplified now Signed-off-by: Tim Clephas <tim.clephas@nobleo.nl> * fixup! This can be simplified now Signed-off-by: Tim Clephas <tim.clephas@nobleo.nl> --------- Signed-off-by: Tim Clephas <tim.clephas@nobleo.nl> (cherry picked from commit e615c7c) # Conflicts: # rclcpp/include/rclcpp/logging.hpp
* Allow for implicitly convertable loggers as well Signed-off-by: Tim Clephas <tim.clephas@nobleo.nl> * Test implicitly convertable logger Signed-off-by: Tim Clephas <tim.clephas@nobleo.nl> * This can be simplified now Signed-off-by: Tim Clephas <tim.clephas@nobleo.nl> * fixup! This can be simplified now Signed-off-by: Tim Clephas <tim.clephas@nobleo.nl> --------- Signed-off-by: Tim Clephas <tim.clephas@nobleo.nl> (cherry picked from commit e615c7c) # Conflicts: # rclcpp/include/rclcpp/logging.hpp
|
Sure, should I push to the mergify branch or create a new one? And if I patch for kilted, can that be backported automatically to jazzy and humble? |
You probably don't have the necessary permissions to push to the mergify branch on this repo. You can either open a PR against the mergify branch, or simply open a normal PR against the relevant distro branch (while keeping the original PR number in the PR title and commit title, like Mergify did). The latter is probably simpler.
Yeah, we can do the same thing @jmachowinski did above from the Kilted backport PR. |
Signed-off-by: Tim Clephas <tim.clephas@nobleo.nl>
Description
This way I can inherit from
rclpp::Loggerand still pass it to the logger macros.Is this user-facing behavior change?
Backwards compatible
Did you use Generative AI?
No
Additional Information
If accepted I would like to have this backported to active distros as well.