Public Types | Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes | List of all members
jsk_rviz_plugins::CameraInfoDisplay Class Reference

#include <camera_info_display.h>

Inheritance diagram for jsk_rviz_plugins::CameraInfoDisplay:
Inheritance graph
[legend]

Public Types

typedef boost::shared_ptr< rviz::BillboardLineBillboardLinePtr
 
typedef boost::shared_ptr< rviz::ShapeShapePtr
 
- Public Types inherited from rviz::MessageFilterDisplay< sensor_msgs::CameraInfo >
typedef MessageFilterDisplay< MessageType > MFDClass
 

Public Member Functions

 CameraInfoDisplay ()
 
virtual ~CameraInfoDisplay ()
 
- Public Member Functions inherited from rviz::MessageFilterDisplay< sensor_msgs::CameraInfo >
 MessageFilterDisplay ()
 
void onInitialize () override
 
void reset () override
 
void setTopic (const QString &topic, const QString &) override
 
 ~MessageFilterDisplay () override
 
- Public Member Functions inherited from rviz::_RosTopicDisplay
 _RosTopicDisplay ()
 
- Public Member Functions inherited from rviz::Display
virtual void deleteStatus (const QString &name)
 
void deleteStatusStd (const std::string &name)
 
 Display ()
 
void emitTimeSignal (ros::Time time)
 
QWidget * getAssociatedWidget () const
 
PanelDockWidgetgetAssociatedWidgetPanel ()
 
virtual QString getClassId () const
 
Ogre::SceneNode * getSceneNode () const
 
QVariant getViewData (int column, int role) const override
 
Qt::ItemFlags getViewFlags (int column) const override
 
uint32_t getVisibilityBits ()
 
void initialize (DisplayContext *context)
 
bool isEnabled () const
 
void load (const Config &config) override
 
void save (Config config) const override
 
void setAssociatedWidget (QWidget *widget)
 
virtual void setClassId (const QString &class_id)
 
void setFixedFrame (const QString &fixed_frame)
 
void setName (const QString &name) override
 
virtual void setStatus (StatusProperty::Level level, const QString &name, const QString &text)
 
void setStatusStd (StatusProperty::Level level, const std::string &name, const std::string &text)
 
void setVisibilityBits (uint32_t bits)
 
void unsetVisibilityBits (uint32_t bits)
 
 ~Display () override
 
- Public Member Functions inherited from rviz::BoolProperty
 BoolProperty (const QString &name, bool default_value, const QString &description, P *parent, Func &&changed_slot)
 
 BoolProperty (const QString &name, bool default_value, const QString &description, Property *parent, Func &&changed_slot, const R *receiver)
 
 BoolProperty (const QString &name=QString(), bool default_value=false, const QString &description=QString(), Property *parent=nullptr)
 
virtual bool getBool () const
 
bool getDisableChildren () override
 
bool getDisableChildrenIfFalse ()
 
void setDisableChildrenIfFalse (bool disable)
 
 ~BoolProperty () override
 
- Public Member Functions inherited from rviz::Property
virtual void addChild (Property *child, int index=-1)
 
PropertychildAt (int index) const
 
virtual PropertychildAtUnchecked (int index) const
 
virtual void collapse ()
 
std::enable_if<!QtPrivate::FunctionPointer< Func >::IsPointerToMemberFunction, QMetaObject::Connection >::type connect (const QObject *context, Func &&slot, Qt::ConnectionType type=Qt::AutoConnection)
 
QMetaObject::Connection connect (const QObject *receiver, const char *slot, Qt::ConnectionType type=Qt::AutoConnection)
 
std::enable_if< QtPrivate::FunctionPointer< Func >::IsPointerToMemberFunction, QMetaObject::Connection >::type connect (const R *receiver, Func &&slot, Qt::ConnectionType type=Qt::AutoConnection)
 
std::enable_if<!QtPrivate::FunctionPointer< Func >::IsPointerToMemberFunction, QMetaObject::Connection >::type connect (Func &&slot, Qt::ConnectionType type=Qt::AutoConnection)
 
bool contains (Property *possible_child) const
 
virtual QWidget * createEditor (QWidget *parent, const QStyleOptionViewItem &option)
 
virtual void expand ()
 
virtual QString getDescription () const
 
virtual bool getHidden () const
 
virtual QIcon getIcon () const
 
PropertyTreeModelgetModel () const
 
