concatenate_fields.h
Go to the documentation of this file.
1 /*
2  * Software License Agreement (BSD License)
3  *
4  * Copyright (c) 2009, Willow Garage, Inc.
5  * All rights reserved.
6  *
7  * Redistribution and use in source and binary forms, with or without
8  * modification, are permitted provided that the following conditions
9  * are met:
10  *
11  * * Redistributions of source code must retain the above copyright
12  * notice, this list of conditions and the following disclaimer.
13  * * Redistributions in binary form must reproduce the above
14  * copyright notice, this list of conditions and the following
15  * disclaimer in the documentation and/or other materials provided
16  * with the distribution.
17  * * Neither the name of Willow Garage, Inc. nor the names of its
18  * contributors may be used to endorse or promote products derived
19  * from this software without specific prior written permission.
20  *
21  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
24  * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
25  * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
26  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
27  * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
28  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29  * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
31  * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
32  * POSSIBILITY OF SUCH DAMAGE.
33  *
34  * $Id: concatenate_fields.h 35052 2011-01-03 21:04:57Z rusu $
35  *
36  */
37 
38 #ifndef PCL_IO_CONCATENATE_FIELDS_H_
39 #define PCL_IO_CONCATENATE_FIELDS_H_
40 
41 // ROS includes
43 
44 #include <sensor_msgs/PointCloud2.h>
45 
46 namespace pcl_ros
47 {
54  {
55  public:
56  typedef sensor_msgs::PointCloud2 PointCloud;
57  typedef PointCloud::Ptr PointCloudPtr;
58  typedef PointCloud::ConstPtr PointCloudConstPtr;
59 
62 
67 
70 
71  void onInit ();
72  void subscribe ();
73  void unsubscribe ();
74  void input_callback (const PointCloudConstPtr &cloud);
75 
76  private:
79 
82 
85 
88 
91 
93  std::map<ros::Time, std::vector<PointCloudConstPtr> > queue_;
94  };
95 }
96 
97 #endif //#ifndef PCL_IO_CONCATENATE_H_
pcl_ros::PointCloudConcatenateFieldsSynchronizer::onInit
void onInit()
Definition: concatenate_fields.cpp:47
PointCloudConstPtr
PointCloud::ConstPtr PointCloudConstPtr
Definition: bag_to_pcd.cpp:57
pcl_ros::PointCloudConcatenateFieldsSynchronizer::PointCloudPtr
PointCloud::Ptr PointCloudPtr
Definition: concatenate_fields.h:57
pcl_ros::PointCloudConcatenateFieldsSynchronizer::PointCloudConcatenateFieldsSynchronizer
PointCloudConcatenateFieldsSynchronizer(int queue_size)
Empty constructor.
Definition: concatenate_fields.h:66
ros::Publisher
pcl_ros::PointCloudConcatenateFieldsSynchronizer::sub_input_
ros::Subscriber sub_input_
The input PointCloud subscriber.
Definition: concatenate_fields.h:78
pcl_ros
Definition: boundary.h:46
pcl_ros::PointCloudConcatenateFieldsSynchronizer::PointCloud
sensor_msgs::PointCloud2 PointCloud
Definition: concatenate_fields.h:56
pcl_ros::PointCloudConcatenateFieldsSynchronizer::queue_
std::map< ros::Time, std::vector< PointCloudConstPtr > > queue_
A queue for messages.
Definition: concatenate_fields.h:93
pcl_ros::PointCloudConcatenateFieldsSynchronizer::input_callback
void input_callback(const PointCloudConstPtr &cloud)
Definition: concatenate_fields.cpp:86
pcl_ros::PointCloudConcatenateFieldsSynchronizer::input_messages_
int input_messages_
The number of input messages that we expect on the input topic.
Definition: concatenate_fields.h:84
pcl_ros::PointCloudConcatenateFieldsSynchronizer::PointCloudConstPtr
PointCloud::ConstPtr PointCloudConstPtr
Definition: concatenate_fields.h:58
pcl_ros::PointCloudConcatenateFieldsSynchronizer::pub_output_
ros::Publisher pub_output_
The output PointCloud publisher.
Definition: concatenate_fields.h:81
pcl_ros::PointCloudConcatenateFieldsSynchronizer::subscribe
void subscribe()
Definition: concatenate_fields.cpp:72
pcl_ros::PointCloudConcatenateFieldsSynchronizer::maximum_seconds_
double maximum_seconds_
The maximum number of seconds to wait until we drop the synchronization.
Definition: concatenate_fields.h:90
pcl_ros::PointCloudConcatenateFieldsSynchronizer::maximum_queue_size_
int maximum_queue_size_
The maximum number of messages that we can store in the queue.
Definition: concatenate_fields.h:87
pcl_ros::PointCloudConcatenateFieldsSynchronizer
PointCloudConcatenateFieldsSynchronizer is a special form of data synchronizer: it listens for a set ...
Definition: concatenate_fields.h:53
pcl_ros::PointCloudConcatenateFieldsSynchronizer::unsubscribe
void unsubscribe()
Definition: concatenate_fields.cpp:79
nodelet_topic_tools::NodeletLazy
pcl_ros::PointCloudConcatenateFieldsSynchronizer::~PointCloudConcatenateFieldsSynchronizer
virtual ~PointCloudConcatenateFieldsSynchronizer()
Empty destructor.
Definition: concatenate_fields.h:69
nodelet_lazy.h
pcl_ros::PointCloudConcatenateFieldsSynchronizer::PointCloudConcatenateFieldsSynchronizer
PointCloudConcatenateFieldsSynchronizer()
Empty constructor.
Definition: concatenate_fields.h:61
ros::Subscriber


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