Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | Private Slots | Private Member Functions | Private Attributes
rviz::CameraDisplay Class Reference

#include <camera_display.h>

Inheritance diagram for rviz::CameraDisplay:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 CameraDisplay ()
virtual void fixedFrameChanged ()
 Called by setFixedFrame(). Override to respond to changes to fixed_frame_.
virtual void onInitialize ()
 Override this function to do subclass-specific initialization.
virtual void postRenderTargetUpdate (const Ogre::RenderTargetEvent &evt)
virtual void preRenderTargetUpdate (const Ogre::RenderTargetEvent &evt)
virtual void reset ()
 Reset display.
virtual void update (float wall_dt, float ros_dt)
 Called periodically by the visualization manager.
virtual ~CameraDisplay ()

Static Public Attributes

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

Protected Member Functions

virtual void onDisable ()
 Derived classes override this to do the actual work of disabling themselves.
virtual void onEnable ()
 Derived classes override this to do the actual work of enabling themselves.

Protected Attributes

RenderPanelrender_panel_
ROSImageTexture texture_

Private Slots

void forceRender ()
void updateAlpha ()
virtual void updateQueueSize ()
 Update queue size of tf filter.

Private Member Functions

void caminfoCallback (const sensor_msgs::CameraInfo::ConstPtr &msg)
void clear ()
virtual void processMessage (const sensor_msgs::Image::ConstPtr &msg)
 Implement this to process the contents of a message.
void subscribe ()
 ROS topic management.
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_

Detailed Description

Definition at line 72 of file camera_display.h.


Constructor & Destructor Documentation

Definition at line 81 of file camera_display.cpp.

Definition at line 110 of file camera_display.cpp.


Member Function Documentation

void rviz::CameraDisplay::caminfoCallback ( const sensor_msgs::CameraInfo::ConstPtr &  msg) [private]

Definition at line 512 of file camera_display.cpp.

void rviz::CameraDisplay::clear ( ) [private]

Definition at line 320 of file camera_display.cpp.

Called by setFixedFrame(). Override to respond to changes to fixed_frame_.

Reimplemented from rviz::ImageDisplayBase.

Definition at line 519 of file camera_display.cpp.

void rviz::CameraDisplay::forceRender ( ) [private, slot]

Definition at line 308 of file camera_display.cpp.

void rviz::CameraDisplay::onDisable ( ) [protected, virtual]

Derived classes override this to do the actual work of disabling themselves.

Reimplemented from rviz::Display.

Definition at line 249 of file camera_display.cpp.

void rviz::CameraDisplay::onEnable ( ) [protected, virtual]

Derived classes override this to do the actual work of enabling themselves.

Reimplemented from rviz::Display.

Definition at line 243 of file camera_display.cpp.

Override this function to do subclass-specific initialization.

This is called after vis_manager_ and scene_manager_ are set, and before load() or setEnabled().

setName() may or may not have been called before this.

Reimplemented from rviz::ImageDisplayBase.

Definition at line 136 of file camera_display.cpp.

void rviz::CameraDisplay::postRenderTargetUpdate ( const Ogre::RenderTargetEvent &  evt) [virtual]

Definition at line 237 of file camera_display.cpp.

void rviz::CameraDisplay::preRenderTargetUpdate ( const Ogre::RenderTargetEvent &  evt) [virtual]

Definition at line 227 of file camera_display.cpp.

void rviz::CameraDisplay::processMessage ( const sensor_msgs::Image::ConstPtr &  msg) [private, virtual]

Implement this to process the contents of a message.

This is called by incomingMessage().

Implements rviz::ImageDisplayBase.

Definition at line 507 of file camera_display.cpp.

void rviz::CameraDisplay::reset ( ) [virtual]

Reset display.

Reimplemented from rviz::ImageDisplayBase.

Definition at line 526 of file camera_display.cpp.

void rviz::CameraDisplay::subscribe ( ) [private, virtual]

ROS topic management.

Reimplemented from rviz::ImageDisplayBase.

Definition at line 256 of file camera_display.cpp.

void rviz::CameraDisplay::unsubscribe ( ) [private, virtual]

Reimplemented from rviz::ImageDisplayBase.

Definition at line 282 of file camera_display.cpp.

void rviz::CameraDisplay::update ( float  wall_dt,
float  ros_dt 
) [virtual]

Called periodically by the visualization manager.

Parameters:
wall_dtWall-clock time, in seconds, since the last time the update list was run through.
ros_dtROS time, in seconds, since the last time the update list was run through.

Reimplemented from rviz::Display.

Definition at line 336 of file camera_display.cpp.

void rviz::CameraDisplay::updateAlpha ( ) [private, slot]

Definition at line 288 of file camera_display.cpp.

Definition at line 354 of file camera_display.cpp.

void rviz::CameraDisplay::updateQueueSize ( ) [private, virtual, slot]

Update queue size of tf filter.

Reimplemented from rviz::ImageDisplayBase.

Definition at line 314 of file camera_display.cpp.


Member Data Documentation

Definition at line 131 of file camera_display.h.

const QString rviz::CameraDisplay::BACKGROUND [static]

Definition at line 89 of file camera_display.h.

Ogre::MaterialPtr rviz::CameraDisplay::bg_material_ [private]

Definition at line 123 of file camera_display.h.

Ogre::SceneNode* rviz::CameraDisplay::bg_scene_node_ [private]

Definition at line 119 of file camera_display.h.

Ogre::Rectangle2D* rviz::CameraDisplay::bg_screen_rect_ [private]

Definition at line 122 of file camera_display.h.

const QString rviz::CameraDisplay::BOTH [static]

Definition at line 91 of file camera_display.h.

boost::mutex rviz::CameraDisplay::caminfo_mutex_ [private]

Definition at line 137 of file camera_display.h.

Definition at line 141 of file camera_display.h.

Definition at line 128 of file camera_display.h.

tf::MessageFilter<sensor_msgs::CameraInfo>* rviz::CameraDisplay::caminfo_tf_filter_ [private]

Definition at line 129 of file camera_display.h.

sensor_msgs::CameraInfo::ConstPtr rviz::CameraDisplay::current_caminfo_ [private]

Definition at line 136 of file camera_display.h.

Ogre::MaterialPtr rviz::CameraDisplay::fg_material_ [private]

Definition at line 126 of file camera_display.h.

Ogre::SceneNode* rviz::CameraDisplay::fg_scene_node_ [private]

Definition at line 120 of file camera_display.h.

Ogre::Rectangle2D* rviz::CameraDisplay::fg_screen_rect_ [private]

Definition at line 125 of file camera_display.h.

Definition at line 143 of file camera_display.h.

Definition at line 132 of file camera_display.h.

Definition at line 139 of file camera_display.h.

const QString rviz::CameraDisplay::OVERLAY [static]

Definition at line 90 of file camera_display.h.

Definition at line 99 of file camera_display.h.

Definition at line 98 of file camera_display.h.

uint32_t rviz::CameraDisplay::vis_bit_ [private]

Definition at line 145 of file camera_display.h.

Definition at line 134 of file camera_display.h.

Definition at line 133 of file camera_display.h.


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


rviz
Author(s): Dave Hershberger, David Gossow, Josh Faust
autogenerated on Tue Oct 3 2017 03:19:31