virtual QString getName () const
 
std::string getNameStd () const
 
PropertygetParent () const
 
virtual bool getReadOnly () const
 
virtual QVariant getValue () const
 
void hide ()
 
void insertChildSorted (Property *child)
 
bool isAncestorOf (Property *possible_child) const
 
virtual void moveChild (int from_index, int to_index)
 
virtual int numChildren () const
 
virtual bool paint (QPainter *painter, const QStyleOptionViewItem &option) const
 
 Property (const QString &name, const QVariant &default_value, const QString &description, P *parent, Func &&changed_slot)
 
 Property (const QString &name, const QVariant &default_value, const QString &description, Property *parent, Func &&changed_slot, const R *receiver)
 
 Property (const QString &name=QString(), const QVariant &default_value=QVariant(), const QString &description=QString(), Property *parent=nullptr)
 
virtual void removeChildren (int start_index=0, int count=-1)
 
int rowNumberInParent () const
 
virtual void setDescription (const QString &description)
 
virtual void setHidden (bool hidden)
 
virtual void setIcon (const QIcon &icon)
 
void setModel (PropertyTreeModel *model)
 
void setParent (Property *new_parent)
 
virtual void setReadOnly (bool read_only)
 
void setShouldBeSaved (bool save)
 
virtual bool setValue (const QVariant &new_value)
 
bool shouldBeSaved () const
 
void show ()
 
virtual PropertysubProp (const QString &sub_name)
 
PropertytakeChild (Property *child)
 
virtual PropertytakeChildAt (int index)
 
 ~Property () override
 

Protected Slots

void updateAlpha ()
 
void updateColor ()
 
void updateEdgeColor ()
 
void updateFarClipDistance ()
 
void updateImageTopic ()
 
void updateNotShowSidePolygons ()
 
void updateShowEdges ()
 
void updateShowPolygons ()
 
void updateUseImage ()
 
- Protected Slots inherited from rviz::_RosTopicDisplay

Protected Member Functions

virtual void addPointToEdge (const cv::Point3d &point)
 
virtual void addPolygon (const cv::Point3d &O, const cv::Point3d &A, const cv::Point3d &B, std::string name, bool use_color, bool upper_triangle)
 
virtual void createCameraInfoShapes (const sensor_msgs::CameraInfo::ConstPtr &camera_info)
 
virtual void createTextureForBottom (int width, int height)
 
virtual void drawImageTexture ()
 
virtual void imageCallback (const sensor_msgs::Image::ConstPtr &msg)
 
virtual bool isSameCameraInfo (const sensor_msgs::CameraInfo::ConstPtr &camera_info)
 
virtual void onInitialize ()
 
virtual void prepareMaterial ()
 
virtual void processMessage (const sensor_msgs::CameraInfo::ConstPtr &msg)
 
virtual void reset ()
 
virtual void subscribeImage (std::string topic)
 
virtual void update (float wall_dt, float ros_dt)
 
- Protected Member Functions inherited from rviz::MessageFilterDisplay< sensor_msgs::CameraInfo >
void fixedFrameChanged () override
 
void incomingMessage (const typename MessageType::ConstPtr &msg)
 
void onDisable () override
 
void onEnable () override
 
virtual void processMessage (const typename MessageType::ConstPtr &msg)=0
 
void processTypeErasedMessage (boost::shared_ptr< const void > type_erased_msg) override
 
virtual void subscribe ()
 
virtual void unsubscribe ()
 
void updateQueueSize () override
 
void updateTopic () override
 
- Protected Member Functions inherited from rviz::Display
virtual void clearStatuses ()
 
bool initialized () const
 
- Protected Member Functions inherited from rviz::Property
void loadValue (const Config &config)
 

Protected Attributes

double alpha_
 
rviz::FloatPropertyalpha_property_
 
Ogre::TexturePtr bottom_texture_
 
sensor_msgs::CameraInfo::ConstPtr camera_info_
 
QColor color_
 
rviz::ColorPropertycolor_property_
 
QColor edge_color_
 
rviz::ColorPropertyedge_color_property_
 
BillboardLinePtr edges_
 
double far_clip_distance_
 
rviz::FloatPropertyfar_clip_distance_property_
 
cv::Mat image_
 
image_transport::Subscriber image_sub_
 
rviz::RosTopicPropertyimage_topic_property_
 
