Public Types | Protected Member Functions | Protected Attributes | List of all members
jsk_pcl_ros::ColorHistogramMatcher Class Reference

#include <color_histogram_matcher.h>

Inheritance diagram for jsk_pcl_ros::ColorHistogramMatcher:
Inheritance graph
[legend]

Public Types

enum  ComparePolicy { USE_HUE, USE_SATURATION, USE_VALUE, USE_HUE_AND_SATURATION }
 
typedef ColorHistogramMatcherConfig Config
 
typedef message_filters::sync_policies::ExactTime< sensor_msgs::PointCloud2, jsk_recognition_msgs::ClusterPointIndices > SyncPolicy
 

Protected Member Functions

virtual double bhattacharyyaCoefficient (const std::vector< float > &a, const std::vector< float > &b)
 
virtual void computeHistogram (const pcl::PointCloud< pcl::PointXYZHSV > &cloud, std::vector< float > &output, const ComparePolicy policy)
 
virtual void configCallback (Config &config, uint32_t level)
 
virtual void feature (const sensor_msgs::PointCloud2::ConstPtr &input_cloud, const jsk_recognition_msgs::ClusterPointIndices::ConstPtr &input_indices)
 
virtual void onInit ()
 
virtual void reference (const sensor_msgs::PointCloud2::ConstPtr &input_cloud)
 
virtual void referenceHistogram (const jsk_recognition_msgs::ColorHistogram::ConstPtr &input_histogram)
 
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

ros::Publisher all_histogram_pub_
 
ros::Publisher best_pub_
 
int bin_size_
 
ros::Publisher coefficient_points_pub_
 
double coefficient_thr_
 
double color_max_coefficient_
 
double color_min_coefficient_
 
boost::mutex mutex_
 
ComparePolicy policy_
 
int power_
 
bool publish_colored_cloud_
 
std::vector< floatreference_histogram_
 
ros::Publisher reference_histogram_pub_
 
ros::Subscriber reference_histogram_sub_
 
bool reference_set_
 
ros::Subscriber reference_sub_
 
ros::Publisher result_pub_
 
int show_method_
 
boost::shared_ptr< dynamic_reconfigure::Server< Config > > srv_
 
message_filters::Subscriber< jsk_recognition_msgs::ClusterPointIndices > sub_indices_
 
message_filters::Subscriber< sensor_msgs::PointCloud2 > sub_input_
 
boost::shared_ptr< message_filters::Synchronizer< SyncPolicy > > sync_
 
- 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_
 

Additional Inherited Members

- 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 ()
 

Detailed Description

Definition at line 57 of file color_histogram_matcher.h.

Member Typedef Documentation

typedef ColorHistogramMatcherConfig jsk_pcl_ros::ColorHistogramMatcher::Config

Definition at line 62 of file color_histogram_matcher.h.

typedef message_filters::sync_policies::ExactTime< sensor_msgs::PointCloud2, jsk_recognition_msgs::ClusterPointIndices > jsk_pcl_ros::ColorHistogramMatcher::SyncPolicy

Definition at line 61 of file color_histogram_matcher.h.

Member Enumeration Documentation

Enumerator
USE_HUE 
USE_SATURATION 
USE_VALUE 
USE_HUE_AND_SATURATION 

Definition at line 63 of file color_histogram_matcher.h.

Member Function Documentation

double jsk_pcl_ros::ColorHistogramMatcher::bhattacharyyaCoefficient ( const std::vector< float > &  a,
const std::vector< float > &  b 
)
protectedvirtual

Definition at line 286 of file color_histogram_matcher_nodelet.cpp.

void jsk_pcl_ros::ColorHistogramMatcher::computeHistogram ( const pcl::PointCloud< pcl::PointXYZHSV > &  cloud,
std::vector< float > &  output,
const ComparePolicy  policy 
)
protectedvirtual

Definition at line 299 of file color_histogram_matcher_nodelet.cpp.

void jsk_pcl_ros::ColorHistogramMatcher::configCallback ( Config config,
uint32_t  level 
)
protectedvirtual

Definition at line 101 of file color_histogram_matcher_nodelet.cpp.

void jsk_pcl_ros::ColorHistogramMatcher::feature ( const sensor_msgs::PointCloud2::ConstPtr &  input_cloud,
const jsk_recognition_msgs::ClusterPointIndices::ConstPtr &  input_indices 
)
protectedvirtual

Definition at line 136 of file color_histogram_matcher_nodelet.cpp.

void jsk_pcl_ros::ColorHistogramMatcher::onInit ( void  )
protectedvirtual

Reimplemented from jsk_topic_tools::ConnectionBasedNodelet.

Definition at line 51 of file color_histogram_matcher_nodelet.cpp.

void jsk_pcl_ros::ColorHistogramMatcher::reference ( const sensor_msgs::PointCloud2::ConstPtr &  input_cloud)
protectedvirtual

Definition at line 363 of file color_histogram_matcher_nodelet.cpp.

void jsk_pcl_ros::ColorHistogramMatcher::referenceHistogram ( const jsk_recognition_msgs::ColorHistogram::ConstPtr &  input_histogram)
protectedvirtual

Definition at line 382 of file color_histogram_matcher_nodelet.cpp.

void jsk_pcl_ros::ColorHistogramMatcher::subscribe ( )
protectedvirtual
void jsk_pcl_ros::ColorHistogramMatcher::unsubscribe ( )
protectedvirtual

Member Data Documentation

ros::Publisher jsk_pcl_ros::ColorHistogramMatcher::all_histogram_pub_
protected

Definition at line 94 of file color_histogram_matcher.h.

ros::Publisher jsk_pcl_ros::ColorHistogramMatcher::best_pub_
protected

Definition at line 96 of file color_histogram_matcher.h.

int jsk_pcl_ros::ColorHistogramMatcher::bin_size_
protected

Definition at line 101 of file color_histogram_matcher.h.

ros::Publisher jsk_pcl_ros::ColorHistogramMatcher::coefficient_points_pub_
protected

Definition at line 97 of file color_histogram_matcher.h.

double jsk_pcl_ros::ColorHistogramMatcher::coefficient_thr_
protected

Definition at line 100 of file color_histogram_matcher.h.

double jsk_pcl_ros::ColorHistogramMatcher::color_max_coefficient_
protected

Definition at line 105 of file color_histogram_matcher.h.

double jsk_pcl_ros::ColorHistogramMatcher::color_min_coefficient_
protected

Definition at line 104 of file color_histogram_matcher.h.

boost::mutex jsk_pcl_ros::ColorHistogramMatcher::mutex_
protected

Definition at line 86 of file color_histogram_matcher.h.

ComparePolicy jsk_pcl_ros::ColorHistogramMatcher::policy_
protected

Definition at line 108 of file color_histogram_matcher.h.

int jsk_pcl_ros::ColorHistogramMatcher::power_
protected

Definition at line 103 of file color_histogram_matcher.h.

bool jsk_pcl_ros::ColorHistogramMatcher::publish_colored_cloud_
protected

Definition at line 102 of file color_histogram_matcher.h.

std::vector<float> jsk_pcl_ros::ColorHistogramMatcher::reference_histogram_
protected

Definition at line 98 of file color_histogram_matcher.h.

ros::Publisher jsk_pcl_ros::ColorHistogramMatcher::reference_histogram_pub_
protected

Definition at line 95 of file color_histogram_matcher.h.

ros::Subscriber jsk_pcl_ros::ColorHistogramMatcher::reference_histogram_sub_
protected

Definition at line 92 of file color_histogram_matcher.h.

bool jsk_pcl_ros::ColorHistogramMatcher::reference_set_
protected

Definition at line 99 of file color_histogram_matcher.h.

ros::Subscriber jsk_pcl_ros::ColorHistogramMatcher::reference_sub_
protected

Definition at line 91 of file color_histogram_matcher.h.

ros::Publisher jsk_pcl_ros::ColorHistogramMatcher::result_pub_
protected

Definition at line 93 of file color_histogram_matcher.h.

int jsk_pcl_ros::ColorHistogramMatcher::show_method_
protected

Definition at line 106 of file color_histogram_matcher.h.

boost::shared_ptr<dynamic_reconfigure::Server<Config> > jsk_pcl_ros::ColorHistogramMatcher::srv_
protected

Definition at line 87 of file color_histogram_matcher.h.

message_filters::Subscriber<jsk_recognition_msgs::ClusterPointIndices> jsk_pcl_ros::ColorHistogramMatcher::sub_indices_
protected

Definition at line 89 of file color_histogram_matcher.h.

message_filters::Subscriber<sensor_msgs::PointCloud2> jsk_pcl_ros::ColorHistogramMatcher::sub_input_
protected

Definition at line 88 of file color_histogram_matcher.h.

boost::shared_ptr<message_filters::Synchronizer<SyncPolicy> > jsk_pcl_ros::ColorHistogramMatcher::sync_
protected

Definition at line 90 of file color_histogram_matcher.h.


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


jsk_pcl_ros
Author(s): Yohei Kakiuchi
autogenerated on Mon May 3 2021 03:03:47