Go to the documentation of this file.
27 #include <RobotAPI/interface/units/LaserScannerUnit.h>
28 #include <VisionX/interface/components/LaserScannerPointCloudProvider.h>
33 #pragma GCC diagnostic push
34 #include <pcl/common/transforms.h>
35 #include <pcl/filters/statistical_outlier_removal.h>
36 #pragma GCC diagnostic ignored "-Wpedantic"
37 #pragma GCC diagnostic pop
41 #include <RobotAPI/interface/visualization/DebugDrawerInterface.h>
58 defineOptionalProperty<std::string>(
"LaserScannerUnitName",
"LaserScannerSimulation",
"The name of the laser scanner provider");
59 defineOptionalProperty<std::string>(
"RobotStateComponentName",
"RobotStateComponent",
"Name of the robot state component that should be used");
76 virtual public armarx::LaserScannerPointCloudProviderInterface
84 return "LaserScannerPointCloudProvider";
86 void reportSensorValues(
const std::string&,
const std::string&,
const LaserScan&,
const TimestampBasePtr&,
const Ice::Current&
c = Ice::emptyCurrent)
override;
91 return localRobot->getRootNode()->getName();
109 std::map<std::string, std::string> deviceToFrame;
116 std::map<std::string, pcl::PointCloud<pcl::PointXYZ>> clouds;
117 pcl::PointCloud<pcl::PointXYZ>::Ptr resultCloud;
119 pcl::StatisticalOutlierRemoval<pcl::PointXYZ> filter;
std::string prefix
Prefix of the properties such as namespace, domain, component name, etc.
LaserScannerPointCloudProviderPropertyDefinitions(std::string prefix)
std::string getReferenceFrame(const Ice::Current &c=Ice::emptyCurrent) override
visionx::MetaPointCloudFormatPtr getDefaultPointCloudFormat() override
default point cloud format used to initialize shared memory
void onConnectPointCloudProvider() override
This is called when the Component::onConnectComponent() setup is called.
PointCloudProviderPropertyDefinitions(std::string prefix)
std::string getDefaultName() const override
void onInitPointCloudProvider() override
This is called when the Component::onInitComponent() is called.
Brief description of class LaserScannerPointCloudProvider.
armarx::PropertyDefinitionsPtr createPropertyDefinitions() override
void reportSensorValues(const std::string &, const std::string &, const LaserScan &, const TimestampBasePtr &, const Ice::Current &c=Ice::emptyCurrent) override
void onExitPointCloudProvider() override
This is called when the Component::onExitComponent() setup is called.
PointCloudProvider abstract class defines a component which provide point clouds via ice or shared me...
This file offers overloads of toIce() and fromIce() functions for STL container types.
std::shared_ptr< class Robot > RobotPtr