grid_cells_display.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2008, Willow Garage, Inc.
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions are met:
7  *
8  * * Redistributions of source code must retain the above copyright
9  * notice, this list of conditions and the following disclaimer.
10  * * Redistributions in binary form must reproduce the above copyright
11  * notice, this list of conditions and the following disclaimer in the
12  * documentation and/or other materials provided with the distribution.
13  * * Neither the name of the Willow Garage, Inc. nor the names of its
14  * contributors may be used to endorse or promote products derived from
15  * this software without specific prior written permission.
16  *
17  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
18  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20  * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
21  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
22  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
23  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
24  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
25  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
26  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
27  * POSSIBILITY OF SUCH DAMAGE.
28  */
29 
30 
31 #ifndef RVIZ_GRID_CELLS_DISPLAY_H
32 #define RVIZ_GRID_CELLS_DISPLAY_H
33 
34 #include "rviz/display.h"
35 
36 #include <nav_msgs/GridCells.h>
37 #include <nav_msgs/MapMetaData.h>
38 
39 #ifndef Q_MOC_RUN
41 #include <tf/message_filter.h>
42 #endif
43 
44 #include <boost/shared_ptr.hpp>
45 
46 namespace Ogre
47 {
48 class ManualObject;
49 }
50 
51 namespace rviz
52 {
53 
54 class ColorProperty;
55 class FloatProperty;
56 class PointCloud;
57 class RosTopicProperty;
58 
63 class GridCellsDisplay : public Display
64 {
65 Q_OBJECT
66 public:
68  virtual ~GridCellsDisplay();
69 
70  virtual void onInitialize();
71 
72  // Overrides from Display
73  virtual void fixedFrameChanged();
74  virtual void reset();
75 
76 protected:
77  // overrides from Display
78  virtual void onEnable();
79  virtual void onDisable();
80 
81 private Q_SLOTS:
82  void updateAlpha();
83  void updateTopic();
84 
85 private:
86  void subscribe();
87  void unsubscribe();
88  void clear();
89  void incomingMessage( const nav_msgs::GridCells::ConstPtr& msg );
90 
92 
95 
99 
102 };
103 
104 } // namespace rviz
105 
106 #endif /* RVIZ_GRID_CELLS_DISPLAY_H */
107 
RosTopicProperty * topic_property_
message_filters::Subscriber< nav_msgs::GridCells > sub_
FloatProperty * alpha_property_
Property specialized to enforce floating point max/min.
tf::MessageFilter< nav_msgs::GridCells > * tf_filter_
void subscribe()
Displays a nav_msgs::GridCells message.
ColorProperty * color_property_
A visual representation of a set of points.
Definition: point_cloud.h:98


rviz
Author(s): Dave Hershberger, David Gossow, Josh Faust
autogenerated on Wed Aug 28 2019 04:01:51