-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Fix build on ROS Rolling by using non-deprecated tf2 header Quaternion.hpp #3388
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
Fix build on ROS Rolling by using non-deprecated tf2 header Quaternion.hpp #3388
Conversation
|
Can one of the admins verify this patch? |
Yes. The
|
|
Can you please change the PR to target ros2-development branch? |
Done! |
Quaternion.h was deprecated in ros2/geometry2#720 and removed in ros2/geometry2#789 . This PR updates base_realsense_node.h to use Quaternion.hpp Signed-off-by: Shane Loretz <[email protected]>
7d3e3dd to
b9f7d2c
Compare
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.
Change works, but I had to perform:
sudo apt install --reinstall ros-jazzy-tf2
for the Quaternion.hpp file to be found.
Since a reinstall must be done, we will implement it with some ifdef statement checking the ROS2 distro (only in case of rolling or kilted, we will use the hpp file).
@sloretz do you want to perform this improvement?
Anyway, thanks a lot for your contribution!
remibettan
left a comment
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.
commented - please see "ifdef" request above
|
@sloretz please inform if you want to correct acc to latest comment, or should we take it from here? |
Signed-off-by: Shane Loretz <[email protected]>
Hi @remibettan, it looks like you had out-of-date ROS Jazzy packages installed on your system. Instead of adding an
If you're building from source with an out-of-date version of |
Hi @sloretz , thanks for your advice, but rosdep is designed to install missing dependencies, not to upgrade existing packages even if a newer version is available that matches version_gte. So users that already have their system working with previous distros will encounter issues with your solution, even though it is much more elegant than the ifdef pragma. |
|
Thanks for the PR :) |
Quaternion.h was deprecated in ros2/geometry2#720 and removed in ros2/geometry2#789 .
This PR updates base_realsense_node.h to use Quaternion.hpp. This fixes the build on Rolling that I saw in the CI of #3374