#include <camera_display.h>
Classes | |
class | RenderListener |
Public Member Functions | |
CameraDisplay (const std::string &name, VisualizationManager *manager) | |
virtual void | createProperties () |
Called from setPropertyManager, gives the display a chance to create some properties immediately. | |
virtual void | fixedFrameChanged () |
Called from within setFixedFrame, notifying child classes that the fixed frame has changed. | |
float | getAlpha () |
const std::string & | getTopic () |
const std::string & | getTransport () |
virtual void | reset () |
Called to tell the display to clear its state. | |
void | setAlpha (float alpha) |
void | setTopic (const std::string &topic) |
void | setTransport (const std::string &transport) |
virtual void | targetFrameChanged () |
Called from within setTargetFrame, notifying child classes that the target frame has changed. | |
virtual void | update (float wall_dt, float ros_dt) |
Called periodically by the visualization panel. | |
virtual | ~CameraDisplay () |
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 | onTransportEnumOptions (V_string &choices) |
void | subscribe () |
void | unsubscribe () |
void | updateCamera () |
void | updateStatus () |
Protected Attributes | |
float | alpha_ |
FloatPropertyWPtr | alpha_property_ |
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_ |
bool | force_render_ |
wxFrame * | frame_ |
Ogre::MaterialPtr | material_ |
bool | new_caminfo_ |
RenderListener | render_listener_ |
RenderPanel * | render_panel_ |
Ogre::SceneNode * | scene_node_ |
Ogre::Rectangle2D * | screen_rect_ |
ROSImageTexture | texture_ |
std::string | topic_ |
ROSTopicStringPropertyWPtr | topic_property_ |
std::string | transport_ |
EditEnumPropertyWPtr | transport_property_ |
Definition at line 64 of file camera_display.h.
rviz::CameraDisplay::CameraDisplay | ( | const std::string & | name, | |
VisualizationManager * | manager | |||
) |
Definition at line 106 of file camera_display.cpp.
rviz::CameraDisplay::~CameraDisplay | ( | ) | [virtual] |
Definition at line 194 of file camera_display.cpp.
void rviz::CameraDisplay::caminfoCallback | ( | const sensor_msgs::CameraInfo::ConstPtr & | msg | ) | [protected] |
Definition at line 471 of file camera_display.cpp.
void rviz::CameraDisplay::clear | ( | ) | [protected] |
Definition at line 310 of file camera_display.cpp.
void rviz::CameraDisplay::createProperties | ( | ) | [virtual] |
Called from setPropertyManager, gives the display a chance to create some properties immediately.
Once this function is called, the property_manager_ member is valid and will stay valid
Reimplemented from rviz::Display.
Definition at line 483 of file camera_display.cpp.
void rviz::CameraDisplay::fixedFrameChanged | ( | ) | [virtual] |
Called from within setFixedFrame, notifying child classes that the fixed frame has changed.
Implements rviz::Display.
Definition at line 501 of file camera_display.cpp.
float rviz::CameraDisplay::getAlpha | ( | ) | [inline] |
Definition at line 70 of file camera_display.h.
const std::string& rviz::CameraDisplay::getTopic | ( | ) | [inline] |
Definition at line 73 of file camera_display.h.
const std::string& rviz::CameraDisplay::getTransport | ( | ) | [inline] |
Definition at line 76 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 232 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 215 of file camera_display.cpp.
void rviz::CameraDisplay::onTransportEnumOptions | ( | V_string & | choices | ) | [protected] |
Definition at line 478 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 512 of file camera_display.cpp.
void rviz::CameraDisplay::setAlpha | ( | float | alpha | ) |
Definition at line 280 of file camera_display.cpp.
void rviz::CameraDisplay::setTopic | ( | const std::string & | topic | ) |
Definition at line 289 of file camera_display.cpp.
void rviz::CameraDisplay::setTransport | ( | const std::string & | transport | ) |
Definition at line 301 of file camera_display.cpp.
void rviz::CameraDisplay::subscribe | ( | ) | [protected] |
Definition at line 251 of file camera_display.cpp.
void rviz::CameraDisplay::targetFrameChanged | ( | ) | [virtual] |
Called from within setTargetFrame, notifying child classes that the target frame has changed.
Implements rviz::Display.
Definition at line 507 of file camera_display.cpp.
void rviz::CameraDisplay::unsubscribe | ( | ) | [protected] |
Definition at line 274 of file camera_display.cpp.
void rviz::CameraDisplay::update | ( | float | wall_dt, | |
float | ros_dt | |||
) | [virtual] |
Called periodically by the visualization panel.
dt | Wall-clock time, in seconds, since the last time the update list was run through. |
Reimplemented from rviz::Display.
Definition at line 338 of file camera_display.cpp.
void rviz::CameraDisplay::updateCamera | ( | ) | [protected] |
Definition at line 365 of file camera_display.cpp.
void rviz::CameraDisplay::updateStatus | ( | ) | [protected] |
Definition at line 324 of file camera_display.cpp.
float rviz::CameraDisplay::alpha_ [protected] |
Definition at line 107 of file camera_display.h.
FloatPropertyWPtr rviz::CameraDisplay::alpha_property_ [protected] |
Definition at line 114 of file camera_display.h.
boost::mutex rviz::CameraDisplay::caminfo_mutex_ [protected] |
Definition at line 119 of file camera_display.h.
message_filters::Subscriber<sensor_msgs::CameraInfo> rviz::CameraDisplay::caminfo_sub_ [protected] |
Definition at line 111 of file camera_display.h.
tf::MessageFilter<sensor_msgs::CameraInfo> rviz::CameraDisplay::caminfo_tf_filter_ [protected] |
Definition at line 112 of file camera_display.h.
sensor_msgs::CameraInfo::ConstPtr rviz::CameraDisplay::current_caminfo_ [protected] |
Definition at line 118 of file camera_display.h.
bool rviz::CameraDisplay::force_render_ [protected] |
Definition at line 128 of file camera_display.h.
wxFrame* rviz::CameraDisplay::frame_ [protected] |
Definition at line 126 of file camera_display.h.
Ogre::MaterialPtr rviz::CameraDisplay::material_ [protected] |
Definition at line 105 of file camera_display.h.
bool rviz::CameraDisplay::new_caminfo_ [protected] |
Definition at line 121 of file camera_display.h.
RenderListener rviz::CameraDisplay::render_listener_ [protected] |
Definition at line 140 of file camera_display.h.
RenderPanel* rviz::CameraDisplay::render_panel_ [protected] |
Definition at line 125 of file camera_display.h.
Ogre::SceneNode* rviz::CameraDisplay::scene_node_ [protected] |
Definition at line 103 of file camera_display.h.
Ogre::Rectangle2D* rviz::CameraDisplay::screen_rect_ [protected] |
Definition at line 104 of file camera_display.h.
ROSImageTexture rviz::CameraDisplay::texture_ [protected] |
Definition at line 123 of file camera_display.h.
std::string rviz::CameraDisplay::topic_ [protected] |
Definition at line 108 of file camera_display.h.
ROSTopicStringPropertyWPtr rviz::CameraDisplay::topic_property_ [protected] |
Definition at line 115 of file camera_display.h.
std::string rviz::CameraDisplay::transport_ [protected] |
Definition at line 109 of file camera_display.h.
EditEnumPropertyWPtr rviz::CameraDisplay::transport_property_ [protected] |
Definition at line 116 of file camera_display.h.