Fix build on ROS Rolling by using non-deprecated tf2 header Quaternion.hpp#3388
Fix build on ROS Rolling by using non-deprecated tf2 header Quaternion.hpp#3388sloretz wants to merge 2 commits intorealsenseai:ros2-developmentfrom
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 <shane.loretz@gmail.com>
7d3e3dd to
b9f7d2c
Compare
There was a problem hiding this comment.
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.
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 <shane.loretz@gmail.com>
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