Skip to content

Commit

Permalink
Merge pull request #589 from ros-visualization/fix_moc_boost
Browse files Browse the repository at this point in the history
Fixes a moc generation error with boost >= 1.48
  • Loading branch information
David Gossow committed Feb 11, 2013
2 parents 5d3fb20 + 47fceb5 commit dd9fb25
Show file tree
Hide file tree
Showing 11 changed files with 112 additions and 99 deletions.
33 changes: 16 additions & 17 deletions src/image_view/image_view.h
Expand Up @@ -27,27 +27,26 @@
* POSSIBILITY OF SUCH DAMAGE.
*/

#ifndef Q_MOC_RUN // See: https://bugreports.qt-project.org/browse/QTBUG-22829
# include "rviz/ogre_helpers/qt_ogre_render_window.h"
# include "rviz/ogre_helpers/initialization.h"
# include "rviz/image/ros_image_texture.h"

#include "rviz/ogre_helpers/qt_ogre_render_window.h"
#include "rviz/ogre_helpers/initialization.h"
#include "rviz/image/ros_image_texture.h"
# include "ros/ros.h"
# include <ros/package.h>

#include "ros/ros.h"
#include <ros/package.h>
# include <OGRE/OgreRoot.h>
# include <OGRE/OgreSceneManager.h>
# include <OGRE/OgreViewport.h>
# include <OGRE/OgreRectangle2D.h>
# include <OGRE/OgreMaterial.h>
# include <OGRE/OgreMaterialManager.h>
# include <OGRE/OgreTextureUnitState.h>

#include <OGRE/OgreRoot.h>
#include <OGRE/OgreSceneManager.h>
#include <OGRE/OgreViewport.h>
#include <OGRE/OgreRectangle2D.h>
#include <OGRE/OgreMaterial.h>
#include <OGRE/OgreMaterialManager.h>
#include <OGRE/OgreTextureUnitState.h>
# include <image_transport/image_transport.h>
# include <image_transport/subscriber_filter.h>

#include <image_transport/image_transport.h>
#include <image_transport/subscriber_filter.h>

#ifdef Q_OS_MAC
#include <ApplicationServices/ApplicationServices.h>
# include <ApplicationServices/ApplicationServices.h>
#endif

using namespace rviz;
Expand Down
16 changes: 8 additions & 8 deletions src/rviz/default_plugin/camera_display.h
Expand Up @@ -35,16 +35,16 @@
#include <OGRE/OgreMaterial.h>
#include <OGRE/OgreRenderTargetListener.h>

#include <sensor_msgs/CameraInfo.h>

#ifndef Q_MOC_RUN
#include <message_filters/subscriber.h>
#include <tf/message_filter.h>
#endif
# include <sensor_msgs/CameraInfo.h>

#include "rviz/image/image_display_base.h"
#include "rviz/image/ros_image_texture.h"
#include "rviz/render_panel.h"
# include <message_filters/subscriber.h>
# include <tf/message_filter.h>

# include "rviz/image/image_display_base.h"
# include "rviz/image/ros_image_texture.h"
# include "rviz/render_panel.h"
#endif

