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

#include <color_histogram.h>

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

Public Types

typedef jsk_perception::ColorHistogramConfig Config
 
typedef message_filters::sync_policies::ApproximateTime< sensor_msgs::Image, sensor_msgs::Image > MaskSyncPolicy
 
typedef message_filters::sync_policies::ApproximateTime< sensor_msgs::Image, geometry_msgs::PolygonStamped > SyncPolicy
 
- Public Types inherited from jsk_topic_tools::DiagnosticNodelet
typedef boost::shared_ptr< DiagnosticNodeletPtr
 

Public Member Functions

 ColorHistogram ()
 
- Public Member Functions inherited from jsk_topic_tools::DiagnosticNodelet
 DiagnosticNodelet (const std::string &name)
 
- 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

void configCallback (Config &new_config, uint32_t level)
 
virtual void convertHistogramToMsg (const cv::Mat &hist, int size, jsk_recognition_msgs::ColorHistogram &msg)
 
virtual void extract (const sensor_msgs::Image::ConstPtr &image, const geometry_msgs::PolygonStamped::ConstPtr &rectangle)
 
virtual void extractMask (const sensor_msgs::Image::ConstPtr &image, const sensor_msgs::Image::ConstPtr &mask_image)
 
virtual void onInit ()
 
virtual void processBGR (const cv::Mat &bgr_image, const std_msgs::Header &header)
 
virtual void processBGR (const cv::Mat &bgr_image, const cv::Mat &mask, const std_msgs::Header &header)
 
virtual void processHSI (const cv::Mat &bgr_image, const std_msgs::Header &header)
 
virtual void processHSI (const cv::Mat &bgr_image, const cv::Mat &mask, const std_msgs::Header &header)
 
virtual void subscribe ()
 
virtual void unsubscribe ()
 
- Protected Member Functions inherited from jsk_topic_tools::DiagnosticNodelet
virtual void updateDiagnostic (diagnostic_updater::DiagnosticStatusWrapper &stat)
 
- 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

ros::Publisher b_hist_pub_
 
int b_hist_size_
 
ros::Publisher g_hist_pub_
 
int g_hist_size_
 
ros::Publisher h_hist_pub_
 
int h_hist_size_
 
ros::Publisher i_hist_pub_
 
int i_hist_size_
 
image_transport::SubscriberFilter image_mask_sub_
 
ros::Publisher image_pub_
 
image_transport::SubscriberFilter image_sub_
 
boost::shared_ptr< image_transport::ImageTransportit_
 
boost::shared_ptr< message_filters::Synchronizer< MaskSyncPolicy > > mask_sync_
 
boost::mutex mutex_
 
ros::NodeHandle nh_
 
ros::Publisher r_hist_pub_
 
int r_hist_size_
 
message_filters::Subscriber< geometry_msgs::PolygonStamped > rectangle_sub_
 
ros::Publisher s_hist_pub_
 
int s_hist_size_
 
boost::shared_ptr< dynamic_reconfigure::Server< Config > > srv_
 
boost::shared_ptr< message_filters::Synchronizer< SyncPolicy > > sync_
 
bool use_mask_
 
- Protected Attributes inherited from jsk_topic_tools::DiagnosticNodelet
TimeredDiagnosticUpdater::Ptr diagnostic_updater_
 
const std::string name_
 
jsk_topic_tools::VitalChecker::Ptr vital_checker_
 
- 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 56 of file color_histogram.h.

Member Typedef Documentation

typedef jsk_perception::ColorHistogramConfig jsk_perception::ColorHistogram::Config

Definition at line 66 of file color_histogram.h.

Definition at line 65 of file color_histogram.h.

typedef message_filters::sync_policies::ApproximateTime< sensor_msgs::Image, geometry_msgs::PolygonStamped > jsk_perception::ColorHistogram::SyncPolicy

Definition at line 61 of file color_histogram.h.

Constructor & Destructor Documentation

jsk_perception::ColorHistogram::ColorHistogram ( )
inline

Definition at line 67 of file color_histogram.h.

Member Function Documentation

void jsk_perception::ColorHistogram::configCallback ( Config new_config,
uint32_t  level 
)
protected

Definition at line 41 of file color_histogram.cpp.

void jsk_perception::ColorHistogram::convertHistogramToMsg ( const cv::Mat &  hist,
int  size,
jsk_recognition_msgs::ColorHistogram &  msg 
)
protectedvirtual

Definition at line 123 of file color_histogram.cpp.

void jsk_perception::ColorHistogram::extract ( const sensor_msgs::Image::ConstPtr &  image,
const geometry_msgs::PolygonStamped::ConstPtr &  rectangle 
)
protectedvirtual

Definition at line 220 of file color_histogram.cpp.

void jsk_perception::ColorHistogram::extractMask ( const sensor_msgs::Image::ConstPtr &  image,
const sensor_msgs::Image::ConstPtr &  mask_image 
)
protectedvirtual

Definition at line 259 of file color_histogram.cpp.

void jsk_perception::ColorHistogram::onInit ( )
protectedvirtual

Reimplemented from jsk_topic_tools::DiagnosticNodelet.

Definition at line 53 of file color_histogram.cpp.

void jsk_perception::ColorHistogram::processBGR ( const cv::Mat &  bgr_image,
const std_msgs::Header header 
)
protectedvirtual

Definition at line 168 of file color_histogram.cpp.

void jsk_perception::ColorHistogram::processBGR ( const cv::Mat &  bgr_image,
const cv::Mat &  mask,
const std_msgs::Header header 
)
protectedvirtual

Definition at line 134 of file color_histogram.cpp.

void jsk_perception::ColorHistogram::processHSI ( const cv::Mat &  bgr_image,
const std_msgs::Header header 
)
protectedvirtual

Definition at line 174 of file color_histogram.cpp.

void jsk_perception::ColorHistogram::processHSI ( const cv::Mat &  bgr_image,
const cv::Mat &  mask,
const std_msgs::Header header 
)
protectedvirtual

Definition at line 180 of file color_histogram.cpp.

void jsk_perception::ColorHistogram::subscribe ( )
protectedvirtual

Implements jsk_topic_tools::ConnectionBasedNodelet.

Definition at line 81 of file color_histogram.cpp.

void jsk_perception::ColorHistogram::unsubscribe ( )
protectedvirtual

Implements jsk_topic_tools::ConnectionBasedNodelet.

Definition at line 111 of file color_histogram.cpp.

Member Data Documentation

ros::Publisher jsk_perception::ColorHistogram::b_hist_pub_
protected

Definition at line 77 of file color_histogram.h.

int jsk_perception::ColorHistogram::b_hist_size_
protected

Definition at line 80 of file color_histogram.h.

ros::Publisher jsk_perception::ColorHistogram::g_hist_pub_
protected

Definition at line 77 of file color_histogram.h.

int jsk_perception::ColorHistogram::g_hist_size_
protected

Definition at line 80 of file color_histogram.h.

ros::Publisher jsk_perception::ColorHistogram::h_hist_pub_
protected

Definition at line 77 of file color_histogram.h.

int jsk_perception::ColorHistogram::h_hist_size_
protected

Definition at line 80 of file color_histogram.h.

ros::Publisher jsk_perception::ColorHistogram::i_hist_pub_
protected

Definition at line 77 of file color_histogram.h.

int jsk_perception::ColorHistogram::i_hist_size_
protected

Definition at line 80 of file color_histogram.h.

image_transport::SubscriberFilter jsk_perception::ColorHistogram::image_mask_sub_
protected

Definition at line 73 of file color_histogram.h.

ros::Publisher jsk_perception::ColorHistogram::image_pub_
protected

Definition at line 79 of file color_histogram.h.

image_transport::SubscriberFilter jsk_perception::ColorHistogram::image_sub_
protected

Definition at line 72 of file color_histogram.h.

boost::shared_ptr<image_transport::ImageTransport> jsk_perception::ColorHistogram::it_
protected

Definition at line 76 of file color_histogram.h.

boost::shared_ptr<message_filters::Synchronizer<MaskSyncPolicy> > jsk_perception::ColorHistogram::mask_sync_
protected

Definition at line 70 of file color_histogram.h.

boost::mutex jsk_perception::ColorHistogram::mutex_
protected

Definition at line 83 of file color_histogram.h.

ros::NodeHandle jsk_perception::ColorHistogram::nh_
protected

Definition at line 75 of file color_histogram.h.

ros::Publisher jsk_perception::ColorHistogram::r_hist_pub_
protected

Definition at line 77 of file color_histogram.h.

int jsk_perception::ColorHistogram::r_hist_size_
protected

Definition at line 80 of file color_histogram.h.

message_filters::Subscriber<geometry_msgs::PolygonStamped> jsk_perception::ColorHistogram::rectangle_sub_
protected

Definition at line 74 of file color_histogram.h.

ros::Publisher jsk_perception::ColorHistogram::s_hist_pub_
protected

Definition at line 77 of file color_histogram.h.

int jsk_perception::ColorHistogram::s_hist_size_
protected

Definition at line 80 of file color_histogram.h.

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

Definition at line 71 of file color_histogram.h.

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

Definition at line 69 of file color_histogram.h.

bool jsk_perception::ColorHistogram::use_mask_
protected

Definition at line 82 of file color_histogram.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