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

#include <line_segment_detector.h>

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

Public Types

typedef message_filters::sync_policies::ApproximateTime< sensor_msgs::PointCloud2, jsk_recognition_msgs::ClusterPointIndices > ApproximateSyncPolicy
 
typedef jsk_pcl_ros::LineSegmentDetectorConfig Config
 
typedef pcl::PointXYZ PointT
 
typedef message_filters::sync_policies::ExactTime< sensor_msgs::PointCloud2, jsk_recognition_msgs::ClusterPointIndices > SyncPolicy
 

Public Member Functions

 LineSegmentDetector ()
 
 ~LineSegmentDetector ()
 

Protected Member Functions

virtual void configCallback (Config &config, uint32_t level)
 
virtual void onInit ()
 
virtual void publishResult (const std_msgs::Header &header, const pcl::PointCloud< PointT >::Ptr &cloud, const std::vector< LineSegment::Ptr > &segments)
 
virtual void segment (const sensor_msgs::PointCloud2::ConstPtr &cloud_msg, const jsk_recognition_msgs::ClusterPointIndices::ConstPtr &cluster_msg)
 
virtual void segmentLines (const pcl::PointCloud< PointT >::Ptr &cloud, const pcl::PointIndices::Ptr &indices, std::vector< pcl::PointIndices::Ptr > &line_indices, std::vector< pcl::ModelCoefficients::Ptr > &line_coefficients)
 
virtual void subscribe ()
 
virtual void unsubscribe ()
 

Protected Attributes

bool approximate_sync_
 
boost::shared_ptr< message_filters::Synchronizer< ApproximateSyncPolicy > > async_
 
boost::recursive_mutex config_mutex_
 
double line_width_
 
int max_iterations_
 
int min_indices_
 
double min_length_
 
boost::mutex mutex_
 
double outlier_threshold_
 
ros::Publisher pub_coefficients_
 
ros::Publisher pub_indices_
 
ros::Publisher pub_line_marker_
 
pcl::SACSegmentation< PointTseg_
 
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_
 

Detailed Description

Definition at line 122 of file line_segment_detector.h.

Member Typedef Documentation

◆ ApproximateSyncPolicy

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

Definition at line 145 of file line_segment_detector.h.

◆ Config

typedef jsk_pcl_ros::LineSegmentDetectorConfig jsk_pcl_ros::LineSegmentDetector::Config

Definition at line 147 of file line_segment_detector.h.

◆ PointT

Definition at line 146 of file line_segment_detector.h.

◆ SyncPolicy

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

Definition at line 142 of file line_segment_detector.h.

Constructor & Destructor Documentation

◆ LineSegmentDetector()

jsk_pcl_ros::LineSegmentDetector::LineSegmentDetector ( )
inline

Definition at line 125 of file line_segment_detector.h.

◆ ~LineSegmentDetector()

jsk_pcl_ros::LineSegmentDetector::~LineSegmentDetector ( )
inline

Definition at line 128 of file line_segment_detector.h.

Member Function Documentation

◆ configCallback()

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

Definition at line 188 of file line_segment_detector_nodelet.cpp.

◆ onInit()

void jsk_pcl_ros::LineSegmentDetector::onInit ( )
protectedvirtual

Definition at line 164 of file line_segment_detector_nodelet.cpp.

◆ publishResult()

void jsk_pcl_ros::LineSegmentDetector::publishResult ( const std_msgs::Header header,
const pcl::PointCloud< PointT >::Ptr &  cloud,
const std::vector< LineSegment::Ptr > &  segments 
)
protectedvirtual

Definition at line 235 of file line_segment_detector_nodelet.cpp.

◆ segment()

void jsk_pcl_ros::LineSegmentDetector::segment ( const sensor_msgs::PointCloud2::ConstPtr &  cloud_msg,
const jsk_recognition_msgs::ClusterPointIndices::ConstPtr &  cluster_msg 
)
protectedvirtual

Definition at line 310 of file line_segment_detector_nodelet.cpp.

◆ segmentLines()

void jsk_pcl_ros::LineSegmentDetector::segmentLines ( const pcl::PointCloud< PointT >::Ptr &  cloud,
const pcl::PointIndices::Ptr &  indices,
std::vector< pcl::PointIndices::Ptr > &  line_indices,
std::vector< pcl::ModelCoefficients::Ptr > &  line_coefficients 
)
protectedvirtual

Definition at line 275 of file line_segment_detector_nodelet.cpp.

◆ subscribe()

void jsk_pcl_ros::LineSegmentDetector::subscribe ( )
protectedvirtual

Definition at line 211 of file line_segment_detector_nodelet.cpp.

◆ unsubscribe()

void jsk_pcl_ros::LineSegmentDetector::unsubscribe ( )
protectedvirtual

Definition at line 229 of file line_segment_detector_nodelet.cpp.

Member Data Documentation

◆ approximate_sync_

bool jsk_pcl_ros::LineSegmentDetector::approximate_sync_
protected

Definition at line 184 of file line_segment_detector.h.

◆ async_

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

Definition at line 174 of file line_segment_detector.h.

◆ config_mutex_

boost::recursive_mutex jsk_pcl_ros::LineSegmentDetector::config_mutex_
protected

Definition at line 179 of file line_segment_detector.h.

◆ line_width_

double jsk_pcl_ros::LineSegmentDetector::line_width_
protected

Definition at line 189 of file line_segment_detector.h.

◆ max_iterations_

int jsk_pcl_ros::LineSegmentDetector::max_iterations_
protected

Definition at line 186 of file line_segment_detector.h.

◆ min_indices_

int jsk_pcl_ros::LineSegmentDetector::min_indices_
protected

Definition at line 187 of file line_segment_detector.h.

◆ min_length_

double jsk_pcl_ros::LineSegmentDetector::min_length_
protected

Definition at line 188 of file line_segment_detector.h.

◆ mutex_

boost::mutex jsk_pcl_ros::LineSegmentDetector::mutex_
protected

Definition at line 178 of file line_segment_detector.h.

◆ outlier_threshold_

double jsk_pcl_ros::LineSegmentDetector::outlier_threshold_
protected

Definition at line 185 of file line_segment_detector.h.

◆ pub_coefficients_

ros::Publisher jsk_pcl_ros::LineSegmentDetector::pub_coefficients_
protected

Definition at line 172 of file line_segment_detector.h.

◆ pub_indices_

ros::Publisher jsk_pcl_ros::LineSegmentDetector::pub_indices_
protected

Definition at line 171 of file line_segment_detector.h.

◆ pub_line_marker_

ros::Publisher jsk_pcl_ros::LineSegmentDetector::pub_line_marker_
protected

Definition at line 170 of file line_segment_detector.h.

◆ seg_

pcl::SACSegmentation<PointT> jsk_pcl_ros::LineSegmentDetector::seg_
protected

Definition at line 191 of file line_segment_detector.h.

◆ srv_

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

Definition at line 177 of file line_segment_detector.h.

◆ sub_indices_

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

Definition at line 176 of file line_segment_detector.h.

◆ sub_input_

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

Definition at line 175 of file line_segment_detector.h.

◆ sync_

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

Definition at line 173 of file line_segment_detector.h.


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


jsk_pcl_ros
Author(s): Yohei Kakiuchi
autogenerated on Tue Jan 7 2025 04:05:46