Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | Private Slots | Private Member Functions | Private Attributes | List of all members
jsk_rviz_plugins::OverlayCameraDisplay Class Reference

#include <overlay_camera_display.h>

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

Public Member Functions

virtual void fixedFrameChanged ()
 
virtual void onInitialize ()
 
 OverlayCameraDisplay ()
 
virtual void postRenderTargetUpdate (const Ogre::RenderTargetEvent &evt)
 
virtual void preRenderTargetUpdate (const Ogre::RenderTargetEvent &evt)
 
virtual void reset ()
 
virtual void update (float wall_dt, float ros_dt)
 
virtual ~OverlayCameraDisplay ()
 
- Public Member Functions inherited from rviz::ImageDisplayBase
 ImageDisplayBase ()
 
void setTopic (const QString &topic, const QString &datatype) override
 
 ~ImageDisplayBase () override
 
- 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
 

Static Public Attributes

static const QString BACKGROUND
 
static const QString BOTH
 
static const QString OVERLAY
 

Protected Member Functions

virtual void onDisable ()
 
virtual void onEnable ()
 
void redraw ()
 
- Protected Member Functions inherited from rviz::ImageDisplayBase
void enableTFFilter (std::string &targetFrame)
 
void failedMessage (const sensor_msgs::Image::ConstPtr &msg, tf2_ros::FilterFailureReason reason)
 
void incomingMessage (const sensor_msgs::Image::ConstPtr &msg)
 
void scanForTransportSubscriberPlugins ()
 
- 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

int height_
 
rviz::IntPropertyheight_property_
 
bool initializedp_
 
int left_
 
rviz::IntPropertyleft_property_
 
OverlayObject::Ptr overlay_
 
RenderPanelrender_panel_
 
ROSImageTexture texture_
 
float texture_alpha_
 
rviz::FloatPropertytexture_alpha_property_
 
int top_
 
rviz::IntPropertytop_property_
 
int width_
 
rviz::IntPropertywidth_property_
 
- Protected Attributes inherited from rviz::ImageDisplayBase
boost::scoped_ptr< image_transport::ImageTransportit_
 
uint32_t messages_received_
 
IntPropertyqueue_size_property_
 
boost::shared_ptr< image_transport::SubscriberFiltersub_
 
std::string targetFrame_
 
boost::shared_ptr< tf2_ros::MessageFilter< sensor_msgs::Image > > tf_filter_
 
RosTopicPropertytopic_property_
 
std::string transport_
 
std::set< std::stringtransport_plugin_types_
 
EnumPropertytransport_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_
 

Private Slots

void forceRender ()
 
void updateAlpha ()
 
void updateHeight ()
 
void updateLeft ()
 
virtual void updateQueueSize ()
 
void updateTextureAlpha ()
 
void updateTop ()
 
void updateWidth ()
 

Private Member Functions

void caminfoCallback (const sensor_msgs::CameraInfo::ConstPtr &msg)
 
void clear ()
 
virtual void processMessage (const sensor_msgs::Image::ConstPtr &msg)
 
void subscribe ()
 
void unsubscribe ()
 
bool updateCamera ()
 
void updateStatus ()
 

Private Attributes

FloatPropertyalpha_property_
 
Ogre::MaterialPtr bg_material_
 
Ogre::SceneNode * bg_scene_node_
 
Ogre::Rectangle2D * bg_screen_rect_
 
boost::mutex caminfo_mutex_
 
bool caminfo_ok_
 
message_filters::Subscriber< sensor_msgs::CameraInfo > caminfo_sub_
 
tf::MessageFilter< sensor_msgs::CameraInfo > * caminfo_tf_filter_
 
sensor_msgs::CameraInfo::ConstPtr current_caminfo_
 
Ogre::MaterialPtr fg_material_
 
Ogre::SceneNode * fg_scene_node_
 
Ogre::Rectangle2D * fg_screen_rect_
 
bool force_render_
 
EnumPropertyimage_position_property_
 
bool new_caminfo_
 
uint32_t vis_bit_
 
DisplayGroupVisibilityPropertyvisibility_property_
 
