Skip to content

Include OgreSceneManager - #764

Merged
rhaschke merged 1 commit into
moveit:ros2from
henningkayser:fix_ogre_header
Nov 18, 2026
Merged

rhaschke merged 1 commit into
moveit:ros2from
henningkayser:fix_ogre_header

Conversation

@henningkayser

@henningkayser henningkayser commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

Just ran into this on a Rolling build, simple include fix:

Starting >>> moveit_task_constructor_visualization                                                                                                                                                                                                                                                                                                                                                                          
  ┃  --- stderr: moveit_task_constructor_visualization                                                                                                                                                                                                                                                                                                                                                                           
  ┃  /home/ubuntu/projects/sensor_platform/sensor_platform/src/dependencies/moveit_task_constructor/visualization/visualization_tools/src/task_solution_visualization.cpp: In destructor 'virtual moveit_rviz_plugin::TaskSolutionVisualization::~TaskSolutionVisualization()':                                                                                                                                                  
  ┃  /home/ubuntu/projects/sensor_platform/sensor_platform/src/dependencies/moveit_task_constructor/visualization/visualization_tools/src/task_solution_visualization.cpp:185:47: error: invalid use of incomplete type 'class Ogre::SceneManager'                                                                                                                                                                               
  ┃    185 |                 main_scene_node_->getCreator()->destroySceneNode(main_scene_node_);                                                                                                                                                                                                                                                                                                                                 
  ┃        |                                               ^~                                                                                                                                                                                                                                                                                                                                                                    
  ┃  In file included from /home/ubuntu/projects/sensor_platform/sensor_platform/.pixi/envs/default/include/moveit_ros_visualization/moveit/rviz_plugin_render_tools/octomap_render.hpp:41,                                                                                                                                                                                                                                      
  ┃                   from /home/ubuntu/projects/sensor_platform/sensor_platform/.pixi/envs/default/include/moveit_ros_visualization/moveit/rviz_plugin_render_tools/render_shapes.hpp:39,                                                                                                                                                                                                                                       
  ┃                   from /home/ubuntu/projects/sensor_platform/sensor_platform/.pixi/envs/default/include/moveit_ros_visualization/moveit/rviz_plugin_render_tools/planning_scene_render.hpp:41,                                                                                                                                                                                                                               
  ┃                   from /home/ubuntu/projects/sensor_platform/sensor_platform/src/dependencies/moveit_task_constructor/visualization/visualization_tools/src/task_solution_visualization.cpp:42:                                                                                                                                                                                                                              
  ┃  /home/ubuntu/projects/sensor_platform/sensor_platform/.pixi/envs/default/opt/rviz_ogre_vendor/include/OGRE/OgrePrerequisites.h:222:11: note: forward declaration of 'class Ogre::SceneManager'                                                                                                                                                                                                                              
  ┃    222 |     class SceneManager;                                                                                                                                                                                                                                                                                                                                                                                             
  ┃        |           ^~~~~~~~~~~~                                                                                                                                                                                                                                                                                                                                                                                              
  ┃  /home/ubuntu/projects/sensor_platform/sensor_platform/src/dependencies/moveit_task_constructor/visualization/visualization_tools/src/task_solution_visualization.cpp: In member function 'void moveit_rviz_plugin::TaskSolutionVisualization::onInitialize(Ogre::SceneNode*, rviz_common::DisplayContext*)':                                                                                                                
  ┃  /home/ubuntu/projects/sensor_platform/sensor_platform/src/dependencies/moveit_task_constructor/visualization/visualization_tools/src/task_solution_visualization.cpp:192:60: error: invalid use of incomplete type 'class Ogre::SceneManager'                                                                                                                                                                               
  ┃    192 |         main_scene_node_ = parent_scene_node_->getCreator()->createSceneNode();                                                                                                                                                                                                                                                                                                                                     
  ┃        |                                                            ^~                                                                                                                                                                                                                                                                                                                                                       
  ┃  /home/ubuntu/projects/sensor_platform/sensor_platform/.pixi/envs/default/opt/rviz_ogre_vendor/include/OGRE/OgrePrerequisites.h:222:11: note: forward declaration of 'class Ogre::SceneManager'                                                                                                                                                                                                                              
  ┃    222 |     class SceneManager;                                                                                                                                                                                                                                                                                                                                                                                             
  ┃        |           ^~~~~~~~~~~~                                                                                                                                                                                                                                                                                                                                                                                              
  ┃  /home/ubuntu/projects/sensor_platform/sensor_platform/src/dependencies/moveit_task_constructor/visualization/visualization_tools/src/task_solution_visualization.cpp:193:61: error: invalid use of incomplete type 'class Ogre::SceneManager'                                                                                                                                                                               
  ┃    193 |         trail_scene_node_ = parent_scene_node_->getCreator()->createSceneNode();                                                                                                                                                                                                                                                                                                                                    
  ┃        |                                                             ^~                                                                                                                                                                                                                                                                                                                                                      
  ┃  /home/ubuntu/projects/sensor_platform/sensor_platform/.pixi/envs/default/opt/rviz_ogre_vendor/include/OGRE/OgrePrerequisites.h:222:11: note: forward declaration of 'class Ogre::SceneManager'                                                                                                                                                                                                                              
  ┃    222 |     class SceneManager;                                                                                                                                                                                                                                                                                                                                                                                             
  ┃        |           ^~~~~~~~~~~~                                                                                                                                                                                                                                                                                                                                                                                              
  ┃  gmake[2]: *** [visualization_tools/CMakeFiles/moveit_task_visualization_tools.dir/build.make:141: visualization_tools/CMakeFiles/moveit_task_visualization_tools.dir/src/task_solution_visualization.cpp.o] Error 1                                                                                                                                                                                                         
  ┃  gmake[2]: *** Waiting for unfinished jobs....                                                                                                                                                                                                                                                                                                                                                                               
  ┃  gmake[1]: *** [CMakeFiles/Makefile2:304: visualization_tools/CMakeFiles/moveit_task_visualization_tools.dir/all] Error 2                                                                                                                                                                                                                                                                                                    
  ┃  gmake: *** [Makefile:146: all] Error 2                                                                                                                                                                                                                                                                                                                                                                                      
  ┃  ---                                                                                                                                                                                                                                                                                                                                                                                   
 Failed   <<< moveit_task_constructor_visualization [13.5s, exited with code 2] 

