-
Notifications
You must be signed in to change notification settings - Fork 240
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use rclcpp logging macros #715
Conversation
Signed-off-by: Karsten Knese <Karsten1987@users.noreply.github.com>
In theory I like the idea of not having custom logging macros. I'm not sure I'm sold on the pattern of "borrowing" the logger from the It's unfortunate that the logging "feels" more verbose this way - total characters mostly fewer, but more lines because of the extra argument. |
Signed-off-by: Karsten Knese <Karsten1987@users.noreply.github.com>
interesting. I would have actually argued pretty much in an opposite way. I assume that with the Galactic freeze, we'll remove the |
I think I just had to sit with it for a few more minutes - I am convinced by your reasoning about Player/Recorder. And you're right, I plan for us to remove |
Signed-off-by: Karsten Knese <Karsten1987@users.noreply.github.com>
Signed-off-by: Karsten Knese <Karsten1987@users.noreply.github.com>
df103c1
to
2c1c123
Compare
I can reproduce the test failure locally, yet I really don't have a clue how this PR introduces a segfault in the rosbag2_cpp converter impl:
EDIT: Turns out we've used a node for logging even though we don't have a guarantee that the node is available. |
Signed-off-by: Karsten Knese <Karsten1987@users.noreply.github.com>
* use rclcpp::Node for generic pub/sub Signed-off-by: Karsten Knese <Karsten1987@users.noreply.github.com> * address review comments Signed-off-by: Karsten Knese <Karsten1987@users.noreply.github.com> * export symbols on windows Signed-off-by: Karsten Knese <Karsten1987@users.noreply.github.com> * use rclcpp logging macros Signed-off-by: Karsten Knese <Karsten1987@users.noreply.github.com> * do not use node for error logging Signed-off-by: Karsten Knese <Karsten1987@users.noreply.github.com>
sits on top of #714 but essentially replaces all
ROSBAG2_TRANSPORT_LOG_*
with their respectiveRCLCPP_*
equivalent. We introduced the custom macros back at the original time of writing as there weren't any_STREAM
macros available in rclcpp at that time.