FloatPropertyzoom_property_
 

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)
 
- Protected Slots inherited from rviz::ImageDisplayBase
void fillTransportOptionList (EnumProperty *property)
 
virtual void updateQueueSize ()
 
virtual void updateTopic ()
 

Detailed Description

Definition at line 89 of file overlay_camera_display.h.

Constructor & Destructor Documentation

◆ OverlayCameraDisplay()

jsk_rviz_plugins::OverlayCameraDisplay::OverlayCameraDisplay ( )

Definition at line 120 of file overlay_camera_display.cpp.

◆ ~OverlayCameraDisplay()

jsk_rviz_plugins::OverlayCameraDisplay::~OverlayCameraDisplay ( )
virtual

Definition at line 168 of file overlay_camera_display.cpp.

Member Function Documentation

◆ caminfoCallback()

void jsk_rviz_plugins::OverlayCameraDisplay::caminfoCallback ( const sensor_msgs::CameraInfo::ConstPtr &  msg)
private

Definition at line 632 of file overlay_camera_display.cpp.

◆ clear()

void jsk_rviz_plugins::OverlayCameraDisplay::clear ( )
private

Definition at line 406 of file overlay_camera_display.cpp.

◆ fixedFrameChanged()

void jsk_rviz_plugins::OverlayCameraDisplay::fixedFrameChanged ( )
virtual

Reimplemented from rviz::ImageDisplayBase.

Definition at line 639 of file overlay_camera_display.cpp.

◆ forceRender

void jsk_rviz_plugins::OverlayCameraDisplay::forceRender ( )
privateslot

Definition at line 394 of file overlay_camera_display.cpp.

◆ onDisable()

void jsk_rviz_plugins::OverlayCameraDisplay::onDisable ( )
protectedvirtual

Reimplemented from rviz::Display.

Definition at line 332 of file overlay_camera_display.cpp.

◆ onEnable()

void jsk_rviz_plugins::OverlayCameraDisplay::onEnable ( )
protectedvirtual

Reimplemented from rviz::Display.

Definition at line 323 of file overlay_camera_display.cpp.

◆ onInitialize()

void jsk_rviz_plugins::OverlayCameraDisplay::onInitialize ( )
virtual

Reimplemented from rviz::ImageDisplayBase.

Definition at line 194 of file overlay_camera_display.cpp.

◆ postRenderTargetUpdate()

void jsk_rviz_plugins::OverlayCameraDisplay::postRenderTargetUpdate ( const Ogre::RenderTargetEvent &  evt)
virtual

Definition at line 317 of file overlay_camera_display.cpp.

◆ preRenderTargetUpdate()

void jsk_rviz_plugins::OverlayCameraDisplay::preRenderTargetUpdate ( const Ogre::RenderTargetEvent &  evt)
virtual

Definition at line 307 of file overlay_camera_display.cpp.

◆ processMessage()

void jsk_rviz_plugins::OverlayCameraDisplay::processMessage ( const sensor_msgs::Image::ConstPtr &  msg)
privatevirtual

Implements rviz::ImageDisplayBase.

Definition at line 627 of file overlay_camera_display.cpp.

◆ redraw()

void jsk_rviz_plugins::OverlayCameraDisplay::redraw ( )
protected

Definition at line 452 of file overlay_camera_display.cpp.

◆ reset()

void jsk_rviz_plugins::OverlayCameraDisplay::reset ( )
virtual

Reimplemented from rviz::ImageDisplayBase.

Definition at line 646 of file overlay_camera_display.cpp.

◆ subscribe()

void jsk_rviz_plugins::OverlayCameraDisplay::subscribe ( )
privatevirtual

Reimplemented from rviz::ImageDisplayBase.

Definition at line 342 of file overlay_camera_display.cpp.

◆ unsubscribe()

void jsk_rviz_plugins::OverlayCameraDisplay::unsubscribe ( )
privatevirtual

Reimplemented from rviz::ImageDisplayBase.

Definition at line 368 of file overlay_camera_display.cpp.

◆ update()

void jsk_rviz_plugins::OverlayCameraDisplay::update ( float  wall_dt,
float  ros_dt 
)
virtual

