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

#include <cluster_point_indices_decomposer.h>

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

Public Types

typedef message_filters::sync_policies::ApproximateTime< sensor_msgs::PointCloud2, jsk_recognition_msgs::ClusterPointIndices, jsk_recognition_msgs::PolygonArray, jsk_recognition_msgs::ModelCoefficientsArray > ApproximateSyncAlignPolicy
 
typedef message_filters::sync_policies::ApproximateTime< sensor_msgs::PointCloud2, jsk_recognition_msgs::ClusterPointIndices > ApproximateSyncPolicy
 
typedef jsk_pcl_ros::ClusterPointIndicesDecomposerConfig Config
 
typedef message_filters::sync_policies::ExactTime< sensor_msgs::PointCloud2, jsk_recognition_msgs::ClusterPointIndices, jsk_recognition_msgs::PolygonArray, jsk_recognition_msgs::ModelCoefficientsArray > SyncAlignPolicy
 
typedef message_filters::sync_policies::ExactTime< sensor_msgs::PointCloud2, jsk_recognition_msgs::ClusterPointIndices > SyncPolicy
 
- Public Types inherited from jsk_topic_tools::DiagnosticNodelet
typedef boost::shared_ptr< DiagnosticNodeletPtr
 

Public Member Functions

 ClusterPointIndicesDecomposer ()
 
virtual void extract (const sensor_msgs::PointCloud2ConstPtr &point, const jsk_recognition_msgs::ClusterPointIndicesConstPtr &indices, const jsk_recognition_msgs::PolygonArrayConstPtr &planes, const jsk_recognition_msgs::ModelCoefficientsArrayConstPtr &coefficients)
 
virtual void extract (const sensor_msgs::PointCloud2ConstPtr &point, const jsk_recognition_msgs::ClusterPointIndicesConstPtr &indices)
 
virtual void onInit ()
 
virtual void sortIndicesOrder (const pcl::PointCloud< pcl::PointXYZ >::Ptr input, const std::vector< pcl::IndicesPtr > indices_array, std::vector< size_t > *argsort)
 
void sortIndicesOrderByCloudSize (const pcl::PointCloud< pcl::PointXYZ >::Ptr input, const std::vector< pcl::IndicesPtr > indices_array, std::vector< size_t > *argsort)
 
void sortIndicesOrderByIndices (const pcl::PointCloud< pcl::PointXYZ >::Ptr input, const std::vector< pcl::IndicesPtr > indices_array, std::vector< size_t > *argsort)
 
void sortIndicesOrderByZAxis (const pcl::PointCloud< pcl::PointXYZ >::Ptr input, const std::vector< pcl::IndicesPtr > indices_array, std::vector< size_t > *argsort)
 
- 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 addToDebugPointCloud (const pcl::PointCloud< pcl::PointXYZRGB >::Ptr segmented_cloud, size_t i, pcl::PointCloud< pcl::PointXYZRGB > &debug_output)
 
virtual void allocatePublishers (size_t num)
 
virtual bool computeCenterAndBoundingBox (const pcl::PointCloud< pcl::PointXYZRGB >::Ptr segmented_cloud, const std_msgs::Header header, const jsk_recognition_msgs::PolygonArrayConstPtr &planes, const jsk_recognition_msgs::ModelCoefficientsArrayConstPtr &coefficients, geometry_msgs::Pose &center_pose_msg, jsk_recognition_msgs::BoundingBox &bounding_box)
 
virtual void configCallback (Config &config, uint32_t level)
 
virtual int findNearestPlane (const Eigen::Vector4f &center, const jsk_recognition_msgs::PolygonArrayConstPtr &planes, const jsk_recognition_msgs::ModelCoefficientsArrayConstPtr &coefficients)
 
virtual void publishNegativeIndices (const sensor_msgs::PointCloud2ConstPtr &input, const jsk_recognition_msgs::ClusterPointIndicesConstPtr &indices_input)
 
virtual void subscribe ()
 
virtual bool transformPointCloudToAlignWithPlane (const pcl::PointCloud< pcl::PointXYZRGB >::Ptr segmented_cloud, pcl::PointCloud< pcl::PointXYZRGB >::Ptr segmented_cloud_transformed, const Eigen::Vector4f center, const jsk_recognition_msgs::PolygonArrayConstPtr &planes, const jsk_recognition_msgs::ModelCoefficientsArrayConstPtr &coefficients, Eigen::Matrix4f &m4, Eigen::Quaternionf &q, int &nearest_plane_index)
 
virtual void unsubscribe ()
 
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
 

Static Protected Member Functions

static uint32_t colorRGBAToUInt32 (std_msgs::ColorRGBA c)
 

Protected Attributes

bool align_boxes_
 
bool align_boxes_with_plane_
 
boost::shared_ptr< message_filters::Synchronizer< ApproximateSyncPolicy > > async_
 
boost::shared_ptr< message_filters::Synchronizer< ApproximateSyncAlignPolicy > > async_align_
 
ros::Publisher box_pub_
 
boost::shared_ptr< tf::TransformBroadcasterbr_
 
ros::Publisher centers_pub_
 
jsk_recognition_utils::Counter cluster_counter_
 
bool fill_boxes_label_with_nearest_plane_index_
 
bool force_to_flip_z_axis_
 
ros::Publisher indices_pub_
 
ros::Publisher label_pub_
 
ros::Publisher mask_pub_
 
int max_size_
 
int min_size_
 
boost::mutex mutex_
 
ros::Publisher negative_indices_pub_
 
ros::Publisher pc_pub_
 
bool publish_clouds_
 
bool publish_tf_
 
std::vector< ros::Publisherpublishers_
 
int queue_size_
 
std::string sort_by_
 
boost::shared_ptr< dynamic_reconfigure::Server< Config > > srv_
 
message_filters::Subscriber< jsk_recognition_msgs::ModelCoefficientsArray > sub_coefficients_
 
message_filters::Subscriber< sensor_msgs::PointCloud2 > sub_input_
 
message_filters::Subscriber< jsk_recognition_msgs::PolygonArray > sub_polygons_
 
message_filters::Subscriber< jsk_recognition_msgs::ClusterPointIndices > sub_target_
 
boost::shared_ptr< message_filters::Synchronizer< SyncPolicy > > sync_
 
boost::shared_ptr< message_filters::Synchronizer< SyncAlignPolicy > > sync_align_
 
std::string target_frame_id_
 
tf::TransformListenertf_listener_
 
std::string tf_prefix_
 
bool use_async_
 
bool use_pca_
 
- 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 68 of file cluster_point_indices_decomposer.h.

Member Typedef Documentation

typedef message_filters::sync_policies::ApproximateTime< sensor_msgs::PointCloud2, jsk_recognition_msgs::ClusterPointIndices, jsk_recognition_msgs::PolygonArray, jsk_recognition_msgs::ModelCoefficientsArray> jsk_pcl_ros::ClusterPointIndicesDecomposer::ApproximateSyncAlignPolicy

Definition at line 88 of file cluster_point_indices_decomposer.h.

typedef message_filters::sync_policies::ApproximateTime< sensor_msgs::PointCloud2, jsk_recognition_msgs::ClusterPointIndices > jsk_pcl_ros::ClusterPointIndicesDecomposer::ApproximateSyncPolicy

Definition at line 78 of file cluster_point_indices_decomposer.h.

typedef jsk_pcl_ros::ClusterPointIndicesDecomposerConfig jsk_pcl_ros::ClusterPointIndicesDecomposer::Config

Definition at line 72 of file cluster_point_indices_decomposer.h.

typedef message_filters::sync_policies::ExactTime< sensor_msgs::PointCloud2, jsk_recognition_msgs::ClusterPointIndices, jsk_recognition_msgs::PolygonArray, jsk_recognition_msgs::ModelCoefficientsArray> jsk_pcl_ros::ClusterPointIndicesDecomposer::SyncAlignPolicy

Definition at line 83 of file cluster_point_indices_decomposer.h.

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

Definition at line 75 of file cluster_point_indices_decomposer.h.

Constructor & Destructor Documentation

jsk_pcl_ros::ClusterPointIndicesDecomposer::ClusterPointIndicesDecomposer ( )
inline

Definition at line 71 of file cluster_point_indices_decomposer.h.

Member Function Documentation

void jsk_pcl_ros::ClusterPointIndicesDecomposer::addToDebugPointCloud ( const pcl::PointCloud< pcl::PointXYZRGB >::Ptr  segmented_cloud,
size_t  i,
pcl::PointCloud< pcl::PointXYZRGB > &  debug_output 
)
protected
void jsk_pcl_ros::ClusterPointIndicesDecomposer::allocatePublishers ( size_t  num)
protectedvirtual
static uint32_t jsk_pcl_ros::ClusterPointIndicesDecomposer::colorRGBAToUInt32 ( std_msgs::ColorRGBA  c)
inlinestaticprotected

Definition at line 149 of file cluster_point_indices_decomposer.h.

bool jsk_pcl_ros::ClusterPointIndicesDecomposer::computeCenterAndBoundingBox ( const pcl::PointCloud< pcl::PointXYZRGB >::Ptr  segmented_cloud,
const std_msgs::Header  header,
const jsk_recognition_msgs::PolygonArrayConstPtr &  planes,
const jsk_recognition_msgs::ModelCoefficientsArrayConstPtr &  coefficients,
geometry_msgs::Pose center_pose_msg,
jsk_recognition_msgs::BoundingBox &  bounding_box 
)
protectedvirtual
void jsk_pcl_ros::ClusterPointIndicesDecomposer::configCallback ( Config config,
uint32_t  level 
)
protectedvirtual
void jsk_pcl_ros::ClusterPointIndicesDecomposer::extract ( const sensor_msgs::PointCloud2ConstPtr &  point,
const jsk_recognition_msgs::ClusterPointIndicesConstPtr &  indices,
const jsk_recognition_msgs::PolygonArrayConstPtr &  planes,
const jsk_recognition_msgs::ModelCoefficientsArrayConstPtr &  coefficients 
)
virtual
void jsk_pcl_ros::ClusterPointIndicesDecomposer::extract ( const sensor_msgs::PointCloud2ConstPtr &  point,
const jsk_recognition_msgs::ClusterPointIndicesConstPtr &  indices 
)
virtual
int jsk_pcl_ros::ClusterPointIndicesDecomposer::findNearestPlane ( const Eigen::Vector4f &  center,
const jsk_recognition_msgs::PolygonArrayConstPtr &  planes,
const jsk_recognition_msgs::ModelCoefficientsArrayConstPtr &  coefficients 
)
protectedvirtual
void jsk_pcl_ros::ClusterPointIndicesDecomposer::onInit ( void  )
virtual
void jsk_pcl_ros::ClusterPointIndicesDecomposer::publishNegativeIndices ( const sensor_msgs::PointCloud2ConstPtr &  input,
const jsk_recognition_msgs::ClusterPointIndicesConstPtr &  indices_input 
)
protectedvirtual
void jsk_pcl_ros::ClusterPointIndicesDecomposer::sortIndicesOrder ( const pcl::PointCloud< pcl::PointXYZ >::Ptr  input,
const std::vector< pcl::IndicesPtr >  indices_array,
std::vector< size_t > *  argsort 
)
virtual
void jsk_pcl_ros::ClusterPointIndicesDecomposer::sortIndicesOrderByCloudSize ( const pcl::PointCloud< pcl::PointXYZ >::Ptr  input,
const std::vector< pcl::IndicesPtr >  indices_array,
std::vector< size_t > *  argsort 
)
void jsk_pcl_ros::ClusterPointIndicesDecomposer::sortIndicesOrderByIndices ( const pcl::PointCloud< pcl::PointXYZ >::Ptr  input,
const std::vector< pcl::IndicesPtr >  indices_array,
std::vector< size_t > *  argsort 
)
void jsk_pcl_ros::ClusterPointIndicesDecomposer::sortIndicesOrderByZAxis ( const pcl::PointCloud< pcl::PointXYZ >::Ptr  input,
const std::vector< pcl::IndicesPtr >  indices_array,
std::vector< size_t > *  argsort 
)
void jsk_pcl_ros::ClusterPointIndicesDecomposer::subscribe ( )
protectedvirtual
bool jsk_pcl_ros::ClusterPointIndicesDecomposer::transformPointCloudToAlignWithPlane ( const pcl::PointCloud< pcl::PointXYZRGB >::Ptr  segmented_cloud,
pcl::PointCloud< pcl::PointXYZRGB >::Ptr  segmented_cloud_transformed,
const Eigen::Vector4f  center,
const jsk_recognition_msgs::PolygonArrayConstPtr &  planes,
const jsk_recognition_msgs::ModelCoefficientsArrayConstPtr &  coefficients,
Eigen::Matrix4f &  m4,
Eigen::Quaternionf &  q,
int &  nearest_plane_index 
)
protectedvirtual
void jsk_pcl_ros::ClusterPointIndicesDecomposer::unsubscribe ( )
protectedvirtual
void jsk_pcl_ros::ClusterPointIndicesDecomposer::updateDiagnostic ( diagnostic_updater::DiagnosticStatusWrapper stat)
protectedvirtual

