granular rclcpp/rclcpp.hpp and include what you use - #984
Conversation
Signed-off-by: Alejandro Hernandez Cordero <ahcorde@gmail.com>
|
Pulls: ros2/examples#454, ros2/demos#806, ros2/message_filters#328, ros2/rosbag2#2483, ros2/realtime_support#151, ros/robot_state_publisher#254, #984, ros2/ros2_tracing#263, ros2/rmw_zenoh#1043, ros2/rclcpp#3249, ros2/rviz#1854 |
wjwwood
left a comment
There was a problem hiding this comment.
I think it's off-topic a bit, but I think removing the use of RCUTILS_LOG_ERROR in tf2, preferring the RCLCPP versions, and avoiding the need to depend on rcutils directly.
| #include "tf2/LinearMath/Vector3.hpp" | ||
|
|
||
| #include "rclcpp/rclcpp.hpp" | ||
| #include "rcutils/logging_macros.h" |
There was a problem hiding this comment.
Is this change needed? Seems like it would be covered by rclcpp's logging.hpp, but maybe it's because we're using rcutils macros directly here?
| find_package(rclcpp_action REQUIRED) | ||
| find_package(rclcpp_components REQUIRED) | ||
| find_package(rcpputils REQUIRED) | ||
| find_package(rcutils REQUIRED) |
There was a problem hiding this comment.
This is a reaction to the other include statement I commented on.
|
Due to the difficulty of testings these changes, I'd also be ok with a follow up pr to address this issue. |
Description
Granular rclcpp/rclcpp.hpp also in documentation
Did you use Generative AI?
Claude Opus 4.8