ImageTransportHintsPropertyimage_transport_hints_property_
 
bool image_updated_
 
Ogre::MaterialPtr material_
 
Ogre::MaterialPtr material_bottom_
 
boost::mutex mutex_
 
bool not_show_side_polygons_
 
rviz::BoolPropertynot_show_side_polygons_property_
 
std::vector< TrianglePolygon::Ptrpolygons_
 
bool show_edges_
 
rviz::BoolPropertyshow_edges_property_
 
bool show_polygons_
 
rviz::BoolPropertyshow_polygons_property_
 
Ogre::TexturePtr texture_
 
bool use_image_
 
rviz::BoolPropertyuse_image_property_
 
- Protected Attributes inherited from rviz::MessageFilterDisplay< sensor_msgs::CameraInfo >
uint32_t messages_received_
 
message_filters::Subscriber< MessageType > sub_
 
tf2_ros::MessageFilter< MessageType > * tf_filter_
 
- Protected Attributes inherited from rviz::_RosTopicDisplay
IntPropertyqueue_size_property_
 
RosTopicPropertytopic_property_
 
BoolPropertyunreliable_property_
 
- Protected Attributes inherited from rviz::Display
DisplayContextcontext_
 
QString fixed_frame_
 
Ogre::SceneManager * scene_manager_
 
Ogre::SceneNode * scene_node_
 
ros::NodeHandle threaded_nh_
 
ros::NodeHandle update_nh_
 
- Protected Attributes inherited from rviz::Property
bool child_indexes_valid_
 
QIcon icon_
 
PropertyTreeModelmodel_
 
QVariant value_
 

Additional Inherited Members

- Public Slots inherited from rviz::Display
virtual void onEnableChanged ()
 
void queueRender ()
 
void setEnabled (bool enabled)
 
void setIcon (const QIcon &icon) override
 
- Public Slots inherited from rviz::BoolProperty
bool setBool (bool value)
 
- Signals inherited from rviz::Display
void timeSignal (ros::Time time, QPrivateSignal)
 
- Signals inherited from rviz::Property
void aboutToChange ()
 
void changed ()
 
void childListChanged (Property *this_property)
 

Detailed Description

Definition at line 122 of file camera_info_display.h.

Member Typedef Documentation

◆ BillboardLinePtr

Definition at line 132 of file camera_info_display.h.

◆ ShapePtr

Definition at line 131 of file camera_info_display.h.

Constructor & Destructor Documentation

◆ CameraInfoDisplay()

jsk_rviz_plugins::CameraInfoDisplay::CameraInfoDisplay ( )

Definition at line 139 of file camera_info_display.cpp.

◆ ~CameraInfoDisplay()

jsk_rviz_plugins::CameraInfoDisplay::~CameraInfoDisplay ( )
virtual

Definition at line 198 of file camera_info_display.cpp.

Member Function Documentation

◆ addPointToEdge()

void jsk_rviz_plugins::CameraInfoDisplay::addPointToEdge ( const cv::Point3d &  point)
protectedvirtual

Definition at line 304 of file camera_info_display.cpp.

◆ addPolygon()

void jsk_rviz_plugins::CameraInfoDisplay::addPolygon ( const cv::Point3d &  O,
const cv::Point3d &  A,
const cv::Point3d &  B,
std::string  name,
bool  use_color,
bool  upper_triangle 
)
protectedvirtual

Definition at line 314 of file camera_info_display.cpp.

◆ createCameraInfoShapes()

void jsk_rviz_plugins::CameraInfoDisplay::createCameraInfoShapes ( const sensor_msgs::CameraInfo::ConstPtr &  camera_info)
protectedvirtual

Definition at line 528 of file camera_info_display.cpp.

◆ createTextureForBottom()

void jsk_rviz_plugins::CameraInfoDisplay::createTextureForBottom ( int  width,
int  height 
)
protectedvirtual

Definition at line 329 of file camera_info_display.cpp.

◆ drawImageTexture()

void jsk_rviz_plugins::CameraInfoDisplay::drawImageTexture ( )
protectedvirtual

Definition at line 408 of file camera_info_display.cpp.

◆ imageCallback()

void jsk_rviz_plugins::CameraInfoDisplay::imageCallback ( const sensor_msgs::Image::ConstPtr &  msg)
protectedvirtual

Definition at line 446 of file camera_info_display.cpp.

