Ros2 pub/sub code logging only appearing in c++
I am looking at adding some code to the publisher and subscriber base code.
Lets start at the beginning, it looks to me that both python and c++ use the same underlying subscription.cpp/hpp code in rclcpp and for python its just wrapped. If i’m wrong thats the issue.
Moving on:
I modified subscription.hpp in rclcpp to print a message in the void handle_message function (everytime you receive a message) it is logged under the RCLCPP_INFO flag so it should print by default.
When I run the pub sub tutorial in python I get no extra print messages.
When I run the pub sub tutorial in c++ I get the print messages.