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 
35 
36 #include <nav_msgs/GridCells.h>
37 #include <nav_msgs/MapMetaData.h>
38 
39 #include <boost/shared_ptr.hpp>
40 
41 namespace Ogre
42 {
43 class ManualObject;
44 }
45 
46 namespace rviz
47 {
48 class ColorProperty;
49 class FloatProperty;
50 class PointCloud;
51 
56 class GridCellsDisplay : public MessageFilterDisplay<nav_msgs::GridCells>
57 {
58  Q_OBJECT
59 public:
61  ~GridCellsDisplay() override;
62 
63  void onInitialize() override;
64  void reset() override;
65 
66 private Q_SLOTS:
67  void updateAlpha();
68 
69 private:
70  void processMessage(const nav_msgs::GridCells::ConstPtr& msg) override;
71 
73 
76 
78 };
79 
80 } // namespace rviz
81 
82 #endif /* RVIZ_GRID_CELLS_DISPLAY_H */
rviz::PointCloud
A visual representation of a set of points.
Definition: point_cloud.h:108
rviz::MessageFilterDisplay
Display subclass using a tf2_ros::MessageFilter, templated on the ROS message type.
Definition: message_filter_display.h:90
rviz::GridCellsDisplay::GridCellsDisplay
GridCellsDisplay()
Definition: grid_cells_display.cpp:48
rviz::GridCellsDisplay::alpha_property_
FloatProperty * alpha_property_
Definition: grid_cells_display.h:75
Ogre
Definition: axes_display.h:35
message_filter_display.h
rviz::GridCellsDisplay::cloud_
PointCloud * cloud_
Definition: grid_cells_display.h:72
rviz::GridCellsDisplay::reset
void reset() override
Called to tell the display to clear its state.
Definition: grid_cells_display.cpp:85
rviz::ColorProperty
Definition: color_property.h:40
rviz::FloatProperty
Property specialized to enforce floating point max/min.
Definition: float_property.h:37
rviz::GridCellsDisplay::onInitialize
void onInitialize() override
Override this function to do subclass-specific initialization.
Definition: grid_cells_display.cpp:58
rviz::GridCellsDisplay::color_property_
ColorProperty * color_property_
Definition: grid_cells_display.h:74
rviz::GridCellsDisplay
Displays a nav_msgs::GridCells message.
Definition: grid_cells_display.h:56
rviz
Definition: add_display_dialog.cpp:54
rviz::GridCellsDisplay::updateAlpha
void updateAlpha()
Definition: grid_cells_display.cpp:91
rviz::GridCellsDisplay::~GridCellsDisplay
~GridCellsDisplay() override
Definition: grid_cells_display.cpp:74
rviz::GridCellsDisplay::last_frame_count_
uint64_t last_frame_count_
Definition: grid_cells_display.h:77
rviz::GridCellsDisplay::processMessage
void processMessage(const nav_msgs::GridCells::ConstPtr &msg) override
Definition: grid_cells_display.cpp:106


rviz
Author(s): Dave Hershberger, David Gossow, Josh Faust, William Woodall
autogenerated on Sat Jun 1 2024 02:31:53