◆ isSameCameraInfo()

bool jsk_rviz_plugins::CameraInfoDisplay::isSameCameraInfo ( const sensor_msgs::CameraInfo::ConstPtr &  camera_info)
protectedvirtual

Definition at line 274 of file camera_info_display.cpp.

◆ onInitialize()

void jsk_rviz_plugins::CameraInfoDisplay::onInitialize ( )
protectedvirtual

Reimplemented from rviz::Display.

Definition at line 221 of file camera_info_display.cpp.

◆ prepareMaterial()

void jsk_rviz_plugins::CameraInfoDisplay::prepareMaterial ( )
protectedvirtual

Definition at line 362 of file camera_info_display.cpp.

◆ processMessage()

void jsk_rviz_plugins::CameraInfoDisplay::processMessage ( const sensor_msgs::CameraInfo::ConstPtr &  msg)
protectedvirtual

Definition at line 236 of file camera_info_display.cpp.

◆ reset()

void jsk_rviz_plugins::CameraInfoDisplay::reset ( )
protectedvirtual

Reimplemented from rviz::Display.

Definition at line 211 of file camera_info_display.cpp.

◆ subscribeImage()

void jsk_rviz_plugins::CameraInfoDisplay::subscribeImage ( std::string  topic)
protectedvirtual

Definition at line 395 of file camera_info_display.cpp.

◆ update()

void jsk_rviz_plugins::CameraInfoDisplay::update ( float  wall_dt,
float  ros_dt 
)
protectedvirtual

Reimplemented from rviz::Display.

Definition at line 262 of file camera_info_display.cpp.

◆ updateAlpha

void jsk_rviz_plugins::CameraInfoDisplay::updateAlpha ( )
protectedslot

Definition at line 657 of file camera_info_display.cpp.

◆ updateColor

void jsk_rviz_plugins::CameraInfoDisplay::updateColor ( )
protectedslot

Definition at line 641 of file camera_info_display.cpp.

◆ updateEdgeColor

void jsk_rviz_plugins::CameraInfoDisplay::updateEdgeColor ( )
protectedslot

Definition at line 649 of file camera_info_display.cpp.

◆ updateFarClipDistance

void jsk_rviz_plugins::CameraInfoDisplay::updateFarClipDistance ( )
protectedslot

Definition at line 665 of file camera_info_display.cpp.

◆ updateImageTopic

void jsk_rviz_plugins::CameraInfoDisplay::updateImageTopic ( )
protectedslot

Definition at line 695 of file camera_info_display.cpp.

◆ updateNotShowSidePolygons

void jsk_rviz_plugins::CameraInfoDisplay::updateNotShowSidePolygons ( )
protectedslot

Definition at line 720 of file camera_info_display.cpp.

◆ updateShowEdges

void jsk_rviz_plugins::CameraInfoDisplay::updateShowEdges ( )
protectedslot

Definition at line 687 of file camera_info_display.cpp.

◆ updateShowPolygons

void jsk_rviz_plugins::CameraInfoDisplay::updateShowPolygons ( )
protectedslot

Definition at line 673 of file camera_info_display.cpp.

◆ updateUseImage

void jsk_rviz_plugins::CameraInfoDisplay::updateUseImage ( )
protectedslot

Definition at line 707 of file camera_info_display.cpp.

Member Data Documentation

◆ alpha_

double jsk_rviz_plugins::CameraInfoDisplay::alpha_
protected

Definition at line 177 of file camera_info_display.h.

◆ alpha_property_

rviz::FloatProperty* jsk_rviz_plugins::CameraInfoDisplay::alpha_property_
protected

Definition at line 192 of file camera_info_display.h.

◆ bottom_texture_

Ogre::TexturePtr jsk_rviz_plugins::CameraInfoDisplay::bottom_texture_
protected

Definition at line 171 of file camera_info_display.h.

◆ camera_info_

sensor_msgs::CameraInfo::ConstPtr jsk_rviz_plugins::CameraInfoDisplay::camera_info_
protected

Definition at line 167 of file camera_info_display.h.

◆ color_

QColor jsk_rviz_plugins::CameraInfoDisplay::color_
protected

Definition at line 179 of file camera_info_display.h.

◆ color_property_

rviz::ColorProperty* jsk_rviz_plugins::CameraInfoDisplay::color_property_
protected

Definition at line 193 of file camera_info_display.h.