Reimplemented from rviz::Display.

Definition at line 422 of file overlay_camera_display.cpp.

◆ updateAlpha

void jsk_rviz_plugins::OverlayCameraDisplay::updateAlpha ( )
privateslot

Definition at line 374 of file overlay_camera_display.cpp.

◆ updateCamera()

bool jsk_rviz_plugins::OverlayCameraDisplay::updateCamera ( )
private

Definition at line 474 of file overlay_camera_display.cpp.

◆ updateHeight

void jsk_rviz_plugins::OverlayCameraDisplay::updateHeight ( )
privateslot

Definition at line 657 of file overlay_camera_display.cpp.

◆ updateLeft

void jsk_rviz_plugins::OverlayCameraDisplay::updateLeft ( )
privateslot

Definition at line 662 of file overlay_camera_display.cpp.

◆ updateQueueSize

void jsk_rviz_plugins::OverlayCameraDisplay::updateQueueSize ( )
privatevirtualslot

Definition at line 400 of file overlay_camera_display.cpp.

◆ updateStatus()

void jsk_rviz_plugins::OverlayCameraDisplay::updateStatus ( )
private

◆ updateTextureAlpha

void jsk_rviz_plugins::OverlayCameraDisplay::updateTextureAlpha ( )
privateslot

Definition at line 672 of file overlay_camera_display.cpp.

◆ updateTop

void jsk_rviz_plugins::OverlayCameraDisplay::updateTop ( )
privateslot

Definition at line 667 of file overlay_camera_display.cpp.

◆ updateWidth

void jsk_rviz_plugins::OverlayCameraDisplay::updateWidth ( )
privateslot

Definition at line 652 of file overlay_camera_display.cpp.

Member Data Documentation

◆ alpha_property_

FloatProperty* jsk_rviz_plugins::OverlayCameraDisplay::alpha_property_
private

Definition at line 152 of file overlay_camera_display.h.

◆ BACKGROUND

const QString jsk_rviz_plugins::OverlayCameraDisplay::BACKGROUND
static

Definition at line 106 of file overlay_camera_display.h.

◆ bg_material_

Ogre::MaterialPtr jsk_rviz_plugins::OverlayCameraDisplay::bg_material_
private

Definition at line 140 of file overlay_camera_display.h.

◆ bg_scene_node_

Ogre::SceneNode* jsk_rviz_plugins::OverlayCameraDisplay::bg_scene_node_
private

Definition at line 136 of file overlay_camera_display.h.

◆ bg_screen_rect_

Ogre::Rectangle2D* jsk_rviz_plugins::OverlayCameraDisplay::bg_screen_rect_
private

Definition at line 139 of file overlay_camera_display.h.

◆ BOTH

const QString jsk_rviz_plugins::OverlayCameraDisplay::BOTH
static

Definition at line 108 of file overlay_camera_display.h.

◆ caminfo_mutex_

boost::mutex jsk_rviz_plugins::OverlayCameraDisplay::caminfo_mutex_
private

Definition at line 158 of file overlay_camera_display.h.

◆ caminfo_ok_

bool jsk_rviz_plugins::OverlayCameraDisplay::caminfo_ok_
private

Definition at line 162 of file overlay_camera_display.h.

◆ caminfo_sub_

message_filters::Subscriber<sensor_msgs::CameraInfo> jsk_rviz_plugins::OverlayCameraDisplay::caminfo_sub_
private

Definition at line 145 of file overlay_camera_display.h.

◆ caminfo_tf_filter_

tf::MessageFilter<sensor_msgs::CameraInfo>* jsk_rviz_plugins::OverlayCameraDisplay::caminfo_tf_filter_
private

Definition at line 149 of file overlay_camera_display.h.

◆ current_caminfo_

sensor_msgs::CameraInfo::ConstPtr jsk_rviz_plugins::OverlayCameraDisplay::current_caminfo_
private

Definition at line 157 of file overlay_camera_display.h.

◆ fg_material_

Ogre::MaterialPtr jsk_rviz_plugins::OverlayCameraDisplay::fg_material_
private

Definition at line 143 of file overlay_camera_display.h.

