GridMapDisplay.hpp
Go to the documentation of this file.
1 /*
2  * GridMapDisplay.h
3  *
4  * Created on: Aug 3, 2016
5  * Author: Philipp Krüsi, Péter Fankhauser
6  * Institute: ETH Zurich, ANYbotics
7  */
8 
9 #pragma once
10 
11 #ifndef Q_MOC_RUN
13 #include <grid_map_msgs/GridMap.h>
14 #include <boost/circular_buffer.hpp>
16 #endif
17 
18 namespace Ogre {
19 class SceneNode;
20 }
21 
22 namespace rviz {
23 class BoolProperty;
24 class ColorProperty;
25 class FloatProperty;
26 class IntProperty;
27 class EnumProperty;
28 class EditableEnumProperty;
29 }
30 
32 
33 class GridMapVisual;
34 class GridMapDisplay : public MessageFilterDisplayMod<grid_map_msgs::GridMap>
35 {
36 Q_OBJECT
37  public:
39  virtual ~GridMapDisplay();
40 
41  protected:
42  virtual void onInitialize();
43 
44  virtual void reset();
45 
46  private Q_SLOTS:
47  void updateHistoryLength();
48  void updateHeightMode();
49  void updateColorMode();
50  void updateUseRainbow();
51  void updateAutocomputeIntensityBounds();
52  void updateVisualization();
53 
54  private:
55  // Callback for incoming ROS messages
56  void processMessage(const grid_map_msgs::GridMap::ConstPtr& msg);
57 
58  // Circular buffer for visuals
59  boost::circular_buffer<boost::shared_ptr<GridMapVisual> > visuals_;
60 
61  // Property variables
77 };
78 
79 } // end namespace grid_map_rviz_plugin
rviz::BoolProperty * showGridLinesProperty_
rviz::ColorProperty * minColorProperty_
rviz::IntProperty * historyLengthProperty_
rviz::BoolProperty * autocomputeIntensityBoundsProperty_
rviz::ColorProperty * maxColorProperty_
rviz::BoolProperty * invertRainbowProperty_
rviz::BoolProperty * useRainbowProperty_
rviz::EnumProperty * heightModeProperty_
rviz::FloatProperty * minIntensityProperty_
rviz::EditableEnumProperty * colorTransformerProperty_
boost::circular_buffer< boost::shared_ptr< GridMapVisual > > visuals_
rviz::FloatProperty * maxIntensityProperty_
rviz::EditableEnumProperty * heightTransformerProperty_


grid_map_rviz_plugin
Author(s): Philipp Krüsi, Péter Fankhauser
autogenerated on Tue Jun 25 2019 20:02:28