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

#include <tabletop_color_difference_likelihood.h>

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

Public Types

typedef TabletopColorDifferenceLikelihoodConfig Config
 

Public Member Functions

 TabletopColorDifferenceLikelihood ()
 

Protected Member Functions

virtual unsigned char computePixelDistance (const unsigned char from, const unsigned char to) const
 compute a distance between pixels. if cyclic_value_ is true, it take into account two direction. More...
 
virtual unsigned char computePixelHistogramDistance (const unsigned char from, const std::vector< jsk_recognition_msgs::HistogramWithRangeBin > &bins)
 
virtual void configCallback (Config &config, uint32_t level)
 
virtual void debugPolygonImage (const jsk_recognition_utils::CameraDepthSensor &model, cv::Mat &image, jsk_recognition_utils::Polygon::Ptr polygon, size_t pi) const
 
virtual void imageCallback (const sensor_msgs::Image::ConstPtr &msg)
 
virtual void infoCallback (const sensor_msgs::CameraInfo::ConstPtr &msg)
 
virtual void onInit ()
 
virtual void polygonCallback (const jsk_recognition_msgs::PolygonArray::ConstPtr &msg)
 
virtual void subscribe ()
 
virtual void unsubscribe ()
 

Protected Attributes

int bin_size_
 
bool cyclic_value_
 
double histogram_top_n_ratio_
 
sensor_msgs::CameraInfo::ConstPtr latest_info_msg_
 
jsk_recognition_msgs::PolygonArray::ConstPtr latest_polygon_msg_
 
boost::mutex mutex_
 
int pixel_max_value_
 
int pixel_min_value_
 
ros::Publisher pub_
 
ros::Publisher pub_debug_histogram_image_
 
ros::Publisher pub_debug_polygon_
 
boost::shared_ptr< dynamic_reconfigure::Server< Config > > srv_
 
message_filters::Subscriber< sensor_msgs::Image > sub_image_
 
ros::Subscriber sub_info_
 
ros::Subscriber sub_polygons_
 
boost::shared_ptr< tf::MessageFilter< sensor_msgs::Image > > tf_filter_
 
tf::TransformListenertf_listener_
 
int tf_queue_size_
 

Detailed Description

Definition at line 86 of file tabletop_color_difference_likelihood.h.

Member Typedef Documentation

◆ Config

typedef TabletopColorDifferenceLikelihoodConfig jsk_perception::TabletopColorDifferenceLikelihood::Config

Definition at line 121 of file tabletop_color_difference_likelihood.h.

Constructor & Destructor Documentation

◆ TabletopColorDifferenceLikelihood()

jsk_perception::TabletopColorDifferenceLikelihood::TabletopColorDifferenceLikelihood ( )
inline

Definition at line 122 of file tabletop_color_difference_likelihood.h.

Member Function Documentation

◆ computePixelDistance()

virtual unsigned char jsk_perception::TabletopColorDifferenceLikelihood::computePixelDistance ( const unsigned char  from,
const unsigned char  to 
) const
inlineprotectedvirtual

compute a distance between pixels. if cyclic_value_ is true, it take into account two direction.

Definition at line 142 of file tabletop_color_difference_likelihood.h.

◆ computePixelHistogramDistance()

virtual unsigned char jsk_perception::TabletopColorDifferenceLikelihood::computePixelHistogramDistance ( const unsigned char  from,
const std::vector< jsk_recognition_msgs::HistogramWithRangeBin > &  bins 
)
inlineprotectedvirtual

Definition at line 157 of file tabletop_color_difference_likelihood.h.

◆ configCallback()

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

Definition at line 236 of file tabletop_color_difference_likelihood.cpp.

◆ debugPolygonImage()

void jsk_perception::TabletopColorDifferenceLikelihood::debugPolygonImage ( const jsk_recognition_utils::CameraDepthSensor model,
cv::Mat &  image,
jsk_recognition_utils::Polygon::Ptr  polygon,
size_t  pi 
) const
protectedvirtual

Definition at line 110 of file tabletop_color_difference_likelihood.cpp.

◆ imageCallback()

void jsk_perception::TabletopColorDifferenceLikelihood::imageCallback ( const sensor_msgs::Image::ConstPtr &  msg)
protectedvirtual

Definition at line 128 of file tabletop_color_difference_likelihood.cpp.

◆ infoCallback()

void jsk_perception::TabletopColorDifferenceLikelihood::infoCallback ( const sensor_msgs::CameraInfo::ConstPtr &  msg)
protectedvirtual

Definition at line 88 of file tabletop_color_difference_likelihood.cpp.

