-
Notifications
You must be signed in to change notification settings - Fork 766
build with openCV4 #534
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
build with openCV4 #534
Conversation
|
CI is failing but I guess it is because it is testing for dashing. |
|
@doisyg can you update CI to run Foxy / ROS2 master? |
|
Sure but I am not familiar with CircleCI, should changing |
|
Well, right now its Dashing 😆 https://github.com/ros-perception/image_pipeline/blob/ros2/.circleci/config.yml#L5 but more or less. Right now your PR fails because openCV4 isn't in dashing. There's also a ROS2 nightly dockerfile that could be used as well instead. |
|
Indeed i just found out about osrf/ros2:nightly, but |
|
Typically how that could be dealt with is via building on nightly, but in the circle CI file, have it build this repo with those others repos using a |
|
@doisyg / @SteveMacenski I've created some Foxy Docker images which you can use. Just use the image @SteveMacenski I feel like we've discussed this before on this repo. Thoughts on targeting |
|
Yes, ros2 is targeting ros2 master, which is currently foxy. Before this PR goes in, we should branch the current state of ros2 as |
|
Last commits for CI. Use |
|
@doisyg I think that's because GTK3.0 is what's used now. Can you run @JWhitleyWork Should any of the patches from Noetic be made here for python3? I'm seeing some test failures. |
|
@SteveMacenski The GTK 3 change was only made on the Noetic branch. It should be applied here too. |
|
Switched to gtk3 in CMakeLists.txt and package.xml as in noetic and removed the almost empty ifdef. It seems gtk is not used at all in the code, should we remove it completely ? Or should we left it if it is needed to implement this in the future in Foxy: image_pipeline/image_view/src/nodes/stereo_view.cpp Lines 52 to 62 in f13c10f
Or maybe this workaround is not needed anymore on Foxy platforms Also ran |
|
There are still a lot of test failures in CI - It looks like to me * that all of those errors are from image_common or the other repos we pulled in to do CI. I think that can be resolved by adding This would be a nice place for special metapackage depth rules; test all in metapackage recursively for depth 1 |
Indeed, looks like it passes the CI now |
|
@SteveMacenski Regardless, this MR can be merged. |
|
Sure, lets release it |
|
Would be nice to release it for Foxy too |
|
@doisyg definitely for foxy, its only been in the last month or so we've had a full port. There's still cleanup to do, but I think its in a state that can be called "good enough for now". Still some functionality like reconfiguring parameters and only publishing when someone is subscribed that aren't implemented right now. We still need at minimum vision_opencv and image_common to be released before we can in Foxy |
|
@SteveMacenski Is Ubuntu 18.04 only have debians for OpenCV 3, and installing OpenCV 4 on it is an extra effort. |
I'm sorry, I see there's a |
|
Dashing branch serves both dashing and eloquent |
Thanks! |
Would you mind pushing the release? I'm busy as hell right now. |
|
I'm pretty sure we already did....... .... or was that Noetic? jeeze 2 different releases at once is really not a good habit to get into. OK, I'll figure it out and add to my mountain of releases I was planning on doing on Friday. |
|
Memory serves that failures due to are internal build farm things, correct? Just making sure I shouldn't be doing anything |
|
@SteveMacenski Can you link to the build where you're seeing this? |
|
You mean you're not getting emails about it? Maybe we should add you to the package.xmls 😉 http://build.ros2.org/job/Fbin_uF64__image_view__ubuntu_focal_amd64__binary/2/console |
|
@SteveMacenski Check these out from the build log:
|
|
how did that work for the last release.... .... that's right, we haven't done a release yet for ROS2. This is going to be a really long process that I can't take on this week. It'll have to wait for next week. I think image_view is the only one failing though, or at least the only one I'm getting emails about. |
|
I just checked, its only image view failing of the builds that have processed (some bin builds havent triggered yet). So it might not be as bad as I thought. I'll handle next week. |
| else() | ||
| find_package(OpenCV 3 REQUIRED COMPONENTS ${opencv_3_components}) | ||
| endif() | ||
| find_package(OpenCV 4 REQUIRED COMPONENTS ${opencv_4_components}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The variable opencv_4_components doesn't seem to be set anywhere?
I needed image_view on foxy/ubuntu focal, so I needed image_pipeline to build with OpenCV4.
As I understand it the version of openCV for foxy is 4, with no back support of earlier versions. See for instance the vision_opencv packages https://github.com/ros-perception/vision_opencv/tree/ros2
I have only tested image_view which works fine.