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> 53 #include <diagnostic_msgs/DiagnosticArray.h> 78 const diagnostic_msgs::DiagnosticArray::ConstPtr&
msg);
79 virtual void update(
float wall_dt,
float ros_dt);
87 virtual void drawSAC(QImage& Hud);
88 virtual void drawEVA(QImage& Hud);
101 virtual double textWidth(QPainter& painter,
double font_size,
const std::string&
text);
102 virtual double textHeight(QPainter& painter,
double font_size);
103 virtual QColor
blendColor(QColor a, QColor
b,
double a_rate);
105 const std::string& text);
109 const double font_size,
110 const std::string text);
118 #if ROS_VERSION_MINIMUM(1,12,0) 119 std::shared_ptr<diagnostic_msgs::DiagnosticStatus>
latest_status_;
virtual double textWidth(QPainter &painter, double font_size, const std::string &text)
virtual void updateAlpha()
virtual bool isAnimating()
virtual void processMessage(const diagnostic_msgs::DiagnosticArray::ConstPtr &msg)
virtual bool isInRegion(int x, int y)
rviz::FloatProperty * stall_duration_property_
virtual double drawAnimatingText(QPainter &painter, QColor fg_color, const double height, const double font_size, const std::string text)
virtual void fillNamespaceList()
boost::shared_ptr< diagnostic_msgs::DiagnosticStatus > latest_status_
virtual void updateStallDuration()
virtual void update(float wall_dt, float ros_dt)
virtual QColor blendColor(QColor a, QColor b, double a_rate)
virtual void onInitialize()
virtual ~OverlayDiagnosticDisplay()
rviz::FloatProperty * alpha_property_
virtual void drawEVANonConnectedRectangle(QPainter &painter, QColor color, QColor small_color, int width, double gap)
OverlayDiagnosticDisplay()
virtual void updateDiagnosticsNamespace()
ros::WallTime animation_start_time_
rviz::IntProperty * top_property_
std::string diagnostics_namespace_
virtual double textHeight(QPainter &painter, double font_size)
virtual State getLatestState()
virtual double animationRate()
virtual void unsubscribe()
rviz::RosTopicProperty * ros_topic_property_
virtual void updateRosTopic()
virtual std::string statusText()
rviz::EnumProperty * type_property_
virtual void drawEVAConnectedRectangle(QPainter &painter, QColor color, QColor small_color, int width)
virtual void updateType()
OverlayObject::Ptr overlay_
virtual void drawEVA(QImage &Hud)
rviz::EditableEnumProperty * diagnostics_namespace_property_
virtual QColor textColor()
virtual void movePosition(int x, int y)
virtual QColor foregroundColor()
virtual void drawSAC(QImage &Hud)
virtual void drawText(QPainter &painter, QColor fg_color, const std::string &text)
rviz::IntProperty * left_property_
rviz::IntProperty * size_property_
std::set< std::string > namespaces_
virtual void updateSize()
ros::WallTime latest_message_time_
virtual void setPosition(int x, int y)
virtual void updateLeft()