Skip to content

grid_map: fix compile issues with ROS2#520

Open
sssarana wants to merge 1 commit intoANYbotics:rollingfrom
sssarana:fix-ros2-build
Open

grid_map: fix compile issues with ROS2#520
sssarana wants to merge 1 commit intoANYbotics:rollingfrom
sssarana:fix-ros2-build

Conversation

@sssarana
Copy link
Copy Markdown

@sssarana sssarana commented May 7, 2025

  • include correct header files for cv_bridge;
  • updated CMake files to properly add dependencies;
  • updated CMake to add definitions for eigen plugins correctly;
  • add dependency on grid_map_core for demos and rviz plugin;
  • corrected outdated use of send_timestamp in ROS converter;

- include correct header files for `cv_bridge`;
- updated CMake files to properly add dependencies;
- updated CMake to add definitions for `eigen` plugins correctly;
- add dependency on `grid_map_core` for demos and rviz plugin;
- corrected outdated use of `send_timestamp` in ROS converter;
@Ryanf55 Ryanf55 self-requested a review July 26, 2025 19:56
@Ryanf55 Ryanf55 added the ros2 Affects ROS 2 label Jul 26, 2025
Copy link
Copy Markdown
Collaborator

@Ryanf55 Ryanf55 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I don't think all the patches here are right.
Please submit separate patches for the things that are still valid.

rclcpp::rclcpp
${sensor_msgs_TARGETS}
ament_target_dependencies(${PROJECT_NAME} SYSTEM
${dependencies}
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is backwards, we should link to exported namespace targets. If any are missing, add them.


// ROS
#include <cv_bridge/cv_bridge.hpp>
#include <cv_bridge/cv_bridge.h>
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think your library is out of date. rolling uses the hpp extension.
https://github.com/ros-perception/vision_opencv/blob/rolling/cv_bridge/include/cv_bridge/cv_bridge.hpp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ros2 Affects ROS 2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants