-
Notifications
You must be signed in to change notification settings - Fork 734
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
image_proc's TrackMarkerNode requires OpenCV 4.5.1 or greater #1030
Comments
A couple thoughts:
|
Note: this is not to say we wouldn't merge a PR that addressed this so it would run on 20.04 - it's just not something the maintainers are likely to find time to tackle |
Thanks for the quick response! I appreciate that 20.04 is pretty old to still support. Instead of using OpenCV for this conversion, how about using TF2, which is already a dependency of If so, it should be a pretty simple change. But I don't use |
On a similar note, OpenCV > 4.6.0 doesn't work with this node either, as the ArUco API changed. |
The OpenCV quaternion class was not added until OpenCV 4.5.1, so it's less widely available than the TF2 conversion. This change allows a source build of the ROS 2 "perception" variant on Ubuntu 20.04 without a custom source build of OpenCV. Addresses issue #1030
The
TrackMarkerNode
includes the OpenCV header<opencv2/core/quaternion.hpp>
. Currently theimage_proc
CMakeLists.txt file specifies that OpenCV 3.2.0 is the minimum required version. However, quaternion.hpp wasn't added to OpenCV until version 4.5.1. The result is a compiler error on earlier versions of OpenCV, such as those provided by Ubuntu 20.04 (4.2.0).At first I thought this was maybe just a header left unintentionally because it's a bit subtle, but here's where the OpenCV quaternion header is used:
Is there maybe some other code that already exists somewhere to do this conversion without using the
cv::Quatd
class?This causes a build error when trying to build ROS 2 Jazzy from source with the perception variant on Ubuntu 20.04 with the Apt-provided version of libopencv-dev. The original merge request was here: #930
The text was updated successfully, but these errors were encountered: