Skip to content

Fix compilation errors for new RViz with Qt6#820

Merged
SteveMacenski merged 8 commits intoSteveMacenski:ros2from
cosmicog:ros2
Nov 22, 2025
Merged

Fix compilation errors for new RViz with Qt6#820
SteveMacenski merged 8 commits intoSteveMacenski:ros2from
cosmicog:ros2

Conversation

@cosmicog
Copy link
Contributor


Basic Info

Info Answer
Primary OS tested on Ubuntu 24.04
ROS Distro Rolling
Robotic platform tested on Unfortunately no robot

Description

  • We have talked about the compiling errors here: Added parameter check_min_dist_and_heading_precisely #808
    In slam_toolbox_common.cpp:24:

    #include "rclcpp/rclcpp/qos.hpp"

    was working when I used native Rolling, but not in docker (I probably used the wrong image), but still, I changed it to:

    #include "rclcpp/qos.hpp"
  • All other changes are in the CMakeLists.txt. I decided to break my native Rolling instead of finding a correct image (We all are lazy), and built the latest rviz from source. After that, Qt5_FOUND errors were gone. Other version mismatch errors appeared and I fixed them.

    To differentiate them from their looks, I use Fusion style theme for Qt6 apps, and another dark theme for Qt5 apps;

    On the left, RViz on Rolling with Qt6, and on the right, RViz on Jazzy with Qt5:

    SS_20251121_185054

Future work that may be required

I don't have time to test with a rolling robot, but it should work as well as how a robot on rolling version works 🙃 OR maybe this change is not enough for Qt6 upgrade, but still, it is better than before. Now, at least, it compiles and I was able to add the SlamToolboxPlugin panel to RViz.

Note

Since you squashed the changes from my previous PR (above), the commit history of this PR from my fork includes those commits. You are probably used to this but I wanted to include the explanation, just in case.

@SteveMacenski SteveMacenski merged commit 171ab5f into SteveMacenski:ros2 Nov 22, 2025
1 check passed
@SteveMacenski
Copy link
Owner

Thanks so much! I just haven't gotten around to it this yet so I appreciate the help!

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