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 Types inherited from jsk_topic_tools::DiagnosticNodelet
typedef boost::shared_ptr< DiagnosticNodeletPtr
 

Public Member Functions

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

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

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_
 
- 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 54 of file tabletop_color_difference_likelihood.h.

Member Typedef Documentation

typedef TabletopColorDifferenceLikelihoodConfig jsk_perception::TabletopColorDifferenceLikelihood::Config

Definition at line 57 of file tabletop_color_difference_likelihood.h.

Constructor & Destructor Documentation

jsk_perception::TabletopColorDifferenceLikelihood::TabletopColorDifferenceLikelihood ( )
inline

Definition at line 58 of file tabletop_color_difference_likelihood.h.

Member Function Documentation

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 78 of file tabletop_color_difference_likelihood.h.

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

Definition at line 93 of file tabletop_color_difference_likelihood.h.

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

Definition at line 236 of file tabletop_color_difference_likelihood.cpp.

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.

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

Definition at line 128 of file tabletop_color_difference_likelihood.cpp.

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

Definition at line 88 of file tabletop_color_difference_likelihood.cpp.

void jsk_perception::TabletopColorDifferenceLikelihood::onInit ( )
protectedvirtual

Reimplemented from jsk_topic_tools::DiagnosticNodelet.

Definition at line 53 of file tabletop_color_difference_likelihood.cpp.

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

Definition at line 94 of file tabletop_color_difference_likelihood.cpp.

void jsk_perception::TabletopColorDifferenceLikelihood::subscribe ( )
protectedvirtual
void jsk_perception::TabletopColorDifferenceLikelihood::unsubscribe ( )
protectedvirtual

Member Data Documentation

int jsk_perception::TabletopColorDifferenceLikelihood::bin_size_
protected

Definition at line 128 of file tabletop_color_difference_likelihood.h.

bool jsk_perception::TabletopColorDifferenceLikelihood::cyclic_value_
protected

Definition at line 125 of file tabletop_color_difference_likelihood.h.

double jsk_perception::TabletopColorDifferenceLikelihood::histogram_top_n_ratio_
protected

Definition at line 129 of file tabletop_color_difference_likelihood.h.

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

Definition at line 114 of file tabletop_color_difference_likelihood.h.

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

Definition at line 115 of file tabletop_color_difference_likelihood.h.

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

Definition at line 112 of file tabletop_color_difference_likelihood.h.

int jsk_perception::TabletopColorDifferenceLikelihood::pixel_max_value_
protected

Definition at line 126 of file tabletop_color_difference_likelihood.h.

int jsk_perception::TabletopColorDifferenceLikelihood::pixel_min_value_
protected

Definition at line 127 of file tabletop_color_difference_likelihood.h.

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

Definition at line 117 of file tabletop_color_difference_likelihood.h.

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

Definition at line 119 of file tabletop_color_difference_likelihood.h.

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

Definition at line 118 of file tabletop_color_difference_likelihood.h.

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

Definition at line 113 of file tabletop_color_difference_likelihood.h.

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

Definition at line 122 of file tabletop_color_difference_likelihood.h.

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

Definition at line 120 of file tabletop_color_difference_likelihood.h.

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

Definition at line 121 of file tabletop_color_difference_likelihood.h.

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

Definition at line 123 of file tabletop_color_difference_likelihood.h.

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

Definition at line 116 of file tabletop_color_difference_likelihood.h.

int jsk_perception::TabletopColorDifferenceLikelihood::tf_queue_size_
protected

Definition at line 124 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 Mon May 3 2021 03:03:28