Go to the documentation of this file.
34 #ifndef ROBOT_NAV_RVIZ_PLUGINS_POLYGON_DISPLAY_H
35 #define ROBOT_NAV_RVIZ_PLUGINS_POLYGON_DISPLAY_H
37 #include <nav_2d_msgs/Polygon2DStamped.h>
43 #include <OgreManualObject.h>
44 #include <OgreMaterial.h>
59 void reset()
override;
63 void processMessage(
const nav_2d_msgs::Polygon2DStamped::ConstPtr& msg)
override;
81 #endif // ROBOT_NAV_RVIZ_PLUGINS_POLYGON_DISPLAY_H
virtual ~PolygonDisplay()
rviz::ColorProperty * filler_color_property_
Several reusable pieces for displaying polygons.
PolygonDisplayModeProperty * mode_property_
rviz::FloatProperty * zoffset_property_
rviz::ColorProperty * outline_color_property_
rviz::FloatProperty * filler_alpha_property_
void onInitialize() override
PolygonFill * filler_object_
PolygonOutline * outline_object_
Constructs a manual ogre object to display the polygon area as a triangle mesh.
Wrapper for EnumProperty + enum for whether to display the outline, area, or both.
void processMessage(const nav_2d_msgs::Polygon2DStamped::ConstPtr &msg) override
Constructs a manual ogre object to display the polygon outline as a line strip.
Wrapper that creates a flat semi-transparent Ogre material and gives it a name.
PolygonMaterial polygon_material_
Displays a nav_2d_msgs::Polygon2DStamped message in Rviz.