MapGraphDisplay.h
Go to the documentation of this file.
1 /*
2 Copyright (c) 2010-2016, Mathieu Labbe - IntRoLab - Universite de Sherbrooke
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  * Redistributions of source code must retain the above copyright
8  notice, this list of conditions and the following disclaimer.
9  * Redistributions in binary form must reproduce the above copyright
10  notice, this list of conditions and the following disclaimer in the
11  documentation and/or other materials provided with the distribution.
12  * Neither the name of the Universite de Sherbrooke nor the
13  names of its contributors may be used to endorse or promote products
14  derived from this software without specific prior written permission.
15 
16 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
17 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19 DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY
20 DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21 (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22 LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23 ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27 
28 
29 #ifndef MAP_GRAPH_DISPLAY_H
30 #define MAP_GRAPH_DISPLAY_H
31 
32 #include <rtabmap_ros/MapGraph.h>
33 
35 
36 namespace Ogre
37 {
38 class ManualObject;
39 }
40 
41 namespace rviz
42 {
43 class ColorProperty;
44 class FloatProperty;
45 }
46 
47 using namespace rviz;
48 
49 namespace rtabmap_ros
50 {
51 
56 class MapGraphDisplay: public MessageFilterDisplay<rtabmap_ros::MapGraph>
57 {
58 Q_OBJECT
59 public:
61  virtual ~MapGraphDisplay();
62 
64  virtual void reset();
65 
66 protected:
68  virtual void onInitialize();
69 
71  void processMessage( const rtabmap_ros::MapGraph::ConstPtr& msg );
72 
73 private:
74  void destroyObjects();
75 
76  std::vector<Ogre::ManualObject*> manual_objects_;
77 
86 };
87 
88 } // namespace rtabmap_ros
89 
90 #endif /* MAP_GRAPH_DISPLAY_H */
91 
ColorProperty * color_global_property_
ColorProperty * color_local_property_
ColorProperty * color_user_property_
ColorProperty * color_virtual_property_
ColorProperty * color_landmark_property_
std::vector< Ogre::ManualObject * > manual_objects_
ColorProperty * color_neighbor_property_
Displays the graph of rtabmap::MapGraph message.
ColorProperty * color_neighbor_merged_property_


rtabmap_ros
Author(s): Mathieu Labbe
autogenerated on Tue Jan 24 2023 04:04:40