Template Class Detection3DCommon

Inheritance Relationships

Base Type

  • public rviz_common::RosTopicDisplay< MessageType >

Class Documentation

template<class MessageType>
class Detection3DCommon : public rviz_common::RosTopicDisplay<MessageType>

Public Types

using MarkerCommon = rviz_default_plugins::displays::MarkerCommon
using Marker = visualization_msgs::msg::Marker
using BoundingBox3D = vision_msgs::msg::BoundingBox3D
using Detection3DArray = vision_msgs::msg::Detection3DArray

Public Functions

inline Detection3DCommon()
inline ~Detection3DCommon()

Protected Functions

inline visualization_msgs::msg::Marker::SharedPtr get_marker(const vision_msgs::msg::BoundingBox3D &box)
inline QColor getColor(std::string id = "") const
inline void showBoxes(const vision_msgs::msg::Detection3DArray::ConstSharedPtr &msg, const bool show_score)
inline void showBoxes(const vision_msgs::msg::Detection3D::ConstSharedPtr &msg, const bool show_score)
inline void allocateBillboardLines(size_t num)
inline void showEdges(const vision_msgs::msg::Detection3DArray::ConstSharedPtr &msg, const bool show_score)
inline void showEdges(const vision_msgs::msg::Detection3D::ConstSharedPtr &msg, const bool show_score)
inline void ShowScore(const vision_msgs::msg::Detection3D detection, const double score, const size_t idx)
inline void ClearScores(const bool show_score)
inline void updateColorConfig()

Protected Attributes

float line_width
float alpha
std::unique_ptr<MarkerCommon> m_marker_common
std::vector<BillboardLinePtr> edges_
std::string color_config_path_
rviz_common::properties::StringProperty *string_property_
std::unordered_map<int, visualization_msgs::msg::Marker::SharedPtr> score_markers
std::map<std::string, QColor> idToColorMap = {{"car", QColor(255, 165, 0)}, {"person", QColor(0, 0, 255)}, {"cyclist", QColor(255, 255, 0)}, {"motorcycle", QColor(230, 230, 250)}}