#include <camera_info_display.h>
Public Types | |
typedef std::shared_ptr < rviz::BillboardLine > | BillboardLinePtr |
typedef std::shared_ptr < rviz::Shape > | ShapePtr |
Public Member Functions | |
CameraInfoDisplay () | |
virtual | ~CameraInfoDisplay () |
Protected Slots | |
void | updateAlpha () |
void | updateColor () |
void | updateEdgeColor () |
void | updateFarClipDistance () |
void | updateImageTopic () |
void | updateNotShowSidePolygons () |
void | updateShowEdges () |
void | updateShowPolygons () |
void | updateUseImage () |
Protected Member Functions | |
virtual void | addPointToEdge (const cv::Point3d &point) |
virtual void | addPolygon (const cv::Point3d &O, const cv::Point3d &A, const cv::Point3d &B, std::string name, bool use_color, bool upper_triangle) |
virtual void | createCameraInfoShapes (const sensor_msgs::CameraInfo::ConstPtr &camera_info) |
virtual void | createTextureForBottom (int width, int height) |
virtual void | drawImageTexture () |
virtual void | imageCallback (const sensor_msgs::Image::ConstPtr &msg) |
virtual bool | isSameCameraInfo (const sensor_msgs::CameraInfo::ConstPtr &camera_info) |
virtual void | onInitialize () |
virtual void | prepareMaterial () |
virtual void | processMessage (const sensor_msgs::CameraInfo::ConstPtr &msg) |
virtual void | reset () |
virtual void | subscribeImage (std::string topic) |
virtual void | update (float wall_dt, float ros_dt) |
Protected Attributes | |
double | alpha_ |
rviz::FloatProperty * | alpha_property_ |
Ogre::TexturePtr | bottom_texture_ |
sensor_msgs::CameraInfo::ConstPtr | camera_info_ |
QColor | color_ |
rviz::ColorProperty * | color_property_ |
QColor | edge_color_ |
rviz::ColorProperty * | edge_color_property_ |
BillboardLinePtr | edges_ |
double | far_clip_distance_ |
rviz::FloatProperty * | far_clip_distance_property_ |
cv::Mat | image_ |
image_transport::Subscriber | image_sub_ |
rviz::RosTopicProperty * | image_topic_property_ |
ImageTransportHintsProperty * | image_transport_hints_property_ |
bool | image_updated_ |
Ogre::MaterialPtr | material_ |
Ogre::MaterialPtr | material_bottom_ |
boost::mutex | mutex_ |
bool | not_show_side_polygons_ |
rviz::BoolProperty * | not_show_side_polygons_property_ |
std::vector< TrianglePolygon::Ptr > | polygons_ |
bool | show_edges_ |
rviz::BoolProperty * | show_edges_property_ |
bool | show_polygons_ |
rviz::BoolProperty * | show_polygons_property_ |
Ogre::TexturePtr | texture_ |
bool | use_image_ |
rviz::BoolProperty * | use_image_property_ |
Definition at line 85 of file camera_info_display.h.
typedef std::shared_ptr<rviz::BillboardLine> jsk_rviz_plugins::CameraInfoDisplay::BillboardLinePtr |
Definition at line 91 of file camera_info_display.h.
typedef std::shared_ptr<rviz::Shape> jsk_rviz_plugins::CameraInfoDisplay::ShapePtr |
Definition at line 90 of file camera_info_display.h.
Definition at line 104 of file camera_info_display.cpp.
jsk_rviz_plugins::CameraInfoDisplay::~CameraInfoDisplay | ( | ) | [virtual] |
Definition at line 163 of file camera_info_display.cpp.
void jsk_rviz_plugins::CameraInfoDisplay::addPointToEdge | ( | const cv::Point3d & | point | ) | [protected, virtual] |
Definition at line 261 of file camera_info_display.cpp.
void jsk_rviz_plugins::CameraInfoDisplay::addPolygon | ( | const cv::Point3d & | O, |
const cv::Point3d & | A, | ||
const cv::Point3d & | B, | ||
std::string | name, | ||
bool | use_color, | ||
bool | upper_triangle | ||
) | [protected, virtual] |
Definition at line 271 of file camera_info_display.cpp.
void jsk_rviz_plugins::CameraInfoDisplay::createCameraInfoShapes | ( | const sensor_msgs::CameraInfo::ConstPtr & | camera_info | ) | [protected, virtual] |
Definition at line 429 of file camera_info_display.cpp.
void jsk_rviz_plugins::CameraInfoDisplay::createTextureForBottom | ( | int | width, |
int | height | ||
) | [protected, virtual] |
Definition at line 286 of file camera_info_display.cpp.
void jsk_rviz_plugins::CameraInfoDisplay::drawImageTexture | ( | ) | [protected, virtual] |
Definition at line 365 of file camera_info_display.cpp.
void jsk_rviz_plugins::CameraInfoDisplay::imageCallback | ( | const sensor_msgs::Image::ConstPtr & | msg | ) | [protected, virtual] |
Definition at line 403 of file camera_info_display.cpp.
bool jsk_rviz_plugins::CameraInfoDisplay::isSameCameraInfo | ( | const sensor_msgs::CameraInfo::ConstPtr & | camera_info | ) | [protected, virtual] |
Definition at line 235 of file camera_info_display.cpp.
void jsk_rviz_plugins::CameraInfoDisplay::onInitialize | ( | ) | [protected, virtual] |
Reimplemented from rviz::MessageFilterDisplay< sensor_msgs::CameraInfo >.
Definition at line 186 of file camera_info_display.cpp.
void jsk_rviz_plugins::CameraInfoDisplay::prepareMaterial | ( | ) | [protected, virtual] |
Definition at line 319 of file camera_info_display.cpp.
void jsk_rviz_plugins::CameraInfoDisplay::processMessage | ( | const sensor_msgs::CameraInfo::ConstPtr & | msg | ) | [protected, virtual] |
Definition at line 201 of file camera_info_display.cpp.
void jsk_rviz_plugins::CameraInfoDisplay::reset | ( | ) | [protected, virtual] |
Reimplemented from rviz::MessageFilterDisplay< sensor_msgs::CameraInfo >.
Definition at line 176 of file camera_info_display.cpp.
void jsk_rviz_plugins::CameraInfoDisplay::subscribeImage | ( | std::string | topic | ) | [protected, virtual] |
Definition at line 352 of file camera_info_display.cpp.
void jsk_rviz_plugins::CameraInfoDisplay::update | ( | float | wall_dt, |
float | ros_dt | ||
) | [protected, virtual] |
Reimplemented from rviz::Display.
Definition at line 223 of file camera_info_display.cpp.
void jsk_rviz_plugins::CameraInfoDisplay::updateAlpha | ( | ) | [protected, slot] |
Definition at line 549 of file camera_info_display.cpp.
void jsk_rviz_plugins::CameraInfoDisplay::updateColor | ( | ) | [protected, slot] |
Definition at line 533 of file camera_info_display.cpp.
void jsk_rviz_plugins::CameraInfoDisplay::updateEdgeColor | ( | ) | [protected, slot] |
Definition at line 541 of file camera_info_display.cpp.
void jsk_rviz_plugins::CameraInfoDisplay::updateFarClipDistance | ( | ) | [protected, slot] |
Definition at line 557 of file camera_info_display.cpp.
void jsk_rviz_plugins::CameraInfoDisplay::updateImageTopic | ( | ) | [protected, slot] |
Definition at line 587 of file camera_info_display.cpp.
void jsk_rviz_plugins::CameraInfoDisplay::updateNotShowSidePolygons | ( | ) | [protected, slot] |
Definition at line 612 of file camera_info_display.cpp.
void jsk_rviz_plugins::CameraInfoDisplay::updateShowEdges | ( | ) | [protected, slot] |
Definition at line 579 of file camera_info_display.cpp.
void jsk_rviz_plugins::CameraInfoDisplay::updateShowPolygons | ( | ) | [protected, slot] |
Definition at line 565 of file camera_info_display.cpp.
void jsk_rviz_plugins::CameraInfoDisplay::updateUseImage | ( | ) | [protected, slot] |
Definition at line 599 of file camera_info_display.cpp.
double jsk_rviz_plugins::CameraInfoDisplay::alpha_ [protected] |
Definition at line 135 of file camera_info_display.h.
Definition at line 150 of file camera_info_display.h.
Ogre::TexturePtr jsk_rviz_plugins::CameraInfoDisplay::bottom_texture_ [protected] |
Definition at line 129 of file camera_info_display.h.
sensor_msgs::CameraInfo::ConstPtr jsk_rviz_plugins::CameraInfoDisplay::camera_info_ [protected] |
Definition at line 125 of file camera_info_display.h.
QColor jsk_rviz_plugins::CameraInfoDisplay::color_ [protected] |
Definition at line 137 of file camera_info_display.h.
Definition at line 151 of file camera_info_display.h.
QColor jsk_rviz_plugins::CameraInfoDisplay::edge_color_ [protected] |
Definition at line 138 of file camera_info_display.h.
Definition at line 152 of file camera_info_display.h.
Definition at line 124 of file camera_info_display.h.
double jsk_rviz_plugins::CameraInfoDisplay::far_clip_distance_ [protected] |
Definition at line 136 of file camera_info_display.h.
Definition at line 149 of file camera_info_display.h.
cv::Mat jsk_rviz_plugins::CameraInfoDisplay::image_ [protected] |
Definition at line 144 of file camera_info_display.h.
Definition at line 130 of file camera_info_display.h.
Definition at line 156 of file camera_info_display.h.
ImageTransportHintsProperty* jsk_rviz_plugins::CameraInfoDisplay::image_transport_hints_property_ [protected] |
Definition at line 148 of file camera_info_display.h.
bool jsk_rviz_plugins::CameraInfoDisplay::image_updated_ [protected] |
Definition at line 142 of file camera_info_display.h.
Ogre::MaterialPtr jsk_rviz_plugins::CameraInfoDisplay::material_ [protected] |
Definition at line 126 of file camera_info_display.h.
Ogre::MaterialPtr jsk_rviz_plugins::CameraInfoDisplay::material_bottom_ [protected] |
Definition at line 128 of file camera_info_display.h.
boost::mutex jsk_rviz_plugins::CameraInfoDisplay::mutex_ [protected] |
Definition at line 131 of file camera_info_display.h.
bool jsk_rviz_plugins::CameraInfoDisplay::not_show_side_polygons_ [protected] |
Definition at line 143 of file camera_info_display.h.
rviz::BoolProperty* jsk_rviz_plugins::CameraInfoDisplay::not_show_side_polygons_property_ [protected] |
Definition at line 154 of file camera_info_display.h.
std::vector<TrianglePolygon::Ptr> jsk_rviz_plugins::CameraInfoDisplay::polygons_ [protected] |
Definition at line 123 of file camera_info_display.h.
bool jsk_rviz_plugins::CameraInfoDisplay::show_edges_ [protected] |
Definition at line 140 of file camera_info_display.h.
Definition at line 157 of file camera_info_display.h.
bool jsk_rviz_plugins::CameraInfoDisplay::show_polygons_ [protected] |
Definition at line 139 of file camera_info_display.h.
Definition at line 153 of file camera_info_display.h.
Ogre::TexturePtr jsk_rviz_plugins::CameraInfoDisplay::texture_ [protected] |
Definition at line 127 of file camera_info_display.h.
bool jsk_rviz_plugins::CameraInfoDisplay::use_image_ [protected] |
Definition at line 141 of file camera_info_display.h.
Definition at line 155 of file camera_info_display.h.