#include <overlay_diagnostic_display.h>
Public Types | |
enum | State { OK_STATE, ERROR_STATE, WARN_STATE, STALL_STATE } |
Public Member Functions | |
virtual int | getX () |
virtual int | getY () |
virtual bool | isInRegion (int x, int y) |
virtual void | movePosition (int x, int y) |
OverlayDiagnosticDisplay () | |
virtual void | setPosition (int x, int y) |
virtual | ~OverlayDiagnosticDisplay () |
Protected Slots | |
virtual void | updateAlpha () |
virtual void | updateDiagnosticsNamespace () |
virtual void | updateLeft () |
virtual void | updateRosTopic () |
virtual void | updateSize () |
virtual void | updateStallDuration () |
virtual void | updateTop () |
virtual void | updateType () |
Protected Member Functions | |
virtual double | animationRate () |
virtual QColor | blendColor (QColor a, QColor b, double a_rate) |
virtual double | drawAnimatingText (QPainter &painter, QColor fg_color, const double height, const double font_size, const std::string text) |
virtual void | drawEVA (QImage &Hud) |
virtual void | drawEVAConnectedRectangle (QPainter &painter, QColor color, QColor small_color, int width) |
virtual void | drawEVANonConnectedRectangle (QPainter &painter, QColor color, QColor small_color, int width, double gap) |
virtual void | drawSAC (QImage &Hud) |
virtual void | drawText (QPainter &painter, QColor fg_color, const std::string &text) |
virtual void | fillNamespaceList () |
virtual QColor | foregroundColor () |
virtual State | getLatestState () |
virtual bool | isAnimating () |
virtual bool | isStalled () |
virtual void | onDisable () |
virtual void | onEnable () |
virtual void | onInitialize () |
virtual void | processMessage (const diagnostic_msgs::DiagnosticArray::ConstPtr &msg) |
virtual void | redraw () |
virtual std::string | statusText () |
virtual void | subscribe () |
virtual QColor | textColor () |
virtual double | textHeight (QPainter &painter, double font_size) |
virtual double | textWidth (QPainter &painter, double font_size, const std::string &text) |
virtual void | unsubscribe () |
virtual void | update (float wall_dt, float ros_dt) |
Protected Attributes | |
double | alpha_ |
rviz::FloatProperty * | alpha_property_ |
ros::WallTime | animation_start_time_ |
std::string | diagnostics_namespace_ |
rviz::EditableEnumProperty * | diagnostics_namespace_property_ |
bool | is_animating_ |
ros::WallTime | latest_message_time_ |
std::shared_ptr < diagnostic_msgs::DiagnosticStatus > | latest_status_ |
int | left_ |
rviz::IntProperty * | left_property_ |
boost::mutex | mutex_ |
std::set< std::string > | namespaces_ |
OverlayObject::Ptr | overlay_ |
State | previous_state_ |
rviz::RosTopicProperty * | ros_topic_property_ |
int | size_ |
rviz::IntProperty * | size_property_ |
double | stall_duration_ |
rviz::FloatProperty * | stall_duration_property_ |
ros::Subscriber | sub_ |
double | t_ |
int | top_ |
rviz::IntProperty * | top_property_ |
int | type_ |
rviz::EnumProperty * | type_property_ |
Definition at line 60 of file overlay_diagnostic_display.h.
Definition at line 65 of file overlay_diagnostic_display.h.
Definition at line 53 of file overlay_diagnostic_display.cpp.
Definition at line 96 of file overlay_diagnostic_display.cpp.
double jsk_rviz_plugins::OverlayDiagnosticDisplay::animationRate | ( | ) | [protected, virtual] |
Definition at line 202 of file overlay_diagnostic_display.cpp.
QColor jsk_rviz_plugins::OverlayDiagnosticDisplay::blendColor | ( | QColor | a, |
QColor | b, | ||
double | a_rate | ||
) | [protected, virtual] |
Definition at line 371 of file overlay_diagnostic_display.cpp.
double jsk_rviz_plugins::OverlayDiagnosticDisplay::drawAnimatingText | ( | QPainter & | painter, |
QColor | fg_color, | ||
const double | height, | ||
const double | font_size, | ||
const std::string | text | ||
) | [protected, virtual] |
Definition at line 413 of file overlay_diagnostic_display.cpp.
void jsk_rviz_plugins::OverlayDiagnosticDisplay::drawEVA | ( | QImage & | Hud | ) | [protected, virtual] |
Definition at line 561 of file overlay_diagnostic_display.cpp.
void jsk_rviz_plugins::OverlayDiagnosticDisplay::drawEVAConnectedRectangle | ( | QPainter & | painter, |
QColor | color, | ||
QColor | small_color, | ||
int | width | ||
) | [protected, virtual] |
Definition at line 497 of file overlay_diagnostic_display.cpp.
void jsk_rviz_plugins::OverlayDiagnosticDisplay::drawEVANonConnectedRectangle | ( | QPainter & | painter, |
QColor | color, | ||
QColor | small_color, | ||
int | width, | ||
double | gap | ||
) | [protected, virtual] |
Definition at line 523 of file overlay_diagnostic_display.cpp.
void jsk_rviz_plugins::OverlayDiagnosticDisplay::drawSAC | ( | QImage & | Hud | ) | [protected, virtual] |
Definition at line 472 of file overlay_diagnostic_display.cpp.
void jsk_rviz_plugins::OverlayDiagnosticDisplay::drawText | ( | QPainter & | painter, |
QColor | fg_color, | ||
const std::string & | text | ||
) | [protected, virtual] |
Definition at line 445 of file overlay_diagnostic_display.cpp.
void jsk_rviz_plugins::OverlayDiagnosticDisplay::fillNamespaceList | ( | ) | [protected, virtual] |
Definition at line 634 of file overlay_diagnostic_display.cpp.
QColor jsk_rviz_plugins::OverlayDiagnosticDisplay::foregroundColor | ( | ) | [protected, virtual] |
Definition at line 325 of file overlay_diagnostic_display.cpp.
OverlayDiagnosticDisplay::State jsk_rviz_plugins::OverlayDiagnosticDisplay::getLatestState | ( | ) | [protected, virtual] |
Definition at line 297 of file overlay_diagnostic_display.cpp.
virtual int jsk_rviz_plugins::OverlayDiagnosticDisplay::getX | ( | ) | [inline, virtual] |
Definition at line 72 of file overlay_diagnostic_display.h.
virtual int jsk_rviz_plugins::OverlayDiagnosticDisplay::getY | ( | ) | [inline, virtual] |
Definition at line 73 of file overlay_diagnostic_display.h.
bool jsk_rviz_plugins::OverlayDiagnosticDisplay::isAnimating | ( | ) | [protected, virtual] |
Definition at line 197 of file overlay_diagnostic_display.cpp.
bool jsk_rviz_plugins::OverlayDiagnosticDisplay::isInRegion | ( | int | x, |
int | y | ||
) | [virtual] |
Definition at line 684 of file overlay_diagnostic_display.cpp.
bool jsk_rviz_plugins::OverlayDiagnosticDisplay::isStalled | ( | ) | [protected, virtual] |
Definition at line 253 of file overlay_diagnostic_display.cpp.
void jsk_rviz_plugins::OverlayDiagnosticDisplay::movePosition | ( | int | x, |
int | y | ||
) | [virtual] |
Definition at line 690 of file overlay_diagnostic_display.cpp.
void jsk_rviz_plugins::OverlayDiagnosticDisplay::onDisable | ( | ) | [protected, virtual] |
Reimplemented from rviz::Display.
Definition at line 216 of file overlay_diagnostic_display.cpp.
void jsk_rviz_plugins::OverlayDiagnosticDisplay::onEnable | ( | ) | [protected, virtual] |
Reimplemented from rviz::Display.
Definition at line 207 of file overlay_diagnostic_display.cpp.
void jsk_rviz_plugins::OverlayDiagnosticDisplay::onInitialize | ( | ) | [protected, virtual] |
Reimplemented from rviz::Display.
Definition at line 225 of file overlay_diagnostic_display.cpp.
void jsk_rviz_plugins::OverlayDiagnosticDisplay::processMessage | ( | const diagnostic_msgs::DiagnosticArray::ConstPtr & | msg | ) | [protected, virtual] |
Definition at line 112 of file overlay_diagnostic_display.cpp.
void jsk_rviz_plugins::OverlayDiagnosticDisplay::redraw | ( | ) | [protected, virtual] |
Definition at line 621 of file overlay_diagnostic_display.cpp.
void jsk_rviz_plugins::OverlayDiagnosticDisplay::setPosition | ( | int | x, |
int | y | ||
) | [virtual] |
Definition at line 696 of file overlay_diagnostic_display.cpp.
std::string jsk_rviz_plugins::OverlayDiagnosticDisplay::statusText | ( | ) | [protected, virtual] |
Definition at line 270 of file overlay_diagnostic_display.cpp.
void jsk_rviz_plugins::OverlayDiagnosticDisplay::subscribe | ( | ) | [protected, virtual] |
Definition at line 244 of file overlay_diagnostic_display.cpp.
QColor jsk_rviz_plugins::OverlayDiagnosticDisplay::textColor | ( | ) | [protected, virtual] |
Definition at line 347 of file overlay_diagnostic_display.cpp.
double jsk_rviz_plugins::OverlayDiagnosticDisplay::textHeight | ( | QPainter & | painter, |
double | font_size | ||
) | [protected, virtual] |
Definition at line 396 of file overlay_diagnostic_display.cpp.
double jsk_rviz_plugins::OverlayDiagnosticDisplay::textWidth | ( | QPainter & | painter, |
double | font_size, | ||
const std::string & | text | ||
) | [protected, virtual] |
Definition at line 379 of file overlay_diagnostic_display.cpp.
void jsk_rviz_plugins::OverlayDiagnosticDisplay::unsubscribe | ( | ) | [protected, virtual] |
Definition at line 239 of file overlay_diagnostic_display.cpp.
void jsk_rviz_plugins::OverlayDiagnosticDisplay::update | ( | float | wall_dt, |
float | ros_dt | ||
) | [protected, virtual] |
Reimplemented from rviz::Display.
Definition at line 159 of file overlay_diagnostic_display.cpp.
void jsk_rviz_plugins::OverlayDiagnosticDisplay::updateAlpha | ( | ) | [protected, virtual, slot] |
Definition at line 664 of file overlay_diagnostic_display.cpp.
void jsk_rviz_plugins::OverlayDiagnosticDisplay::updateDiagnosticsNamespace | ( | ) | [protected, virtual, slot] |
Definition at line 653 of file overlay_diagnostic_display.cpp.
void jsk_rviz_plugins::OverlayDiagnosticDisplay::updateLeft | ( | ) | [protected, virtual, slot] |
Definition at line 674 of file overlay_diagnostic_display.cpp.
void jsk_rviz_plugins::OverlayDiagnosticDisplay::updateRosTopic | ( | ) | [protected, virtual, slot] |
Definition at line 646 of file overlay_diagnostic_display.cpp.
void jsk_rviz_plugins::OverlayDiagnosticDisplay::updateSize | ( | ) | [protected, virtual, slot] |
Definition at line 659 of file overlay_diagnostic_display.cpp.
void jsk_rviz_plugins::OverlayDiagnosticDisplay::updateStallDuration | ( | ) | [protected, virtual, slot] |
Definition at line 679 of file overlay_diagnostic_display.cpp.
void jsk_rviz_plugins::OverlayDiagnosticDisplay::updateTop | ( | ) | [protected, virtual, slot] |
Definition at line 669 of file overlay_diagnostic_display.cpp.
void jsk_rviz_plugins::OverlayDiagnosticDisplay::updateType | ( | ) | [protected, virtual, slot] |
Definition at line 702 of file overlay_diagnostic_display.cpp.
double jsk_rviz_plugins::OverlayDiagnosticDisplay::alpha_ [protected] |
Definition at line 126 of file overlay_diagnostic_display.h.
Definition at line 136 of file overlay_diagnostic_display.h.
Definition at line 121 of file overlay_diagnostic_display.h.
std::string jsk_rviz_plugins::OverlayDiagnosticDisplay::diagnostics_namespace_ [protected] |
Definition at line 123 of file overlay_diagnostic_display.h.
rviz::EditableEnumProperty* jsk_rviz_plugins::OverlayDiagnosticDisplay::diagnostics_namespace_property_ [protected] |
Definition at line 132 of file overlay_diagnostic_display.h.
bool jsk_rviz_plugins::OverlayDiagnosticDisplay::is_animating_ [protected] |
Definition at line 130 of file overlay_diagnostic_display.h.
Definition at line 120 of file overlay_diagnostic_display.h.
std::shared_ptr<diagnostic_msgs::DiagnosticStatus> jsk_rviz_plugins::OverlayDiagnosticDisplay::latest_status_ [protected] |
Definition at line 118 of file overlay_diagnostic_display.h.
int jsk_rviz_plugins::OverlayDiagnosticDisplay::left_ [protected] |
Definition at line 127 of file overlay_diagnostic_display.h.
Definition at line 135 of file overlay_diagnostic_display.h.
boost::mutex jsk_rviz_plugins::OverlayDiagnosticDisplay::mutex_ [protected] |
Definition at line 115 of file overlay_diagnostic_display.h.
std::set<std::string> jsk_rviz_plugins::OverlayDiagnosticDisplay::namespaces_ [protected] |
Definition at line 125 of file overlay_diagnostic_display.h.
Definition at line 116 of file overlay_diagnostic_display.h.
Definition at line 119 of file overlay_diagnostic_display.h.
Definition at line 131 of file overlay_diagnostic_display.h.
int jsk_rviz_plugins::OverlayDiagnosticDisplay::size_ [protected] |
Definition at line 122 of file overlay_diagnostic_display.h.
Definition at line 137 of file overlay_diagnostic_display.h.
double jsk_rviz_plugins::OverlayDiagnosticDisplay::stall_duration_ [protected] |
Definition at line 129 of file overlay_diagnostic_display.h.
rviz::FloatProperty* jsk_rviz_plugins::OverlayDiagnosticDisplay::stall_duration_property_ [protected] |
Definition at line 138 of file overlay_diagnostic_display.h.
Definition at line 140 of file overlay_diagnostic_display.h.
double jsk_rviz_plugins::OverlayDiagnosticDisplay::t_ [protected] |
Definition at line 128 of file overlay_diagnostic_display.h.
int jsk_rviz_plugins::OverlayDiagnosticDisplay::top_ [protected] |
Definition at line 127 of file overlay_diagnostic_display.h.
Definition at line 134 of file overlay_diagnostic_display.h.
int jsk_rviz_plugins::OverlayDiagnosticDisplay::type_ [protected] |
Definition at line 124 of file overlay_diagnostic_display.h.
Definition at line 133 of file overlay_diagnostic_display.h.