Skip to content

Commit

Permalink
do not forward-declare Ogre types
Browse files Browse the repository at this point in the history
In current Ogre these are actually typedef's and compilers
complain about an incongruent forward-declaration.

Also, there is no reason not to include the designated header here.
  • Loading branch information
v4hn committed Oct 4, 2022
1 parent dd1b79e commit 2650463
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
7 changes: 1 addition & 6 deletions rviz_plugin_tutorials/src/imu_visual.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,7 @@
#define IMU_VISUAL_H

#include <sensor_msgs/Imu.h>

namespace Ogre
{
class Vector3;
class Quaternion;
}
#include <OgrePrerequisites.h>

namespace rviz
{
Expand Down
7 changes: 1 addition & 6 deletions rviz_plugin_tutorials/src/plant_flag_tool.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,7 @@
#define PLANT_FLAG_TOOL_H

#include <rviz/tool.h>

namespace Ogre
{
class SceneNode;
class Vector3;
}
#include <OgrePrerequisites.h>

namespace rviz
{
Expand Down

0 comments on commit 2650463

Please sign in to comment.