#include <awesome_camera_display.h>
Public Member Functions | |
AwesomeCameraDisplay () | |
virtual void | fixedFrameChanged () |
virtual void | onInitialize () |
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 | ~AwesomeCameraDisplay () |
Static Public Attributes | |
static const QString | BACKGROUND |
static const QString | BOTH |
static const QString | OVERLAY |
Protected Member Functions | |
virtual void | onDisable () |
virtual void | onEnable () |
Protected Attributes | |
RenderPanel * | render_panel_ |
PanelDockWidget * | render_panel_dock_widget_ |
ROSImageTexture | texture_ |
Private Slots | |
void | forceRender () |
void | panelVisibilityChanged (bool) |
void | showPanelPropertyChanged () |
void | updateAlpha () |
virtual void | updateQueueSize () |
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 () |
void | updateCamera () |
void | updateStatus () |
Private Attributes | |
FloatProperty * | alpha_property_ |
Ogre::MaterialPtr | bg_material_ |
Ogre::SceneNode * | bg_scene_node_ |
Ogre::ManualObject * | 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::ManualObject * | fg_screen_rect_ |
bool | force_render_ |
EnumProperty * | image_position_property_ |
FloatProperty * | near_clip_property_ |
bool | new_caminfo_ |
BoolProperty * | show_panel_property_ |
uint32_t | vis_bit_ |
DisplayGroupVisibilityProperty * | visibility_property_ |
FloatProperty * | zoom_property_ |
This is a modified copy of the RViz camera display.
When you're sitting close to the camera frame in the main view, the camera image will be displayed there as well.
Definition at line 72 of file awesome_camera_display.h.
Definition at line 105 of file awesome_camera_display.cpp.
rviz::AwesomeCameraDisplay::~AwesomeCameraDisplay | ( | ) | [virtual] |
Definition at line 143 of file awesome_camera_display.cpp.
void rviz::AwesomeCameraDisplay::caminfoCallback | ( | const sensor_msgs::CameraInfo::ConstPtr & | msg | ) | [private] |
Definition at line 549 of file awesome_camera_display.cpp.
void rviz::AwesomeCameraDisplay::clear | ( | void | ) | [private] |
Definition at line 375 of file awesome_camera_display.cpp.
void rviz::AwesomeCameraDisplay::fixedFrameChanged | ( | ) | [virtual] |
Reimplemented from rviz::ImageDisplayBase.
Definition at line 556 of file awesome_camera_display.cpp.
void rviz::AwesomeCameraDisplay::forceRender | ( | ) | [private, slot] |
Definition at line 363 of file awesome_camera_display.cpp.
void rviz::AwesomeCameraDisplay::onDisable | ( | ) | [protected, virtual] |
Reimplemented from rviz::Display.
Definition at line 304 of file awesome_camera_display.cpp.
void rviz::AwesomeCameraDisplay::onEnable | ( | ) | [protected, virtual] |
Reimplemented from rviz::Display.
Definition at line 298 of file awesome_camera_display.cpp.
void rviz::AwesomeCameraDisplay::onInitialize | ( | ) | [virtual] |
Reimplemented from rviz::Display.
Reimplemented in pr2_interactive_manipulation::PublishClickCameraDisplay, and pr2_interactive_manipulation::PointHeadCameraDisplay.
Definition at line 160 of file awesome_camera_display.cpp.
void rviz::AwesomeCameraDisplay::panelVisibilityChanged | ( | bool | visible | ) | [private, slot] |
Definition at line 251 of file awesome_camera_display.cpp.
void rviz::AwesomeCameraDisplay::postRenderTargetUpdate | ( | const Ogre::RenderTargetEvent & | evt | ) | [virtual] |
Definition at line 290 of file awesome_camera_display.cpp.
void rviz::AwesomeCameraDisplay::preRenderTargetUpdate | ( | const Ogre::RenderTargetEvent & | evt | ) | [virtual] |
Definition at line 264 of file awesome_camera_display.cpp.
void rviz::AwesomeCameraDisplay::processMessage | ( | const sensor_msgs::Image::ConstPtr & | msg | ) | [private, virtual] |
Implements rviz::ImageDisplayBase.
Definition at line 544 of file awesome_camera_display.cpp.
void rviz::AwesomeCameraDisplay::reset | ( | ) | [virtual] |
Reimplemented from rviz::ImageDisplayBase.
Definition at line 563 of file awesome_camera_display.cpp.
void rviz::AwesomeCameraDisplay::showPanelPropertyChanged | ( | ) | [private, slot] |
Definition at line 256 of file awesome_camera_display.cpp.
void rviz::AwesomeCameraDisplay::subscribe | ( | ) | [private, virtual] |
Reimplemented from rviz::ImageDisplayBase.
Definition at line 311 of file awesome_camera_display.cpp.
void rviz::AwesomeCameraDisplay::unsubscribe | ( | ) | [private, virtual] |
Reimplemented from rviz::ImageDisplayBase.
Definition at line 337 of file awesome_camera_display.cpp.
void rviz::AwesomeCameraDisplay::update | ( | float | wall_dt, |
float | ros_dt | ||
) | [virtual] |
Reimplemented from rviz::Display.
Reimplemented in pr2_interactive_manipulation::PublishClickCameraDisplay.
Definition at line 391 of file awesome_camera_display.cpp.
void rviz::AwesomeCameraDisplay::updateAlpha | ( | ) | [private, slot] |
Definition at line 343 of file awesome_camera_display.cpp.
void rviz::AwesomeCameraDisplay::updateCamera | ( | ) | [private] |
Definition at line 409 of file awesome_camera_display.cpp.
void rviz::AwesomeCameraDisplay::updateQueueSize | ( | ) | [private, virtual, slot] |
Reimplemented from rviz::ImageDisplayBase.
Definition at line 369 of file awesome_camera_display.cpp.
void rviz::AwesomeCameraDisplay::updateStatus | ( | ) | [private] |
Definition at line 135 of file awesome_camera_display.h.
const QString rviz::AwesomeCameraDisplay::BACKGROUND [static] |
Definition at line 89 of file awesome_camera_display.h.
Ogre::MaterialPtr rviz::AwesomeCameraDisplay::bg_material_ [private] |
Definition at line 127 of file awesome_camera_display.h.
Ogre::SceneNode* rviz::AwesomeCameraDisplay::bg_scene_node_ [private] |
Definition at line 123 of file awesome_camera_display.h.
Ogre::ManualObject* rviz::AwesomeCameraDisplay::bg_screen_rect_ [private] |
Definition at line 126 of file awesome_camera_display.h.
const QString rviz::AwesomeCameraDisplay::BOTH [static] |
Definition at line 91 of file awesome_camera_display.h.
boost::mutex rviz::AwesomeCameraDisplay::caminfo_mutex_ [private] |
Definition at line 143 of file awesome_camera_display.h.
message_filters::Subscriber<sensor_msgs::CameraInfo> rviz::AwesomeCameraDisplay::caminfo_sub_ [private] |
Definition at line 132 of file awesome_camera_display.h.
tf::MessageFilter<sensor_msgs::CameraInfo>* rviz::AwesomeCameraDisplay::caminfo_tf_filter_ [private] |
Definition at line 133 of file awesome_camera_display.h.
sensor_msgs::CameraInfo::ConstPtr rviz::AwesomeCameraDisplay::current_caminfo_ [private] |
Definition at line 142 of file awesome_camera_display.h.
Ogre::MaterialPtr rviz::AwesomeCameraDisplay::fg_material_ [private] |
Definition at line 130 of file awesome_camera_display.h.
Ogre::SceneNode* rviz::AwesomeCameraDisplay::fg_scene_node_ [private] |
Definition at line 124 of file awesome_camera_display.h.
Ogre::ManualObject* rviz::AwesomeCameraDisplay::fg_screen_rect_ [private] |
Definition at line 129 of file awesome_camera_display.h.
bool rviz::AwesomeCameraDisplay::force_render_ [private] |
Definition at line 147 of file awesome_camera_display.h.
Definition at line 136 of file awesome_camera_display.h.
Definition at line 138 of file awesome_camera_display.h.
bool rviz::AwesomeCameraDisplay::new_caminfo_ [private] |
Definition at line 145 of file awesome_camera_display.h.
const QString rviz::AwesomeCameraDisplay::OVERLAY [static] |
Definition at line 90 of file awesome_camera_display.h.
RenderPanel* rviz::AwesomeCameraDisplay::render_panel_ [protected] |
Definition at line 99 of file awesome_camera_display.h.
Definition at line 100 of file awesome_camera_display.h.
Definition at line 140 of file awesome_camera_display.h.
ROSImageTexture rviz::AwesomeCameraDisplay::texture_ [protected] |
Definition at line 98 of file awesome_camera_display.h.
uint32_t rviz::AwesomeCameraDisplay::vis_bit_ [private] |
Definition at line 149 of file awesome_camera_display.h.
Definition at line 139 of file awesome_camera_display.h.
Definition at line 137 of file awesome_camera_display.h.