Class CameraInfoDisplay

Inheritance Relationships

Base Type

  • public rviz_common::MessageFilterDisplay< sensor_msgs::msg::CameraInfo >

Class Documentation

class CameraInfoDisplay : public rviz_common::MessageFilterDisplay<sensor_msgs::msg::CameraInfo>

Public Functions

CameraInfoDisplay()
~CameraInfoDisplay() override
void onInitialize() override
void reset() override

Protected Functions

void processMessage(const sensor_msgs::msg::CameraInfo::ConstSharedPtr msg) override
void update(float wall_dt, float ros_dt) override
bool isSameCameraInfo(const sensor_msgs::msg::CameraInfo::ConstSharedPtr &camera_info)
void createCameraInfoShapes(const sensor_msgs::msg::CameraInfo::ConstSharedPtr &camera_info)
void addPointToEdge(const Ogre::Vector3 &point)
void addPolygon(const Ogre::Vector3 &O, const Ogre::Vector3 &A, const Ogre::Vector3 &B, std::string name, bool use_color, bool upper_triangle)
void prepareMaterial()

Protected Attributes

std::vector<std::shared_ptr<rviz_rendering::TrianglePolygon>> polygons_
std::shared_ptr<rviz_rendering::BillboardLine> edges_
sensor_msgs::msg::CameraInfo::ConstSharedPtr camera_info_
Ogre::MaterialPtr material_
Ogre::TexturePtr texture_
double alpha_
double far_clip_distance_
QColor color_
QColor edge_color_
bool show_polygons_
bool show_edges_
bool not_show_side_polygons_
rviz_common::properties::FloatProperty *far_clip_distance_property_
rviz_common::properties::FloatProperty *alpha_property_
rviz_common::properties::ColorProperty *color_property_
rviz_common::properties::ColorProperty *edge_color_property_
rviz_common::properties::BoolProperty *show_polygons_property_
rviz_common::properties::BoolProperty *not_show_side_polygons_property_
rviz_common::properties::BoolProperty *show_edges_property_

Protected Slots

void updateFarClipDistance()
void updateAlpha()
void updateColor()
void updateShowEdges()
void updateShowPolygons()
void updateNotShowSidePolygons()
void updateEdgeColor()