Skip to content
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

Use TF2 package for quaternion conversion #1031

Merged

Conversation

tedsteiner
Copy link
Contributor

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 OpenCV quaternion class was not added until OpenCV 4.5.1, so it's less widely available than the TF2 conversion.
@tedsteiner
Copy link
Contributor Author

Hoping for a backport to Jazzy, as well.

@mikeferguson
Copy link
Member

If I recall correctly, you're unable to test this, right? I can test on a robot early next week to make sure there is no change in behavior.

@tedsteiner
Copy link
Contributor Author

If I recall correctly, you're unable to test this, right? I can test on a robot early next week to make sure there is no change in behavior.

Thanks! This isn't a code package we use so I'd really appreciate if there's a way for someone else to verify the change without too much effort.

My interpretation of the build issues is that they're CppLint issues that aren't directly related to this change. One of them is that the track_marker.hpp include should come first and the other is incorrectly thinking that the TF2 quaternion.h header is a C system library because it's not *.hpp. Just let me know if you'd like me to do anything about those.

@tedsteiner
Copy link
Contributor Author

Just wanted to check in on this to see if you've had a chance to test it yet, and if so, whether it worked correctly. Thanks!

@mikeferguson
Copy link
Member

I'm back from ROSCon now - will take a look at this during the week

@mikeferguson mikeferguson self-assigned this Oct 29, 2024
Copy link
Member

@mikeferguson mikeferguson left a comment

Choose a reason for hiding this comment

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

I've tested locally - it looks good - just need to get CI to pass

@mikeferguson mikeferguson merged commit 4993e05 into ros-perception:rolling Oct 29, 2024
4 checks passed
@tedsteiner
Copy link
Contributor Author

Thank you! And would it be possible to also get this backported to Jazzy? It would save me a lot of maintenance effort.

@mikeferguson
Copy link
Member

https://github.com/Mergifyio backport jazzy

Copy link

mergify bot commented Oct 31, 2024

backport jazzy

✅ Backports have been created

mergify bot pushed a commit that referenced this pull request Oct 31, 2024
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

(cherry picked from commit 4993e05)
ahcorde pushed a commit that referenced this pull request Oct 31, 2024
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
https://github.com/ros-perception/image_pipeline/issues/1030<hr>This is
an automatic backport of pull request #1031 done by
[Mergify](https://mergify.com).

Co-authored-by: Ted Steiner <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants