Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
jsk_perception::DrawRects Class Reference

#include <draw_rects.h>

Inheritance diagram for jsk_perception::DrawRects:
Inheritance graph
[legend]

Public Types

typedef message_filters::sync_policies::ApproximateTime< sensor_msgs::Image, jsk_recognition_msgs::RectArray, jsk_recognition_msgs::ClassificationResult > AsyncPolicy
 
typedef DrawRectsConfig Config
 
typedef message_filters::sync_policies::ExactTime< sensor_msgs::Image, jsk_recognition_msgs::RectArray, jsk_recognition_msgs::ClassificationResult > SyncPolicy
 

Public Member Functions

 DrawRects ()
 
- Public Member Functions inherited from jsk_topic_tools::ConnectionBasedNodelet
 ConnectionBasedNodelet ()
 
- Public Member Functions inherited from nodelet::Nodelet
void init (const std::string &name, const M_string &remapping_args, const V_string &my_argv, ros::CallbackQueueInterface *st_queue=NULL, ros::CallbackQueueInterface *mt_queue=NULL)
 
 Nodelet ()
 
virtual ~Nodelet ()
 

Protected Member Functions

virtual void configCallback (Config &config, uint32_t level)
 
virtual void drawLabel (cv::Mat &img, const jsk_recognition_msgs::Rect &rect, const cv::Scalar &color, const std::string &label)
 
virtual void drawRect (cv::Mat &img, const jsk_recognition_msgs::Rect &rect, const cv::Scalar &color)
 
virtual void fillEmptyClasses (const jsk_recognition_msgs::RectArray::ConstPtr &rects)
 
virtual bool isDarkColor (const cv::Scalar &color)
 
virtual void onInit ()
 
virtual void onMessage (const sensor_msgs::Image::ConstPtr &image, const jsk_recognition_msgs::RectArray::ConstPtr &rects, const jsk_recognition_msgs::ClassificationResult::ConstPtr &classes)
 
virtual void randomColor (const int &label_num, const int &index, cv::Scalar &color)
 
virtual void subscribe ()
 
virtual void unsubscribe ()
 
- Protected Member Functions inherited from jsk_topic_tools::ConnectionBasedNodelet
ros::Publisher advertise (ros::NodeHandle &nh, std::string topic, int queue_size)
 
image_transport::CameraPublisher advertiseCamera (ros::NodeHandle &nh, image_transport::ImageTransport &it, const std::string &topic, int queue_size)
 
image_transport::CameraPublisher advertiseCamera (ros::NodeHandle &nh, const std::string &topic, int queue_size)
 
image_transport::Publisher advertiseImage (ros::NodeHandle &nh, image_transport::ImageTransport &it, const std::string &topic, int queue_size)
 
image_transport::Publisher advertiseImage (ros::NodeHandle &nh, const std::string &topic, int queue_size)
 
virtual void cameraConnectionBaseCallback ()
 
virtual void cameraConnectionCallback (const image_transport::SingleSubscriberPublisher &pub)
 
virtual void cameraInfoConnectionCallback (const ros::SingleSubscriberPublisher &pub)
 
virtual void connectionCallback (const ros::SingleSubscriberPublisher &pub)
 
virtual void imageConnectionCallback (const image_transport::SingleSubscriberPublisher &pub)
 
virtual bool isSubscribed ()
 
virtual void onInitPostProcess ()
 
virtual void warnNeverSubscribedCallback (const ros::WallTimerEvent &event)
 
virtual void warnOnInitPostProcessCalledCallback (const ros::WallTimerEvent &event)
 
- Protected Member Functions inherited from nodelet::Nodelet
ros::CallbackQueueInterfacegetMTCallbackQueue () const
 
ros::NodeHandlegetMTNodeHandle () const
 
ros::NodeHandlegetMTPrivateNodeHandle () const
 
const V_stringgetMyArgv () const
 
const std::stringgetName () const
 
ros::NodeHandlegetNodeHandle () const
 
ros::NodeHandlegetPrivateNodeHandle () const
 
const M_stringgetRemappingArgs () const
 
ros::CallbackQueueInterfacegetSTCallbackQueue () const
 
std::string getSuffixedName (const std::string &suffix) const
 

Protected Attributes

boost::shared_ptr< message_filters::Synchronizer< AsyncPolicy > > async_
 
int interpolation_method_
 
int label_boldness_
 
int label_font_
 
double label_margin_factor_
 
double label_size_
 
boost::mutex mutex_
 
message_filters::PassThrough< jsk_recognition_msgs::ClassificationResult > null_class_
 
ros::Publisher pub_image_
 
int queue_size_
 
int rect_boldness_
 
double resolution_factor_
 
bool show_proba_
 
boost::shared_ptr< dynamic_reconfigure::Server< Config > > srv_
 
message_filters::Subscriber< jsk_recognition_msgs::ClassificationResult > sub_class_
 
message_filters::Subscriber< sensor_msgs::Image > sub_image_
 
message_filters::Subscriber< jsk_recognition_msgs::RectArray > sub_rects_
 
boost::shared_ptr< message_filters::Synchronizer< SyncPolicy > > sync_
 
bool use_async_
 
bool use_classification_result_
 
- Protected Attributes inherited from jsk_topic_tools::ConnectionBasedNodelet
bool always_subscribe_
 
std::vector< image_transport::CameraPublishercamera_publishers_
 
boost::mutex connection_mutex_
 
ConnectionStatus connection_status_
 
bool ever_subscribed_
 
std::vector< image_transport::Publisherimage_publishers_
 
boost::shared_ptr< ros::NodeHandlenh_
 
bool on_init_post_process_called_
 
boost::shared_ptr< ros::NodeHandlepnh_
 
std::vector< ros::Publisherpublishers_
 
bool subscribed_
 
ros::WallTimer timer_warn_never_subscribed_
 
ros::WallTimer timer_warn_on_init_post_process_called_
 
bool verbose_connection_
 

Detailed Description

Definition at line 69 of file draw_rects.h.

Member Typedef Documentation

typedef message_filters::sync_policies::ApproximateTime< sensor_msgs::Image, jsk_recognition_msgs::RectArray, jsk_recognition_msgs::ClassificationResult> jsk_perception::DrawRects::AsyncPolicy

Definition at line 80 of file draw_rects.h.

typedef DrawRectsConfig jsk_perception::DrawRects::Config

Definition at line 72 of file draw_rects.h.

typedef message_filters::sync_policies::ExactTime< sensor_msgs::Image, jsk_recognition_msgs::RectArray, jsk_recognition_msgs::ClassificationResult> jsk_perception::DrawRects::SyncPolicy

Definition at line 76 of file draw_rects.h.

Constructor & Destructor Documentation

jsk_perception::DrawRects::DrawRects ( )
inline

Definition at line 82 of file draw_rects.h.

Member Function Documentation

void jsk_perception::DrawRects::configCallback ( Config config,
uint32_t  level 
)
protectedvirtual

Definition at line 100 of file draw_rects.cpp.

void jsk_perception::DrawRects::drawLabel ( cv::Mat &  img,
const jsk_recognition_msgs::Rect &  rect,
const cv::Scalar &  color,
const std::string label 
)
protectedvirtual

Definition at line 197 of file draw_rects.cpp.

void jsk_perception::DrawRects::drawRect ( cv::Mat &  img,
const jsk_recognition_msgs::Rect &  rect,
const cv::Scalar &  color 
)
protectedvirtual

Definition at line 187 of file draw_rects.cpp.

void jsk_perception::DrawRects::fillEmptyClasses ( const jsk_recognition_msgs::RectArray::ConstPtr &  rects)
protectedvirtual

Definition at line 134 of file draw_rects.cpp.

virtual bool jsk_perception::DrawRects::isDarkColor ( const cv::Scalar &  color)
inlineprotectedvirtual

Definition at line 100 of file draw_rects.h.

void jsk_perception::DrawRects::onInit ( )
protectedvirtual

Reimplemented from jsk_topic_tools::ConnectionBasedNodelet.

Definition at line 50 of file draw_rects.cpp.

void jsk_perception::DrawRects::onMessage ( const sensor_msgs::Image::ConstPtr &  image,
const jsk_recognition_msgs::RectArray::ConstPtr &  rects,
const jsk_recognition_msgs::ClassificationResult::ConstPtr &  classes 
)
protectedvirtual

Definition at line 143 of file draw_rects.cpp.

void jsk_perception::DrawRects::randomColor ( const int &  label_num,
const int &  index,
cv::Scalar &  color 
)
protectedvirtual

Definition at line 226 of file draw_rects.cpp.

void jsk_perception::DrawRects::subscribe ( )
protectedvirtual

Implements jsk_topic_tools::ConnectionBasedNodelet.

Definition at line 64 of file draw_rects.cpp.

void jsk_perception::DrawRects::unsubscribe ( )
protectedvirtual

Implements jsk_topic_tools::ConnectionBasedNodelet.

Definition at line 92 of file draw_rects.cpp.

Member Data Documentation

boost::shared_ptr<message_filters::Synchronizer<AsyncPolicy> > jsk_perception::DrawRects::async_
protected

Definition at line 107 of file draw_rects.h.

int jsk_perception::DrawRects::interpolation_method_
protected

Definition at line 124 of file draw_rects.h.

int jsk_perception::DrawRects::label_boldness_
protected

Definition at line 120 of file draw_rects.h.

int jsk_perception::DrawRects::label_font_
protected

Definition at line 121 of file draw_rects.h.

double jsk_perception::DrawRects::label_margin_factor_
protected

Definition at line 122 of file draw_rects.h.

double jsk_perception::DrawRects::label_size_
protected

Definition at line 119 of file draw_rects.h.

boost::mutex jsk_perception::DrawRects::mutex_
protected

Definition at line 104 of file draw_rects.h.

message_filters::PassThrough<jsk_recognition_msgs::ClassificationResult> jsk_perception::DrawRects::null_class_
protected

Definition at line 109 of file draw_rects.h.

ros::Publisher jsk_perception::DrawRects::pub_image_
protected

Definition at line 108 of file draw_rects.h.

int jsk_perception::DrawRects::queue_size_
protected

Definition at line 117 of file draw_rects.h.

int jsk_perception::DrawRects::rect_boldness_
protected

Definition at line 118 of file draw_rects.h.

double jsk_perception::DrawRects::resolution_factor_
protected

Definition at line 123 of file draw_rects.h.

bool jsk_perception::DrawRects::show_proba_
protected

Definition at line 116 of file draw_rects.h.

boost::shared_ptr<dynamic_reconfigure::Server<Config> > jsk_perception::DrawRects::srv_
protected

Definition at line 105 of file draw_rects.h.

message_filters::Subscriber<jsk_recognition_msgs::ClassificationResult> jsk_perception::DrawRects::sub_class_
protected

Definition at line 112 of file draw_rects.h.

message_filters::Subscriber<sensor_msgs::Image> jsk_perception::DrawRects::sub_image_
protected

Definition at line 110 of file draw_rects.h.

message_filters::Subscriber<jsk_recognition_msgs::RectArray> jsk_perception::DrawRects::sub_rects_
protected

Definition at line 111 of file draw_rects.h.

boost::shared_ptr<message_filters::Synchronizer<SyncPolicy> > jsk_perception::DrawRects::sync_
protected

Definition at line 106 of file draw_rects.h.

bool jsk_perception::DrawRects::use_async_
protected

Definition at line 114 of file draw_rects.h.

bool jsk_perception::DrawRects::use_classification_result_
protected

Definition at line 115 of file draw_rects.h.


The documentation for this class was generated from the following files:


jsk_perception
Author(s): Manabu Saito, Ryohei Ueda
autogenerated on Mon May 3 2021 03:03:27