LabeledPointCloudMerger.h
Go to the documentation of this file.
1 /*
2  * This file is part of ArmarX.
3  *
4  * ArmarX is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License version 2 as
6  * published by the Free Software Foundation.
7  *
8  * ArmarX is distributed in the hope that it will be useful, but
9  * WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  *
16  * @package VisionX::ArmarXObjects::LabeledPointCloudMerger
17  * @author Rainer Kartmann ( rainer dot kartmann at kit dot edu )
18  * @date 2019
19  * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
20  * GNU General Public License
21  */
22 
23 #pragma once
24 
25 
26 #include <pcl/point_types.h>
27 
28 #include <IceUtil/Time.h>
29 
31 
32 #include <ArmarXCore/interface/observers/ObserverInterface.h>
33 // #include <RobotAPI/libraries/core/visualization/DebugDrawerTopic.h>
34 
37 
38 
39 namespace visionx
40 {
41 
42  /**
43  * @class LabeledPointCloudMergerPropertyDefinitions
44  * @brief Property definitions of `LabeledPointCloudMerger`.
45  */
48  {
49  public:
51  };
52 
53 
54  /**
55  * @defgroup Component-LabeledPointCloudMerger LabeledPointCloudMerger
56  * @ingroup VisionX-Components
57  * Merges several unlabeled and labeled point clouds from different
58  * providers into one labeled point cloud. Unlabeled point clouds
59  * receive constant labels (which do not already occur in other point
60  * clouds).
61  *
62  * @class LabeledPointCloudMerger
63  * @ingroup Component-LabeledPointCloudMerger
64  * @brief Brief description of class LabeledPointCloudMerger.
65  *
66  * Detailed description of class LabeledPointCloudMerger.
67  */
69  virtual public visionx::PointCloudProcessor
70  {
71  /// The used point type.
72  using PointT = pcl::PointXYZRGBL;
73 
74  public:
75 
76  /// @see armarx::ManagedIceObject::getDefaultName()
77  std::string getDefaultName() const override;
78 
79 
80  protected:
81 
82  /// @see visionx::PointCloudProcessor::onInitPointCloudProcessor()
83  void onInitPointCloudProcessor() override;
84 
85  /// @see visionx::PointCloudProcessor::onConnectPointCloudProcessor()
86  void onConnectPointCloudProcessor() override;
87 
88  /// @see visionx::PointCloudProcessor::onDisconnectPointCloudProcessor()
89  void onDisconnectPointCloudProcessor() override;
90 
91  /// @see visionx::PointCloudProcessor::onExitPointCloudProcessor()
92  void onExitPointCloudProcessor() override;
93 
94 
95  /// @see visionx::PointCloudProcessor::process()
96  void process() override;
97 
98 
99  /// @see PropertyUser::createPropertyDefinitions()
101 
102 
103  private:
104 
105  armarx::DebugObserverInterfacePrx debugObserver;
106  // armarx::DebugDrawerTopic debugDrawer;
107 
108  IceUtil::Time providerWaitTime;
109 
111 
112 
113  };
114 }
115 
visionx
ArmarX headers.
Definition: OpenPoseStressTest.h:38
visionx::LabeledPointCloudMerger::onInitPointCloudProcessor
void onInitPointCloudProcessor() override
Definition: LabeledPointCloudMerger.cpp:48
visionx::LabeledPointCloudMerger::onConnectPointCloudProcessor
void onConnectPointCloudProcessor() override
Definition: LabeledPointCloudMerger.cpp:57
armarx::PropertyDefinitionContainer::prefix
std::string prefix
Prefix of the properties such as namespace, domain, component name, etc.
Definition: PropertyDefinitionContainer.h:333
visionx::LabeledPointCloudMerger::process
void process() override
Definition: LabeledPointCloudMerger.cpp:79
visionx::LabeledPointCloudMergerPropertyDefinitions::LabeledPointCloudMergerPropertyDefinitions
LabeledPointCloudMergerPropertyDefinitions(std::string prefix)
Definition: LabeledPointCloudMerger.cpp:31
MergedLabeledPointCloud.h
visionx::LabeledPointCloudMerger::onDisconnectPointCloudProcessor
void onDisconnectPointCloudProcessor() override
Definition: LabeledPointCloudMerger.cpp:70
visionx::LabeledPointCloudMerger
Brief description of class LabeledPointCloudMerger.
Definition: LabeledPointCloudMerger.h:68
visionx::PointCloudProcessor
The PointCloudProcessor class provides an interface for access to PointCloudProviders via Ice and sha...
Definition: PointCloudProcessor.h:186
visionx::LabeledPointCloudMergerPropertyDefinitions
Property definitions of LabeledPointCloudMerger.
Definition: LabeledPointCloudMerger.h:46
visionx::PointCloudProcessorPropertyDefinitions
Properties of PointCloudProcessor.
Definition: PointCloudProcessor.h:173
PointCloudProcessor.h
armarx::armem::Time
armarx::core::time::DateTime Time
Definition: forward_declarations.h:13
Component.h
visionx::LabeledPointCloudMerger::onExitPointCloudProcessor
void onExitPointCloudProcessor() override
Definition: LabeledPointCloudMerger.cpp:74
visionx::LabeledPointCloudMerger::getDefaultName
std::string getDefaultName() const override
Definition: LabeledPointCloudMerger.cpp:42
IceUtil::Handle< class PropertyDefinitionContainer >
visionx::MergedLabeledPointCloud
Merges several labeled or unlabeled point clouds into one labeled point cloud.
Definition: MergedLabeledPointCloud.h:43
IceInternal::ProxyHandle<::IceProxy::armarx::DebugObserverInterface >
visionx::LabeledPointCloudMerger::createPropertyDefinitions
armarx::PropertyDefinitionsPtr createPropertyDefinitions() override
Definition: LabeledPointCloudMerger.cpp:113