Robotics StackExchange | Archived questions

what is replacement for ros/console.hpp in ROS2 ?

I am migrating ROS1 to ROS2, all the header files are ok. but what is replacement for ros/console.hpp in ROS2 ?

Asked by ysims on 2022-12-01 09:10:42 UTC

Comments

Answers

The C++ logging macros (RCLCPP_INFO etc) are generated by the file logging.hpp.em and end up I the header rclcpp/logging.hpp (https://github.com/ros2/rclcpp/blob/3aca271ef5d25c1b8c12e67ecf85166856a88000/rclcpp/CMakeLists.txt#L124)

Asked by marguedas on 2022-12-04 18:25:26 UTC

Comments