#include <camera_display.h>
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 | |
RenderPanel * | render_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 | |
FloatProperty * | alpha_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_ |
EnumProperty * | image_position_property_ |
bool | new_caminfo_ |
uint32_t | vis_bit_ |
DisplayGroupVisibilityProperty * | visibility_property_ |
FloatProperty * | zoom_property_ |
Definition at line 71 of file camera_display.h.
Definition at line 79 of file camera_display.cpp.
rviz::CameraDisplay::~CameraDisplay | ( | ) | [virtual] |
Definition at line 108 of file camera_display.cpp.
void rviz::CameraDisplay::caminfoCallback | ( | const sensor_msgs::CameraInfo::ConstPtr & | msg | ) | [private] |
Definition at line 505 of file camera_display.cpp.
void rviz::CameraDisplay::clear | ( | ) | [private] |
Definition at line 313 of file camera_display.cpp.
void rviz::CameraDisplay::fixedFrameChanged | ( | ) | [virtual] |
Called by setFixedFrame(). Override to respond to changes to fixed_frame_.
Reimplemented from rviz::ImageDisplayBase.
Definition at line 512 of file camera_display.cpp.
void rviz::CameraDisplay::forceRender | ( | ) | [private, slot] |
Definition at line 301 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 242 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 236 of file camera_display.cpp.
void rviz::CameraDisplay::onInitialize | ( | ) | [virtual] |
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::Display.
Definition at line 131 of file camera_display.cpp.
void rviz::CameraDisplay::postRenderTargetUpdate | ( | const Ogre::RenderTargetEvent & | evt | ) | [virtual] |
Definition at line 230 of file camera_display.cpp.
void rviz::CameraDisplay::preRenderTargetUpdate | ( | const Ogre::RenderTargetEvent & | evt | ) | [virtual] |
Definition at line 220 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 500 of file camera_display.cpp.
void rviz::CameraDisplay::reset | ( | ) | [virtual] |
Reset display.
Reimplemented from rviz::ImageDisplayBase.
Definition at line 519 of file camera_display.cpp.
void rviz::CameraDisplay::subscribe | ( | ) | [private, virtual] |
ROS topic management.
Reimplemented from rviz::ImageDisplayBase.
Definition at line 249 of file camera_display.cpp.
void rviz::CameraDisplay::unsubscribe | ( | ) | [private, virtual] |
Reimplemented from rviz::ImageDisplayBase.
Definition at line 275 of file camera_display.cpp.
void rviz::CameraDisplay::update | ( | float | wall_dt, |
float | ros_dt | ||
) | [virtual] |
Called periodically by the visualization manager.
wall_dt | Wall-clock time, in seconds, since the last time the update list was run through. |
ros_dt | ROS time, in seconds, since the last time the update list was run through. |
Reimplemented from rviz::Display.
Definition at line 329 of file camera_display.cpp.
void rviz::CameraDisplay::updateAlpha | ( | ) | [private, slot] |
Definition at line 281 of file camera_display.cpp.
bool rviz::CameraDisplay::updateCamera | ( | ) | [private] |
Definition at line 347 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 307 of file camera_display.cpp.
void rviz::CameraDisplay::updateStatus | ( | ) | [private] |
Definition at line 130 of file camera_display.h.
const QString rviz::CameraDisplay::BACKGROUND [static] |
Definition at line 88 of file camera_display.h.
Ogre::MaterialPtr rviz::CameraDisplay::bg_material_ [private] |
Definition at line 122 of file camera_display.h.
Ogre::SceneNode* rviz::CameraDisplay::bg_scene_node_ [private] |
Definition at line 118 of file camera_display.h.
Ogre::Rectangle2D* rviz::CameraDisplay::bg_screen_rect_ [private] |
Definition at line 121 of file camera_display.h.
const QString rviz::CameraDisplay::BOTH [static] |
Definition at line 90 of file camera_display.h.
boost::mutex rviz::CameraDisplay::caminfo_mutex_ [private] |
Definition at line 136 of file camera_display.h.
bool rviz::CameraDisplay::caminfo_ok_ [private] |
Definition at line 140 of file camera_display.h.
message_filters::Subscriber<sensor_msgs::CameraInfo> rviz::CameraDisplay::caminfo_sub_ [private] |
Definition at line 127 of file camera_display.h.
tf::MessageFilter<sensor_msgs::CameraInfo>* rviz::CameraDisplay::caminfo_tf_filter_ [private] |
Definition at line 128 of file camera_display.h.
sensor_msgs::CameraInfo::ConstPtr rviz::CameraDisplay::current_caminfo_ [private] |
Definition at line 135 of file camera_display.h.
Ogre::MaterialPtr rviz::CameraDisplay::fg_material_ [private] |
Definition at line 125 of file camera_display.h.
Ogre::SceneNode* rviz::CameraDisplay::fg_scene_node_ [private] |
Definition at line 119 of file camera_display.h.
Ogre::Rectangle2D* rviz::CameraDisplay::fg_screen_rect_ [private] |
Definition at line 124 of file camera_display.h.
bool rviz::CameraDisplay::force_render_ [private] |
Definition at line 142 of file camera_display.h.
Definition at line 131 of file camera_display.h.
bool rviz::CameraDisplay::new_caminfo_ [private] |
Definition at line 138 of file camera_display.h.
const QString rviz::CameraDisplay::OVERLAY [static] |
Definition at line 89 of file camera_display.h.
RenderPanel* rviz::CameraDisplay::render_panel_ [protected] |
Definition at line 98 of file camera_display.h.
ROSImageTexture rviz::CameraDisplay::texture_ [protected] |
Definition at line 97 of file camera_display.h.
uint32_t rviz::CameraDisplay::vis_bit_ [private] |
Definition at line 144 of file camera_display.h.
Definition at line 133 of file camera_display.h.
FloatProperty* rviz::CameraDisplay::zoom_property_ [private] |
Definition at line 132 of file camera_display.h.