28#include <pcl/common/transforms.h>
29#include <pcl/filters/approximate_voxel_grid.h>
30#include <pcl/io/pcd_io.h>
31#include <pcl/registration/icp.h>
32#include <pcl/visualization/cloud_viewer.h>
34#include <VirtualRobot/MathTools.h>
55 "Merge",
true,
"If set the program merges PointCloud1 and PointCloud2");
59 "If set the program transforms the merged Pointcloud or Pointcloud1");
63 "If set the program shows the merged/transformed Pointcloud or Pointcloud1");
65 "ResultFileName",
"result.pcd",
"The filename of the output file");
95 return "PointCloudUtility";
99 void fusePointclouds(std::string file1, std::string file2, std::string out);
100 pcl::PointCloud<pcl::PointXYZRGBA>::Ptr loadPointCloud(std::string filename);
101 void moveOrigin(std::string file, std::string out, Eigen::Vector3f translation);
102 void rotatePointCloud(std::string file, std::string out, Eigen::Matrix3f rotation);
103 void transformPointcloud(std::string file, std::string out, Eigen::Matrix4f pose);
104 void showResult(std::string file);
Default component property definition container.
ComponentPropertyDefinitions(std::string prefix, bool hasObjectNameParameter=true)
Baseclass for all ArmarX ManagedIceObjects requiring properties.
PointCloudUtilityPropertyDefinitions(std::string prefix)
Brief description of class PointCloudUtility.
void onInitComponent() override
void onDisconnectComponent() override
armarx::PropertyDefinitionsPtr createPropertyDefinitions() override
void onConnectComponent() override
void onExitComponent() override
std::string getDefaultName() const override
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)
PropertyDefinition< PropertyType > & defineRequiredProperty(const std::string &name, const std::string &description="", PropertyDefinitionBase::PropertyConstness constness=PropertyDefinitionBase::eConstant)
IceUtil::Handle< RunningTask< T > > pointer_type
Shared pointer type for convenience.
This file offers overloads of toIce() and fromIce() functions for STL container types.
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.