Go to the documentation of this file.
34 defineOptionalProperty<std::string>(
"ice.DebugObserverName",
"DebugObserver",
35 "Name of the topic the DebugObserver listens to.");
37 defineOptionalProperty<int>(
"ProviderWaitMs", 100,
38 "Time to wait for each point cloud provider [ms].");
44 return "LabeledPointCloudMerger";
53 providerWaitTime = IceUtil::Time::milliSeconds(getProperty<int>(
"ProviderWaitMs").getValue());
63 if (!providerNames.empty())
65 enableResultPointCloudForInputProvider<PointT>(providerNames.front());
84 if (
waitForPointClouds(providerName,
static_cast<int>(providerWaitTime.toMilliSeconds())))
89 pcl::PointCloud<MergedLabeledPointCloud::PointL>::Ptr inputCloud(
90 new pcl::PointCloud<MergedLabeledPointCloud::PointL>);
96 pcl::PointCloud<MergedLabeledPointCloud::PointT>::Ptr inputCloud(
97 new pcl::PointCloud<MergedLabeledPointCloud::PointT>);
104 ARMARX_INFO <<
"Timeout waiting for point cloud provider " << providerName <<
".";
MetaPointCloudFormatPtr getPointCloudFormat(std::string providerName)
void onInitPointCloudProcessor() override
void onConnectPointCloudProcessor() override
void offeringTopicFromProperty(const std::string &propertyName)
Offer a topic whose name is specified by the given property.
LabeledPointCloudMergerPropertyDefinitions(std::string prefix)
TopicProxyType getTopicFromProperty(const std::string &propertyName)
Get a topic proxy whose name is specified by the given property.
void onDisconnectPointCloudProcessor() override
void provideResultPointClouds(const PointCloudPtrT &pointClouds, std::string providerName="")
sends result PointClouds for visualization
Property definitions of LabeledPointCloudMerger.
void setInputPointCloud(const std::string &name, pcl::PointCloud< PointL >::ConstPtr inputCloud, bool isLabeled=true)
Set a (new) labeled or unlabeled input point cloud.
bool waitForPointClouds(int milliseconds=1000)
Wait for new PointClouds.
Properties of PointCloudProcessor.
int getPointClouds(const PointCloudPtrT &pointCloudPtr)
Poll PointClouds from provider.
void onExitPointCloudProcessor() override
std::string getConfigIdentifier()
Retrieve config identifier for this component as set in constructor.
std::string getDefaultName() const override
armarx::PropertyDefinitionsPtr createPropertyDefinitions() override
pcl::PointCloud< PointL >::Ptr getResultPointCloud()
Get the result point cloud.
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.
std::vector< std::string > getPointCloudProviderNames() const
Get the names of providers for which usingPointCloudProvider() has been called.