-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ros2: Fix cv_bridge and tf2_geometry_msgs header for Jazzy
- Loading branch information
Showing
5 changed files
with
27 additions
and
4 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
ensenso_camera/include/ensenso_camera/ros2/cv_bridge/cv_bridge.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#pragma once | ||
|
||
#ifdef ROS2 | ||
// We use the deprecated .h header instead of .hpp, because the latter is not available for foxy and humble. | ||
// TODO Use .hpp header as soon as we do not support foxy and humble anymore | ||
#ifdef ROS2_JAZZY | ||
#include <cv_bridge/cv_bridge.hpp> | ||
#else | ||
#include <cv_bridge/cv_bridge.h> | ||
#endif | ||
#else | ||
#include <cv_bridge/cv_bridge.h> | ||
#endif |
8 changes: 6 additions & 2 deletions
8
ensenso_camera/include/ensenso_camera/ros2/tf2_geometry_msgs/tf2_geometry_msgs.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
#pragma once | ||
|
||
#ifdef ROS2 | ||
// We use the deprecated .h header instead of .hpp, because the latter is not available for foxy | ||
// TODO Use .hpp header as soon as we do not support foxy anymore | ||
// We use the deprecated .h header instead of .hpp, because the latter is not available for foxy and humble | ||
// TODO Use .hpp header as soon as we do not support foxy and humble anymore | ||
#ifdef ROS2_JAZZY | ||
#include <tf2_geometry_msgs/tf2_geometry_msgs.hpp> | ||
#else | ||
#include <tf2_geometry_msgs/tf2_geometry_msgs.h> | ||
#endif | ||
#else | ||
#include <tf2_geometry_msgs/tf2_geometry_msgs.h> | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters