Public Member Functions | Protected Slots | Protected Member Functions | Protected 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 createProperties ()
 Called from setPropertyManager, gives the display a chance to create some properties immediately.
virtual void fixedFrameChanged ()
 Override to handle changes to fixed_frame_. This base class implementation does nothing.
float getAlpha ()
const std::string & getImagePosition ()
int getQueueSize ()
const std::string & getTopic ()
const std::string & getTransport ()
float getZoom ()
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 ()
 Called to tell the display to clear its state.
void setAlpha (float alpha)
void setImagePosition (const std::string &image_position)
void setQueueSize (int size)
void setTopic (const std::string &topic)
void setTransport (const std::string &transport)
void setZoom (float zoom)
virtual void update (float wall_dt, float ros_dt)
 Called periodically by the visualization panel.
virtual ~CameraDisplay ()

Protected Slots

void setWrapperEnabled (bool enabled)

Protected Member Functions

void caminfoCallback (const sensor_msgs::CameraInfo::ConstPtr &msg)
void clear ()
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.
void onImagePositionEnumOptions (V_string &choices)
void onTransportEnumOptions (V_string &choices)
void subscribe ()
void unsubscribe ()
void updateCamera ()
void updateStatus ()

Protected Attributes

float alpha_
FloatPropertyWPtr alpha_property_
Ogre::MaterialPtr bg_material_
Ogre::SceneNode * bg_scene_node_
Ogre::Rectangle2D * bg_screen_rect_
boost::mutex caminfo_mutex_
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_
std::string image_position_
EditEnumPropertyWPtr image_position_property_
bool new_caminfo_
PanelDockWidgetpanel_container_
IntPropertyWPtr queue_size_property_
RenderPanelrender_panel_
ROSImageTexture texture_
std::string topic_
ROSTopicStringPropertyWPtr topic_property_
std::string transport_
EditEnumPropertyWPtr transport_property_
float zoom_
FloatPropertyWPtr zoom_property_

Detailed Description

Definition at line 68 of file camera_display.h.


Constructor & Destructor Documentation

Definition at line 76 of file camera_display.cpp.

Definition at line 90 of file camera_display.cpp.


Member Function Documentation

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

Definition at line 583 of file camera_display.cpp.

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

Definition at line 390 of file camera_display.cpp.

Called from setPropertyManager, gives the display a chance to create some properties immediately.

When this function is called, the property_manager_ member is valid and will stay valid

Reimplemented from rviz::Display.

Definition at line 603 of file camera_display.cpp.

Override to handle changes to fixed_frame_. This base class implementation does nothing.

Reimplemented from rviz::Display.

Definition at line 637 of file camera_display.cpp.

float rviz::CameraDisplay::getAlpha ( ) [inline]

Definition at line 77 of file camera_display.h.

const std::string& rviz::CameraDisplay::getImagePosition ( ) [inline]

Definition at line 86 of file camera_display.h.

Definition at line 354 of file camera_display.cpp.

const std::string& rviz::CameraDisplay::getTopic ( ) [inline]

Definition at line 80 of file camera_display.h.

const std::string& rviz::CameraDisplay::getTransport ( ) [inline]

Definition at line 83 of file camera_display.h.

float rviz::CameraDisplay::getZoom ( ) [inline]

Definition at line 89 of file camera_display.h.

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

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

Implements rviz::Display.

Definition at line 240 of file camera_display.cpp.

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

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

Implements rviz::Display.

Definition at line 225 of file camera_display.cpp.

Definition at line 595 of file camera_display.cpp.

Override this function to do subclass-specific initialization.

This is called after vis_manager_ and scene_manager_ are set.

Reimplemented from rviz::Display.

Definition at line 116 of file camera_display.cpp.

void rviz::CameraDisplay::onTransportEnumOptions ( V_string choices) [protected]

Definition at line 590 of file camera_display.cpp.

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

Definition at line 208 of file camera_display.cpp.

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

Definition at line 202 of file camera_display.cpp.

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

Called to tell the display to clear its state.

Reimplemented from rviz::Display.

Definition at line 643 of file camera_display.cpp.

void rviz::CameraDisplay::setAlpha ( float  alpha)

Definition at line 309 of file camera_display.cpp.

void rviz::CameraDisplay::setImagePosition ( const std::string &  image_position)

Definition at line 380 of file camera_display.cpp.

Set the incoming message queue size.

Definition at line 344 of file camera_display.cpp.

void rviz::CameraDisplay::setTopic ( const std::string &  topic)

Definition at line 359 of file camera_display.cpp.

void rviz::CameraDisplay::setTransport ( const std::string &  transport)

Definition at line 371 of file camera_display.cpp.

void rviz::CameraDisplay::setWrapperEnabled ( bool  enabled) [protected, slot]

Enables or disables this display via its DisplayWrapper.

Definition at line 214 of file camera_display.cpp.

void rviz::CameraDisplay::setZoom ( float  zoom)

Definition at line 330 of file camera_display.cpp.

void rviz::CameraDisplay::subscribe ( ) [protected]

Definition at line 264 of file camera_display.cpp.

void rviz::CameraDisplay::unsubscribe ( ) [protected]

Definition at line 303 of file camera_display.cpp.

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

Called periodically by the visualization panel.

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

Reimplemented from rviz::Display.

Definition at line 419 of file camera_display.cpp.

void rviz::CameraDisplay::updateCamera ( ) [protected]

Definition at line 446 of file camera_display.cpp.

void rviz::CameraDisplay::updateStatus ( ) [protected]

Definition at line 405 of file camera_display.cpp.


Member Data Documentation

float rviz::CameraDisplay::alpha_ [protected]

Definition at line 138 of file camera_display.h.

FloatPropertyWPtr rviz::CameraDisplay::alpha_property_ [protected]

Definition at line 147 of file camera_display.h.

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

Definition at line 133 of file camera_display.h.

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

Definition at line 129 of file camera_display.h.

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

Definition at line 132 of file camera_display.h.

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

Definition at line 155 of file camera_display.h.

message_filters::Subscriber<sensor_msgs::CameraInfo> rviz::CameraDisplay::caminfo_sub_ [protected]

Definition at line 144 of file camera_display.h.

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

Definition at line 145 of file camera_display.h.

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

Definition at line 154 of file camera_display.h.

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

Definition at line 136 of file camera_display.h.

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

Definition at line 130 of file camera_display.h.

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

Definition at line 135 of file camera_display.h.

Definition at line 163 of file camera_display.h.

std::string rviz::CameraDisplay::image_position_ [protected]

Definition at line 142 of file camera_display.h.

EditEnumPropertyWPtr rviz::CameraDisplay::image_position_property_ [protected]

Definition at line 150 of file camera_display.h.

Definition at line 157 of file camera_display.h.

Definition at line 165 of file camera_display.h.

IntPropertyWPtr rviz::CameraDisplay::queue_size_property_ [protected]

Definition at line 152 of file camera_display.h.

Definition at line 161 of file camera_display.h.

Definition at line 159 of file camera_display.h.

std::string rviz::CameraDisplay::topic_ [protected]

Definition at line 140 of file camera_display.h.

ROSTopicStringPropertyWPtr rviz::CameraDisplay::topic_property_ [protected]

Definition at line 148 of file camera_display.h.

std::string rviz::CameraDisplay::transport_ [protected]

Definition at line 141 of file camera_display.h.

EditEnumPropertyWPtr rviz::CameraDisplay::transport_property_ [protected]

Definition at line 149 of file camera_display.h.

float rviz::CameraDisplay::zoom_ [protected]

Definition at line 139 of file camera_display.h.

FloatPropertyWPtr rviz::CameraDisplay::zoom_property_ [protected]

Definition at line 151 of file camera_display.h.


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


rviz
Author(s): Dave Hershberger, Josh Faust
autogenerated on Mon Jan 6 2014 11:54:33