◆ onInit()

void jsk_perception::TabletopColorDifferenceLikelihood::onInit ( )
protectedvirtual

Definition at line 53 of file tabletop_color_difference_likelihood.cpp.

◆ polygonCallback()

void jsk_perception::TabletopColorDifferenceLikelihood::polygonCallback ( const jsk_recognition_msgs::PolygonArray::ConstPtr &  msg)
protectedvirtual

Definition at line 94 of file tabletop_color_difference_likelihood.cpp.

◆ subscribe()

void jsk_perception::TabletopColorDifferenceLikelihood::subscribe ( )
protectedvirtual

Definition at line 70 of file tabletop_color_difference_likelihood.cpp.

◆ unsubscribe()

void jsk_perception::TabletopColorDifferenceLikelihood::unsubscribe ( )
protectedvirtual

Definition at line 81 of file tabletop_color_difference_likelihood.cpp.

Member Data Documentation

◆ bin_size_

int jsk_perception::TabletopColorDifferenceLikelihood::bin_size_
protected

Definition at line 192 of file tabletop_color_difference_likelihood.h.

◆ cyclic_value_

bool jsk_perception::TabletopColorDifferenceLikelihood::cyclic_value_
protected

Definition at line 189 of file tabletop_color_difference_likelihood.h.

◆ histogram_top_n_ratio_

double jsk_perception::TabletopColorDifferenceLikelihood::histogram_top_n_ratio_
protected

Definition at line 193 of file tabletop_color_difference_likelihood.h.

◆ latest_info_msg_

sensor_msgs::CameraInfo::ConstPtr jsk_perception::TabletopColorDifferenceLikelihood::latest_info_msg_
protected

Definition at line 178 of file tabletop_color_difference_likelihood.h.

◆ latest_polygon_msg_

jsk_recognition_msgs::PolygonArray::ConstPtr jsk_perception::TabletopColorDifferenceLikelihood::latest_polygon_msg_
protected

Definition at line 179 of file tabletop_color_difference_likelihood.h.

◆ mutex_

boost::mutex jsk_perception::TabletopColorDifferenceLikelihood::mutex_
protected

Definition at line 176 of file tabletop_color_difference_likelihood.h.

◆ pixel_max_value_

int jsk_perception::TabletopColorDifferenceLikelihood::pixel_max_value_
protected

Definition at line 190 of file tabletop_color_difference_likelihood.h.

◆ pixel_min_value_

int jsk_perception::TabletopColorDifferenceLikelihood::pixel_min_value_
protected

Definition at line 191 of file tabletop_color_difference_likelihood.h.

◆ pub_

ros::Publisher jsk_perception::TabletopColorDifferenceLikelihood::pub_
protected

Definition at line 181 of file tabletop_color_difference_likelihood.h.

◆ pub_debug_histogram_image_

ros::Publisher jsk_perception::TabletopColorDifferenceLikelihood::pub_debug_histogram_image_
protected

Definition at line 183 of file tabletop_color_difference_likelihood.h.

◆ pub_debug_polygon_

ros::Publisher jsk_perception::TabletopColorDifferenceLikelihood::pub_debug_polygon_
protected

Definition at line 182 of file tabletop_color_difference_likelihood.h.

◆ srv_

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

Definition at line 177 of file tabletop_color_difference_likelihood.h.

◆ sub_image_

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

Definition at line 186 of file tabletop_color_difference_likelihood.h.

◆ sub_info_

ros::Subscriber jsk_perception::TabletopColorDifferenceLikelihood::sub_info_
protected

Definition at line 184 of file tabletop_color_difference_likelihood.h.

◆ sub_polygons_

ros::Subscriber jsk_perception::TabletopColorDifferenceLikelihood::sub_polygons_
protected

Definition at line 185 of file tabletop_color_difference_likelihood.h.

◆ tf_filter_

boost::shared_ptr<tf::MessageFilter<sensor_msgs::Image> > jsk_perception::TabletopColorDifferenceLikelihood::tf_filter_
protected

Definition at line 187 of file tabletop_color_difference_likelihood.h.

◆ tf_listener_

tf::TransformListener* jsk_perception::TabletopColorDifferenceLikelihood::tf_listener_
protected

Definition at line 180 of file tabletop_color_difference_likelihood.h.

◆ tf_queue_size_

int jsk_perception::TabletopColorDifferenceLikelihood::tf_queue_size_
protected

Definition at line 188 of file tabletop_color_difference_likelihood.h.


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


jsk_perception
Author(s): Manabu Saito, Ryohei Ueda
autogenerated on Fri May 16 2025 03:11:18