◆ edge_color_

QColor jsk_rviz_plugins::CameraInfoDisplay::edge_color_
protected

Definition at line 180 of file camera_info_display.h.

◆ edge_color_property_

rviz::ColorProperty* jsk_rviz_plugins::CameraInfoDisplay::edge_color_property_
protected

Definition at line 194 of file camera_info_display.h.

◆ edges_

BillboardLinePtr jsk_rviz_plugins::CameraInfoDisplay::edges_
protected

Definition at line 166 of file camera_info_display.h.

◆ far_clip_distance_

double jsk_rviz_plugins::CameraInfoDisplay::far_clip_distance_
protected

Definition at line 178 of file camera_info_display.h.

◆ far_clip_distance_property_

rviz::FloatProperty* jsk_rviz_plugins::CameraInfoDisplay::far_clip_distance_property_
protected

Definition at line 191 of file camera_info_display.h.

◆ image_

cv::Mat jsk_rviz_plugins::CameraInfoDisplay::image_
protected

Definition at line 186 of file camera_info_display.h.

◆ image_sub_

image_transport::Subscriber jsk_rviz_plugins::CameraInfoDisplay::image_sub_
protected

Definition at line 172 of file camera_info_display.h.

◆ image_topic_property_

rviz::RosTopicProperty* jsk_rviz_plugins::CameraInfoDisplay::image_topic_property_
protected

Definition at line 198 of file camera_info_display.h.

◆ image_transport_hints_property_

ImageTransportHintsProperty* jsk_rviz_plugins::CameraInfoDisplay::image_transport_hints_property_
protected

Definition at line 190 of file camera_info_display.h.

◆ image_updated_

bool jsk_rviz_plugins::CameraInfoDisplay::image_updated_
protected

Definition at line 184 of file camera_info_display.h.

◆ material_

Ogre::MaterialPtr jsk_rviz_plugins::CameraInfoDisplay::material_
protected

Definition at line 168 of file camera_info_display.h.

◆ material_bottom_

Ogre::MaterialPtr jsk_rviz_plugins::CameraInfoDisplay::material_bottom_
protected

Definition at line 170 of file camera_info_display.h.

◆ mutex_

boost::mutex jsk_rviz_plugins::CameraInfoDisplay::mutex_
protected

Definition at line 173 of file camera_info_display.h.

◆ not_show_side_polygons_

bool jsk_rviz_plugins::CameraInfoDisplay::not_show_side_polygons_
protected

Definition at line 185 of file camera_info_display.h.

◆ not_show_side_polygons_property_

rviz::BoolProperty* jsk_rviz_plugins::CameraInfoDisplay::not_show_side_polygons_property_
protected

Definition at line 196 of file camera_info_display.h.

◆ polygons_

std::vector<TrianglePolygon::Ptr> jsk_rviz_plugins::CameraInfoDisplay::polygons_
protected

Definition at line 165 of file camera_info_display.h.

◆ show_edges_

bool jsk_rviz_plugins::CameraInfoDisplay::show_edges_
protected

Definition at line 182 of file camera_info_display.h.

◆ show_edges_property_

rviz::BoolProperty* jsk_rviz_plugins::CameraInfoDisplay::show_edges_property_
protected

Definition at line 199 of file camera_info_display.h.

◆ show_polygons_

bool jsk_rviz_plugins::CameraInfoDisplay::show_polygons_
protected

Definition at line 181 of file camera_info_display.h.

◆ show_polygons_property_

rviz::BoolProperty* jsk_rviz_plugins::CameraInfoDisplay::show_polygons_property_
protected

Definition at line 195 of file camera_info_display.h.

◆ texture_

Ogre::TexturePtr jsk_rviz_plugins::CameraInfoDisplay::texture_
protected

Definition at line 169 of file camera_info_display.h.

◆ use_image_

bool jsk_rviz_plugins::CameraInfoDisplay::use_image_
protected

Definition at line 183 of file camera_info_display.h.

◆ use_image_property_

rviz::BoolProperty* jsk_rviz_plugins::CameraInfoDisplay::use_image_property_
protected

Definition at line 197 of file camera_info_display.h.


The documentation for this class was generated from the following files:


jsk_rviz_plugins
Author(s): Kei Okada , Yohei Kakiuchi , Shohei Fujii , Ryohei Ueda
autogenerated on Fri Aug 2 2024 08:50:15