Member Data Documentation

bool jsk_pcl_ros::ClusterPointIndicesDecomposer::align_boxes_
protected

Definition at line 176 of file cluster_point_indices_decomposer.h.

bool jsk_pcl_ros::ClusterPointIndicesDecomposer::align_boxes_with_plane_
protected

Definition at line 177 of file cluster_point_indices_decomposer.h.

boost::shared_ptr<message_filters::Synchronizer<ApproximateSyncPolicy> > jsk_pcl_ros::ClusterPointIndicesDecomposer::async_
protected

Definition at line 163 of file cluster_point_indices_decomposer.h.

boost::shared_ptr<message_filters::Synchronizer<ApproximateSyncAlignPolicy> > jsk_pcl_ros::ClusterPointIndicesDecomposer::async_align_
protected

Definition at line 165 of file cluster_point_indices_decomposer.h.

ros::Publisher jsk_pcl_ros::ClusterPointIndicesDecomposer::box_pub_
protected

Definition at line 167 of file cluster_point_indices_decomposer.h.

boost::shared_ptr<tf::TransformBroadcaster> jsk_pcl_ros::ClusterPointIndicesDecomposer::br_
protected

Definition at line 168 of file cluster_point_indices_decomposer.h.

ros::Publisher jsk_pcl_ros::ClusterPointIndicesDecomposer::centers_pub_
protected

Definition at line 167 of file cluster_point_indices_decomposer.h.

jsk_recognition_utils::Counter jsk_pcl_ros::ClusterPointIndicesDecomposer::cluster_counter_
protected

Definition at line 186 of file cluster_point_indices_decomposer.h.

bool jsk_pcl_ros::ClusterPointIndicesDecomposer::fill_boxes_label_with_nearest_plane_index_
protected

Definition at line 181 of file cluster_point_indices_decomposer.h.

bool jsk_pcl_ros::ClusterPointIndicesDecomposer::force_to_flip_z_axis_
protected

Definition at line 173 of file cluster_point_indices_decomposer.h.

ros::Publisher jsk_pcl_ros::ClusterPointIndicesDecomposer::indices_pub_
protected

Definition at line 167 of file cluster_point_indices_decomposer.h.

ros::Publisher jsk_pcl_ros::ClusterPointIndicesDecomposer::label_pub_
protected

Definition at line 167 of file cluster_point_indices_decomposer.h.