namespace Ogre
{
Expand Down
40 changes: 20 additions & 20 deletions src/rviz/default_plugin/depth_cloud_display.h
Expand Up @@ -30,29 +30,29 @@
#ifndef RVIZ_DEPTH_CLOUD_DISPLAY_H
#define RVIZ_DEPTH_CLOUD_DISPLAY_H

#include <boost/shared_ptr.hpp>
#include <boost/thread/mutex.hpp>

#include <ros/ros.h>
#include <image_transport/image_transport.h>
#include <image_transport/subscriber_filter.h>
#ifndef Q_MOC_RUN
#include <message_filters/subscriber.h>
#include <message_filters/synchronizer.h>
#include <message_filters/sync_policies/approximate_time.h>
#include <tf/message_filter.h>
# include <boost/shared_ptr.hpp>
# include <boost/thread/mutex.hpp>

# include <ros/ros.h>
# include <image_transport/image_transport.h>
# include <image_transport/subscriber_filter.h>
# include <message_filters/subscriber.h>
# include <message_filters/synchronizer.h>
# include <message_filters/sync_policies/approximate_time.h>
# include <tf/message_filter.h>

# include "rviz/properties/enum_property.h"
# include "rviz/properties/float_property.h"
# include "rviz/properties/bool_property.h"
# include "rviz/properties/int_property.h"
# include "rviz/properties/ros_topic_property.h"

# include <rviz/display.h>

# include <rviz/default_plugin/point_cloud_common.h>
#endif

#include "rviz/properties/enum_property.h"
#include "rviz/properties/float_property.h"
#include "rviz/properties/bool_property.h"
#include "rviz/properties/int_property.h"
#include "rviz/properties/ros_topic_property.h"

#include <rviz/display.h>

#include <rviz/default_plugin/point_cloud_common.h>

#include <QMap>

using namespace rviz;
Expand Down
20 changes: 11 additions & 9 deletions src/rviz/default_plugin/image_display.h
Expand Up @@ -30,18 +30,20 @@
#ifndef RVIZ_IMAGE_DISPLAY_H
#define RVIZ_IMAGE_DISPLAY_H

#include <QObject>
#ifndef Q_MOC_RUN // See: https://bugreports.qt-project.org/browse/QTBUG-22829
# include <QObject>

#include <OGRE/OgreMaterial.h>
#include <OGRE/OgreRenderTargetListener.h>
# include <OGRE/OgreMaterial.h>
# include <OGRE/OgreRenderTargetListener.h>

#include "rviz/image/image_display_base.h"
#include "rviz/image/ros_image_texture.h"
#include "rviz/render_panel.h"
# include "rviz/image/image_display_base.h"
# include "rviz/image/ros_image_texture.h"
# include "rviz/render_panel.h"

#include "rviz/properties/bool_property.h"
#include "rviz/properties/float_property.h"
#include "rviz/properties/int_property.h"
# include "rviz/properties/bool_property.h"
# include "rviz/properties/float_property.h"
# include "rviz/properties/int_property.h"
#endif


namespace Ogre
Expand Down
40 changes: 21 additions & 19 deletions src/rviz/default_plugin/point_cloud_common.h
Expand Up @@ -30,32 +30,34 @@
#ifndef RVIZ_POINT_CLOUD_COMMON_H
#define RVIZ_POINT_CLOUD_COMMON_H

#include <deque>
#include <queue>
#include <vector>
#ifndef Q_MOC_RUN // See: https://bugreports.qt-project.org/browse/QTBUG-22829
# include <deque>
# include <queue>
# include <vector>

#include <QObject>
#include <QList>
# include <QObject>
# include <QList>

#include <boost/shared_ptr.hpp>
#include <boost/thread/mutex.hpp>
#include <boost/thread/recursive_mutex.hpp>
# include <boost/shared_ptr.hpp>
# include <boost/thread/mutex.hpp>
# include <boost/thread/recursive_mutex.hpp>

#include <ros/spinner.h>
#include <ros/callback_queue.h>
# include <ros/spinner.h>
# include <ros/callback_queue.h>

#include <message_filters/time_sequencer.h>
# include <message_filters/time_sequencer.h>

#include <pluginlib/class_loader.h>
# include <pluginlib/class_loader.h>

#include <sensor_msgs/PointCloud.h>
#include <sensor_msgs/PointCloud2.h>
# include <sensor_msgs/PointCloud.h>
# include <sensor_msgs/PointCloud2.h>

#include "rviz/selection/selection_manager.h"
#include "rviz/default_plugin/point_cloud_transformer.h"
#include "rviz/properties/color_property.h"
#include "rviz/ogre_helpers/point_cloud.h"
#include "rviz/selection/forwards.h"
# include "rviz/selection/selection_manager.h"
# include "rviz/default_plugin/point_cloud_transformer.h"
# include "rviz/properties/color_property.h"
# include "rviz/ogre_helpers/point_cloud.h"
# include "rviz/selection/forwards.h"
#endif

namespace rviz
{
Expand Down
8 changes: 5 additions & 3 deletions src/rviz/default_plugin/tools/goal_tool.h
Expand Up @@ -30,11 +30,13 @@
#ifndef RVIZ_GOAL_TOOL_H
#define RVIZ_GOAL_TOOL_H

#include <QObject>
#ifndef Q_MOC_RUN // See: https://bugreports.qt-project.org/browse/QTBUG-22829
# include <QObject>

#include <ros/ros.h>
# include <ros/ros.h>

#include "rviz/default_plugin/tools/pose_tool.h"
# include "rviz/default_plugin/tools/pose_tool.h"
#endif

namespace rviz
{
Expand Down
8 changes: 5 additions & 3 deletions src/rviz/default_plugin/tools/initial_pose_tool.h
Expand Up @@ -30,11 +30,13 @@
#ifndef RVIZ_INITIAL_POSE_TOOL_H
#define RVIZ_INITIAL_POSE_TOOL_H

#include <QObject>
#ifndef Q_MOC_RUN // See: https://bugreports.qt-project.org/browse/QTBUG-22829
# include <QObject>

#include <ros/ros.h>
# include <ros/ros.h>

#include "rviz/default_plugin/tools/pose_tool.h"
# include "rviz/default_plugin/tools/pose_tool.h"
#endif

namespace rviz
{
Expand Down
12 changes: 7 additions & 5 deletions src/rviz/default_plugin/tools/point_tool.h
Expand Up @@ -30,13 +30,15 @@
#ifndef RVIZ_POINT_TOOL_H
#define RVIZ_POINT_TOOL_H

#include <ros/node_handle.h>
#include <ros/publisher.h>
#ifndef Q_MOC_RUN // See: https://bugreports.qt-project.org/browse/QTBUG-22829
# include <ros/node_handle.h>
# include <ros/publisher.h>

#include "rviz/tool.h"
# include "rviz/tool.h"

#include <QCursor>
#include <QObject>
# include <QCursor>
# include <QObject>
#endif

namespace rviz
{
Expand Down
4 changes: 3 additions & 1 deletion src/rviz/display.h
Expand Up @@ -31,7 +31,9 @@

#include <string>

#include <ros/ros.h>
#ifndef Q_MOC_RUN // See: https://bugreports.qt-project.org/browse/QTBUG-22829
# include <ros/ros.h>
#endif

#include "rviz/properties/status_property.h"
#include "rviz/properties/bool_property.h"
Expand Down
26 changes: 13 additions & 13 deletions src/rviz/image/image_display_base.h
Expand Up @@ -31,22 +31,22 @@

#include <QObject>

#ifndef Q_MOC_RUN
#include <message_filters/subscriber.h>
#include <tf/message_filter.h>
#endif
#include <sensor_msgs/Image.h>
#ifndef Q_MOC_RUN // See: https://bugreports.qt-project.org/browse/QTBUG-22829
# include <message_filters/subscriber.h>
# include <tf/message_filter.h>
# include <sensor_msgs/Image.h>

#include <image_transport/image_transport.h>
#include <image_transport/subscriber_filter.h>
# include <image_transport/image_transport.h>
# include <image_transport/subscriber_filter.h>

#include "rviz/display_context.h"
#include "rviz/frame_manager.h"
#include "rviz/properties/ros_topic_property.h"
#include "rviz/properties/enum_property.h"
#include "rviz/properties/int_property.h"
# include "rviz/display_context.h"
# include "rviz/frame_manager.h"
# include "rviz/properties/ros_topic_property.h"
# include "rviz/properties/enum_property.h"
# include "rviz/properties/int_property.h"

#include "rviz/display.h"
# include "rviz/display.h"
#endif

namespace rviz
{
Expand Down
4 changes: 3 additions & 1 deletion src/rviz/visualizer_app.h
Expand Up @@ -31,7 +31,9 @@

#include <QObject>

#include <ros/ros.h>
#ifndef Q_MOC_RUN // See: https://bugreports.qt-project.org/browse/QTBUG-22829
# include <ros/ros.h>
#endif

class QTimer;

Expand Down

0 comments on commit dd9fb25

Please sign in to comment.