36 #ifndef JSK_RVIZ_PLUGINS_OVERLAY_CAMERA_DISPLAY_H_ 37 #define JSK_RVIZ_PLUGINS_OVERLAY_CAMERA_DISPLAY_H_ 44 #include <OgreMaterial.h> 45 #include <OgreRenderTargetListener.h> 46 #include <OgreSharedPtr.h> 48 # include <sensor_msgs/CameraInfo.h> 51 #if ROS_VERSION_MINIMUM(1, 15, 0) // noetic and greater 79 class RosTopicProperty;
80 class DisplayGroupVisibilityProperty;
97 virtual void onInitialize();
98 virtual void fixedFrameChanged();
99 virtual void update(
float wall_dt,
float ros_dt );
100 virtual void reset();
103 virtual void preRenderTargetUpdate(
const Ogre::RenderTargetEvent& evt );
104 virtual void postRenderTargetUpdate(
const Ogre::RenderTargetEvent& evt );
112 virtual void onEnable();
113 virtual void onDisable();
122 virtual void updateQueueSize();
128 virtual void processMessage(
const sensor_msgs::Image::ConstPtr& msg);
129 void caminfoCallback(
const sensor_msgs::CameraInfo::ConstPtr& msg );
146 #if ROS_VERSION_MINIMUM(1, 15, 0) // noetic and greater 184 void updateTextureAlpha();
Ogre::Rectangle2D * bg_screen_rect_
rviz::IntProperty * width_property_
FloatProperty * alpha_property_
EnumProperty * image_position_property_
rviz::IntProperty * height_property_
Ogre::MaterialPtr bg_material_
Ogre::Rectangle2D * fg_screen_rect_
bool update(const T &new_val, T &my_val)
DisplayGroupVisibilityProperty * visibility_property_
static const QString BOTH
rviz::IntProperty * left_property_
rviz::FloatProperty * texture_alpha_property_
sensor_msgs::CameraInfo::ConstPtr current_caminfo_
static const QString BACKGROUND
Ogre::SceneNode * bg_scene_node_
message_filters::Subscriber< sensor_msgs::CameraInfo > caminfo_sub_
boost::mutex caminfo_mutex_
FloatProperty * zoom_property_
RenderPanel * render_panel_
Ogre::MaterialPtr fg_material_
Ogre::SceneNode * fg_scene_node_
OverlayObject::Ptr overlay_
tf::MessageFilter< sensor_msgs::CameraInfo > * caminfo_tf_filter_
static const QString OVERLAY
rviz::IntProperty * top_property_