Go to the documentation of this file.
35 #ifndef JSK_RVIZ_PLUGIN_OVERLAY_DIAGNOSTIC_DISPLAY_H_
36 #define JSK_RVIZ_PLUGIN_OVERLAY_DIAGNOSTIC_DISPLAY_H_
40 #include <OGRE/OgreTexture.h>
41 #include <OGRE/OgreColourValue.h>
42 #include <OGRE/OgreMaterial.h>
45 #include <QPainterPath>
54 #include <diagnostic_msgs/DiagnosticArray.h>
79 const diagnostic_msgs::DiagnosticArray::ConstPtr& msg);
80 virtual void update(
float wall_dt,
float ros_dt);
88 virtual void drawSAC(QImage& Hud);
89 virtual void drawEVA(QImage& Hud);
102 virtual double textWidth(QPainter& painter,
double font_size,
const std::string&
text);
103 virtual double textHeight(QPainter& painter,
double font_size);
104 virtual QColor
blendColor(QColor a, QColor
b,
double a_rate);
106 const std::string&
text);
110 const double font_size,
111 const std::string
text);
119 #if ROS_VERSION_MINIMUM(1,12,0)
120 std::shared_ptr<diagnostic_msgs::DiagnosticStatus>
latest_status_;
virtual double textWidth(QPainter &painter, double font_size, const std::string &text)
virtual void updateDiagnosticsNamespace()
virtual ~OverlayDiagnosticDisplay()
rviz::IntProperty * left_property_
rviz::IntProperty * top_property_
virtual QColor blendColor(QColor a, QColor b, double a_rate)
virtual void unsubscribe()
virtual void processMessage(const diagnostic_msgs::DiagnosticArray::ConstPtr &msg)
ros::WallTime latest_message_time_
virtual bool isInRegion(int x, int y)
virtual QColor foregroundColor()
virtual QColor textColor()
virtual void updateSize()
virtual double animationRate()
virtual void movePosition(int x, int y)
rviz::RosTopicProperty * ros_topic_property_
virtual double drawAnimatingText(QPainter &painter, QColor fg_color, const double height, const double font_size, const std::string text)
virtual void drawText(QPainter &painter, QColor fg_color, const std::string &text)
virtual void drawEVA(QImage &Hud)
virtual std::string statusText()
rviz::FloatProperty * stall_duration_property_
OverlayObject::Ptr overlay_
virtual void updateType()
rviz::FloatProperty * alpha_property_
virtual void onInitialize()
virtual bool isAnimating()
virtual double textHeight(QPainter &painter, double font_size)
virtual void update(float wall_dt, float ros_dt)
virtual void updateAlpha()
std::set< std::string > namespaces_
virtual void fillNamespaceList()
rviz::EditableEnumProperty * diagnostics_namespace_property_
virtual void drawEVANonConnectedRectangle(QPainter &painter, QColor color, QColor small_color, int width, double gap)
rviz::EnumProperty * type_property_
virtual void setPosition(int x, int y)
rviz::IntProperty * size_property_
virtual void drawSAC(QImage &Hud)
virtual void drawEVAConnectedRectangle(QPainter &painter, QColor color, QColor small_color, int width)
OverlayDiagnosticDisplay()
boost::shared_ptr< diagnostic_msgs::DiagnosticStatus > latest_status_
virtual void updateStallDuration()
virtual void updateLeft()
std::string diagnostics_namespace_
virtual State getLatestState()
virtual void updateRosTopic()
ros::WallTime animation_start_time_
jsk_rviz_plugins
Author(s): Kei Okada
, Yohei Kakiuchi , Shohei Fujii , Ryohei Ueda
autogenerated on Fri Dec 13 2024 03:49:56