Public Types | Public Member Functions | Private Attributes | List of all members
pcl_ros::PointCloudConcatenateFieldsSynchronizer Class Reference

PointCloudConcatenateFieldsSynchronizer is a special form of data synchronizer: it listens for a set of input PointCloud messages on the same topic, checks their timestamps, and concatenates their fields together into a single PointCloud output message. More...

#include <concatenate_fields.h>

Inheritance diagram for pcl_ros::PointCloudConcatenateFieldsSynchronizer:
Inheritance graph
[legend]

Public Types

typedef sensor_msgs::PointCloud2 PointCloud
 
typedef PointCloud::ConstPtr PointCloudConstPtr
 
typedef PointCloud::Ptr PointCloudPtr
 

Public Member Functions

void input_callback (const PointCloudConstPtr &cloud)
 
void onInit ()
 
 PointCloudConcatenateFieldsSynchronizer ()
 Empty constructor. More...
 
 PointCloudConcatenateFieldsSynchronizer (int queue_size)
 Empty constructor. More...
 
void subscribe ()
 
void unsubscribe ()
 
virtual ~PointCloudConcatenateFieldsSynchronizer ()
 Empty destructor. More...
 
- Public Member Functions inherited from nodelet_topic_tools::NodeletLazy
 NodeletLazy ()
 
- 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 ()
 

Private Attributes

int input_messages_
 The number of input messages that we expect on the input topic. More...
 
int maximum_queue_size_
 The maximum number of messages that we can store in the queue. More...
 
double maximum_seconds_
 The maximum number of seconds to wait until we drop the synchronization. More...
 
ros::Publisher pub_output_
 The output PointCloud publisher. More...
 
std::map< ros::Time, std::vector< PointCloudConstPtr > > queue_
 A queue for messages. More...
 
ros::Subscriber sub_input_
 The input PointCloud subscriber. More...
 

Additional Inherited Members

- Protected Member Functions inherited from nodelet_topic_tools::NodeletLazy
ros::Publisher advertise (ros::NodeHandle &nh, std::string topic, int queue_size, bool latch=false)
 
virtual void connectionCallback (const ros::SingleSubscriberPublisher &pub)
 
virtual void onInitPostProcess ()
 
virtual void warnNeverSubscribedCallback (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::string & getName () const
 
ros::NodeHandlegetNodeHandle () const
 
ros::NodeHandlegetPrivateNodeHandle () const
 
const M_stringgetRemappingArgs () const
 
ros::CallbackQueueInterfacegetSTCallbackQueue () const
 
std::string getSuffixedName (const std::string &suffix) const
 
- Protected Attributes inherited from nodelet_topic_tools::NodeletLazy
boost::mutex connection_mutex_
 
ConnectionStatus connection_status_
 
bool ever_subscribed_
 
bool lazy_
 
boost::shared_ptr< ros::NodeHandlenh_
 
boost::shared_ptr< ros::NodeHandlepnh_
 
std::vector< ros::Publisherpublishers_
 
ros::WallTimer timer_ever_subscribed_
 
bool verbose_connection_
 

Detailed Description

PointCloudConcatenateFieldsSynchronizer is a special form of data synchronizer: it listens for a set of input PointCloud messages on the same topic, checks their timestamps, and concatenates their fields together into a single PointCloud output message.

Author
Radu Bogdan Rusu

Definition at line 53 of file concatenate_fields.h.

Member Typedef Documentation

◆ PointCloud

Definition at line 56 of file concatenate_fields.h.

◆ PointCloudConstPtr

Definition at line 58 of file concatenate_fields.h.

◆ PointCloudPtr

Definition at line 57 of file concatenate_fields.h.

Constructor & Destructor Documentation

◆ PointCloudConcatenateFieldsSynchronizer() [1/2]

pcl_ros::PointCloudConcatenateFieldsSynchronizer::PointCloudConcatenateFieldsSynchronizer ( )
inline

Empty constructor.

Definition at line 61 of file concatenate_fields.h.

◆ PointCloudConcatenateFieldsSynchronizer() [2/2]

pcl_ros::PointCloudConcatenateFieldsSynchronizer::PointCloudConcatenateFieldsSynchronizer ( int  queue_size)
inline

Empty constructor.

Parameters
queue_sizethe maximum queue size

Definition at line 66 of file concatenate_fields.h.

◆ ~PointCloudConcatenateFieldsSynchronizer()

virtual pcl_ros::PointCloudConcatenateFieldsSynchronizer::~PointCloudConcatenateFieldsSynchronizer ( )
inlinevirtual

Empty destructor.

Definition at line 69 of file concatenate_fields.h.

Member Function Documentation

◆ input_callback()

void pcl_ros::PointCloudConcatenateFieldsSynchronizer::input_callback ( const PointCloudConstPtr cloud)

Definition at line 86 of file concatenate_fields.cpp.

◆ onInit()

void pcl_ros::PointCloudConcatenateFieldsSynchronizer::onInit ( )
virtual
Author
Radu Bogdan Rusu

Reimplemented from nodelet_topic_tools::NodeletLazy.

Definition at line 47 of file concatenate_fields.cpp.

◆ subscribe()

void pcl_ros::PointCloudConcatenateFieldsSynchronizer::subscribe ( )
virtual

Implements nodelet_topic_tools::NodeletLazy.

Definition at line 72 of file concatenate_fields.cpp.

◆ unsubscribe()

void pcl_ros::PointCloudConcatenateFieldsSynchronizer::unsubscribe ( )
virtual

Implements nodelet_topic_tools::NodeletLazy.

Definition at line 79 of file concatenate_fields.cpp.

Member Data Documentation

◆ input_messages_

int pcl_ros::PointCloudConcatenateFieldsSynchronizer::input_messages_
private

The number of input messages that we expect on the input topic.

Definition at line 84 of file concatenate_fields.h.

◆ maximum_queue_size_

int pcl_ros::PointCloudConcatenateFieldsSynchronizer::maximum_queue_size_
private

The maximum number of messages that we can store in the queue.

Definition at line 87 of file concatenate_fields.h.

◆ maximum_seconds_

double pcl_ros::PointCloudConcatenateFieldsSynchronizer::maximum_seconds_
private

The maximum number of seconds to wait until we drop the synchronization.

Definition at line 90 of file concatenate_fields.h.

◆ pub_output_

ros::Publisher pcl_ros::PointCloudConcatenateFieldsSynchronizer::pub_output_
private

The output PointCloud publisher.

Definition at line 81 of file concatenate_fields.h.

◆ queue_

std::map<ros::Time, std::vector<PointCloudConstPtr> > pcl_ros::PointCloudConcatenateFieldsSynchronizer::queue_
private

A queue for messages.

Definition at line 93 of file concatenate_fields.h.

◆ sub_input_

ros::Subscriber pcl_ros::PointCloudConcatenateFieldsSynchronizer::sub_input_
private

The input PointCloud subscriber.

Definition at line 78 of file concatenate_fields.h.


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


pcl_ros
Author(s): Open Perception, Julius Kammerl , William Woodall
autogenerated on Fri Jul 12 2024 02:54:40