◆ fg_scene_node_

Ogre::SceneNode* jsk_rviz_plugins::OverlayCameraDisplay::fg_scene_node_
private

Definition at line 137 of file overlay_camera_display.h.

◆ fg_screen_rect_

Ogre::Rectangle2D* jsk_rviz_plugins::OverlayCameraDisplay::fg_screen_rect_
private

Definition at line 142 of file overlay_camera_display.h.

◆ force_render_

bool jsk_rviz_plugins::OverlayCameraDisplay::force_render_
private

Definition at line 164 of file overlay_camera_display.h.

◆ height_

int jsk_rviz_plugins::OverlayCameraDisplay::height_
protected

Definition at line 175 of file overlay_camera_display.h.

◆ height_property_

rviz::IntProperty* jsk_rviz_plugins::OverlayCameraDisplay::height_property_
protected

Definition at line 171 of file overlay_camera_display.h.

◆ image_position_property_

EnumProperty* jsk_rviz_plugins::OverlayCameraDisplay::image_position_property_
private

Definition at line 153 of file overlay_camera_display.h.

◆ initializedp_

bool jsk_rviz_plugins::OverlayCameraDisplay::initializedp_
protected

Definition at line 178 of file overlay_camera_display.h.

◆ left_

int jsk_rviz_plugins::OverlayCameraDisplay::left_
protected

Definition at line 176 of file overlay_camera_display.h.

◆ left_property_

rviz::IntProperty* jsk_rviz_plugins::OverlayCameraDisplay::left_property_
protected

Definition at line 172 of file overlay_camera_display.h.

◆ new_caminfo_

bool jsk_rviz_plugins::OverlayCameraDisplay::new_caminfo_
private

Definition at line 160 of file overlay_camera_display.h.

◆ OVERLAY

const QString jsk_rviz_plugins::OverlayCameraDisplay::OVERLAY
static

Definition at line 107 of file overlay_camera_display.h.

◆ overlay_

OverlayObject::Ptr jsk_rviz_plugins::OverlayCameraDisplay::overlay_
protected

Definition at line 168 of file overlay_camera_display.h.

◆ render_panel_

RenderPanel* jsk_rviz_plugins::OverlayCameraDisplay::render_panel_
protected

Definition at line 116 of file overlay_camera_display.h.

◆ texture_

ROSImageTexture jsk_rviz_plugins::OverlayCameraDisplay::texture_
protected

Definition at line 115 of file overlay_camera_display.h.

◆ texture_alpha_

float jsk_rviz_plugins::OverlayCameraDisplay::texture_alpha_
protected

Definition at line 177 of file overlay_camera_display.h.

◆ texture_alpha_property_

rviz::FloatProperty* jsk_rviz_plugins::OverlayCameraDisplay::texture_alpha_property_
protected

Definition at line 174 of file overlay_camera_display.h.

◆ top_

int jsk_rviz_plugins::OverlayCameraDisplay::top_
protected

Definition at line 176 of file overlay_camera_display.h.

◆ top_property_

rviz::IntProperty* jsk_rviz_plugins::OverlayCameraDisplay::top_property_
protected

Definition at line 173 of file overlay_camera_display.h.

◆ vis_bit_

uint32_t jsk_rviz_plugins::OverlayCameraDisplay::vis_bit_
private

Definition at line 166 of file overlay_camera_display.h.

◆ visibility_property_

DisplayGroupVisibilityProperty* jsk_rviz_plugins::OverlayCameraDisplay::visibility_property_
private

Definition at line 155 of file overlay_camera_display.h.

◆ width_

int jsk_rviz_plugins::OverlayCameraDisplay::width_
protected

Definition at line 175 of file overlay_camera_display.h.

◆ width_property_

rviz::IntProperty* jsk_rviz_plugins::OverlayCameraDisplay::width_property_
protected

Definition at line 170 of file overlay_camera_display.h.

◆ zoom_property_

FloatProperty* jsk_rviz_plugins::OverlayCameraDisplay::zoom_property_
private

Definition at line 154 of file overlay_camera_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 Tue Dec 10 2024 03:48:25