Summary by CodeRabbit

  • Chores
    • Made a small internal maintenance change. There are no visible changes to the application’s features or behavior.

@coderabbitai

coderabbitai Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The visualization source adds an include for OgreSceneManager.h.

Changes: Visualization include

Layer / File(s) Summary
Add scene-manager header
visualization/visualization_tools/src/task_solution_visualization.cpp
The source file now includes OgreSceneManager.h.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Change: Bug fix

Suggested reviewers: rhaschke

Merge Risk: Minimal · up to ce40c

This adds a missing Ogre header include so the visualization tools compile when they call scene-manager methods. It does not change runtime behavior, and no merge-blocking risk is evident.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "Include OgreSceneManager" names the actual change: adding the OgreSceneManager.h include to task_solution_visualization.cpp. The PR objectives say this include fixes compilation errors from…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Full details: Title check

Explanation

The title "Include OgreSceneManager" names the actual change: adding the OgreSceneManager.h include to task_solution_visualization.cpp. The PR objectives say this include fixes compilation errors from calling destroySceneNode and createSceneNode through a forward-declared Ogre::SceneManager. The title is specific, short, and matches the one-line changeset, though it does not mention the compile-error reason.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: b04c402f-aaf0-4fd0-a4b9-1d93d21b9598
Commits

Reviewing files that changed from the base of the PR and between f527048 and ce40c2f.

Files selected for processing: 1

  • visualization/visualization_tools/src/task_solution_visualization.cpp

Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 1 remain after this review.

@rhaschke
rhaschke merged commit d1f6b2b into moveit:ros2 Nov 18, 2026
4 of 6 checks passed
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