36 "Name of the topic the DebugObserver listens to.");
39 "ProviderWaitMs", 100,
"Time to wait for each point cloud provider [ms].");
45 return "LabeledPointCloudMerger";
65 if (!providerNames.empty())
88 static_cast<int>(providerWaitTime.toMilliSeconds())))
93 pcl::PointCloud<MergedLabeledPointCloud::PointL>::Ptr inputCloud(
94 new pcl::PointCloud<MergedLabeledPointCloud::PointL>);
96 merged.setInputPointCloud(providerName, inputCloud,
true);
100 pcl::PointCloud<MergedLabeledPointCloud::PointT>::Ptr inputCloud(
101 new pcl::PointCloud<MergedLabeledPointCloud::PointT>);
103 merged.setInputPointCloud(providerName, inputCloud);
108 ARMARX_INFO <<
"Timeout waiting for point cloud provider " << providerName <<
".";
TopicProxyType getTopicFromProperty(const std::string &propertyName)
Get a topic proxy whose name is specified by the given property.
void offeringTopicFromProperty(const std::string &propertyName)
Offer a topic whose name is specified by the given property.
std::string getConfigIdentifier()
Retrieve config identifier for this component as set in constructor.
Property< PropertyType > getProperty(const std::string &name)
std::string prefix
Prefix of the properties such as namespace, domain, component name, etc.
PropertyDefinition< PropertyType > & defineOptionalProperty(const std::string &name, PropertyType defaultValue, const std::string &description="", PropertyDefinitionBase::PropertyConstness constness=PropertyDefinitionBase::eConstant)
Property definitions of LabeledPointCloudMerger.
LabeledPointCloudMergerPropertyDefinitions(std::string prefix)
armarx::PropertyDefinitionsPtr createPropertyDefinitions() override
void onExitPointCloudProcessor() override
void onConnectPointCloudProcessor() override
void onDisconnectPointCloudProcessor() override
void onInitPointCloudProcessor() override
std::string getDefaultName() const override
PointCloudProcessorPropertyDefinitions(std::string prefix)
void enableResultPointCloudForInputProvider(const std::string &inputProviderName, const std::string &resultProviderName="")
int getPointClouds(const PointCloudPtrT &pointCloudPtr)
Poll PointClouds from provider.
MetaPointCloudFormatPtr getPointCloudFormat(std::string providerName)
bool waitForPointClouds(int milliseconds=1000)
Wait for new PointClouds.
void provideResultPointClouds(const PointCloudPtrT &pointClouds, std::string providerName="")
sends result PointClouds for visualization
std::vector< std::string > getPointCloudProviderNames() const
Get the names of providers for which usingPointCloudProvider() has been called.
#define ARMARX_INFO
The normal logging level.
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.