monitoring v1.0.0
Loading...
Searching...
No Matches
geofence_display.hpp
Go to the documentation of this file.
1// Copyright Institute for Automotive Engineering (ika), RWTH Aachen University
2// SPDX-License-Identifier: Apache-2.0
3
4/*
5 * Geofence display for geometry_msgs::msg::PolygonStamped
6 */
7
8#ifndef RVIZ_PLUGINS__DISPLAYS__GEOFENCE__GEOFENCE_DISPLAY_HPP_
9#define RVIZ_PLUGINS__DISPLAYS__GEOFENCE__GEOFENCE_DISPLAY_HPP_
10
11#include "geometry_msgs/msg/polygon_stamped.hpp"
12
13#include "rviz_common/message_filter_display.hpp"
14
16
17namespace Ogre {
18class ManualObject;
19}
20
21namespace rviz_common {
22namespace properties {
23class ColorProperty;
24class FloatProperty;
25} // namespace properties
26} // namespace rviz_common
27
28namespace rviz_plugins {
29namespace displays {
30
31class RVIZ_PLUGINS_PUBLIC GeofenceDisplay : public rviz_common::MessageFilterDisplay<geometry_msgs::msg::PolygonStamped> {
32 Q_OBJECT
33
34 public:
39
43 ~GeofenceDisplay() override;
44
48 void onInitialize() override;
49
53 void reset() override;
54
55 protected:
61 void processMessage(geometry_msgs::msg::PolygonStamped::ConstSharedPtr msg) override;
62
63 private:
64 Ogre::ManualObject* manual_object_;
65 Ogre::MaterialPtr material_;
66
67 // Properties
68 rviz_common::properties::ColorProperty* color_property_;
69 rviz_common::properties::FloatProperty* bottom_alpha_property_;
70 rviz_common::properties::FloatProperty* top_alpha_property_;
71 rviz_common::properties::FloatProperty* height_property_;
72 rviz_common::properties::FloatProperty* thickness_property_;
73};
74
75} // namespace displays
76} // namespace rviz_plugins
77
78#endif // RVIZ_PLUGINS__DISPLAYS__GEOFENCE__GEOFENCE_DISPLAY_HPP_
rviz_common::properties::FloatProperty * height_property_
rviz_common::properties::FloatProperty * thickness_property_
rviz_common::properties::ColorProperty * color_property_
rviz_common::properties::FloatProperty * bottom_alpha_property_
rviz_common::properties::FloatProperty * top_alpha_property_
#define RVIZ_PLUGINS_PUBLIC