ros::Publisher jsk_pcl_ros::ClusterPointIndicesDecomposer::mask_pub_
protected

Definition at line 167 of file cluster_point_indices_decomposer.h.

int jsk_pcl_ros::ClusterPointIndicesDecomposer::max_size_
protected

Definition at line 182 of file cluster_point_indices_decomposer.h.

int jsk_pcl_ros::ClusterPointIndicesDecomposer::min_size_
protected

Definition at line 183 of file cluster_point_indices_decomposer.h.

boost::mutex jsk_pcl_ros::ClusterPointIndicesDecomposer::mutex_
protected

Definition at line 110 of file cluster_point_indices_decomposer.h.

ros::Publisher jsk_pcl_ros::ClusterPointIndicesDecomposer::negative_indices_pub_
protected

Definition at line 167 of file cluster_point_indices_decomposer.h.

ros::Publisher jsk_pcl_ros::ClusterPointIndicesDecomposer::pc_pub_
protected

Definition at line 167 of file cluster_point_indices_decomposer.h.

bool jsk_pcl_ros::ClusterPointIndicesDecomposer::publish_clouds_
protected

Definition at line 174 of file cluster_point_indices_decomposer.h.

bool jsk_pcl_ros::ClusterPointIndicesDecomposer::publish_tf_
protected

Definition at line 175 of file cluster_point_indices_decomposer.h.

std::vector<ros::Publisher> jsk_pcl_ros::ClusterPointIndicesDecomposer::publishers_
protected

Definition at line 166 of file cluster_point_indices_decomposer.h.

int jsk_pcl_ros::ClusterPointIndicesDecomposer::queue_size_
protected

Definition at line 172 of file cluster_point_indices_decomposer.h.

std::string jsk_pcl_ros::ClusterPointIndicesDecomposer::sort_by_
protected

Definition at line 184 of file cluster_point_indices_decomposer.h.

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

Definition at line 109 of file cluster_point_indices_decomposer.h.

message_filters::Subscriber<jsk_recognition_msgs::ModelCoefficientsArray> jsk_pcl_ros::ClusterPointIndicesDecomposer::sub_coefficients_
protected

Definition at line 161 of file cluster_point_indices_decomposer.h.

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

Definition at line 158 of file cluster_point_indices_decomposer.h.

message_filters::Subscriber<jsk_recognition_msgs::PolygonArray> jsk_pcl_ros::ClusterPointIndicesDecomposer::sub_polygons_
protected

Definition at line 160 of file cluster_point_indices_decomposer.h.

message_filters::Subscriber<jsk_recognition_msgs::ClusterPointIndices> jsk_pcl_ros::ClusterPointIndicesDecomposer::sub_target_
protected

Definition at line 159 of file cluster_point_indices_decomposer.h.

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

Definition at line 162 of file cluster_point_indices_decomposer.h.

boost::shared_ptr<message_filters::Synchronizer<SyncAlignPolicy> > jsk_pcl_ros::ClusterPointIndicesDecomposer::sync_align_
protected

Definition at line 164 of file cluster_point_indices_decomposer.h.

std::string jsk_pcl_ros::ClusterPointIndicesDecomposer::target_frame_id_
protected

Definition at line 178 of file cluster_point_indices_decomposer.h.

tf::TransformListener* jsk_pcl_ros::ClusterPointIndicesDecomposer::tf_listener_
protected

Definition at line 179 of file cluster_point_indices_decomposer.h.

std::string jsk_pcl_ros::ClusterPointIndicesDecomposer::tf_prefix_
protected

Definition at line 169 of file cluster_point_indices_decomposer.h.

bool jsk_pcl_ros::ClusterPointIndicesDecomposer::use_async_
protected

Definition at line 171 of file cluster_point_indices_decomposer.h.

bool jsk_pcl_ros::ClusterPointIndicesDecomposer::use_pca_
protected

Definition at line 180 of file cluster_point_indices_decomposer.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