Skip to content
Snippets Groups Projects
Commit 5c528c49 authored by Víctor Sainz Ubide's avatar Víctor Sainz Ubide
Browse files

relocated function loadData()

parent bd4f9511
No related branches found
No related tags found
1 merge request!41Draft: Resolve "New branch laser 3d"
...@@ -40,6 +40,14 @@ typedef pcl::Registration<pcl::PointXYZ, pcl::PointXYZ>::Ptr RegistrationPtr; ...@@ -40,6 +40,14 @@ typedef pcl::Registration<pcl::PointXYZ, pcl::PointXYZ>::Ptr RegistrationPtr;
namespace wolf namespace wolf
{ {
void loadData(std::string fname, pcl::PointCloud<pcl::PointXYZ>& cloud)
{
pcl::io::loadPCDFile(fname, cloud);
// remove NAN points from the cloud
pcl::Indices indices;
pcl::removeNaNFromPointCloud(cloud, cloud, indices);
};
// _cloud_ref: first PointCloud // _cloud_ref: first PointCloud
// _cloud_other: second PointCloud // _cloud_other: second PointCloud
inline void pairAlign(const pcl::PointCloud<pcl::PointXYZ>::Ptr _cloud_ref, inline void pairAlign(const pcl::PointCloud<pcl::PointXYZ>::Ptr _cloud_ref,
......
...@@ -51,13 +51,6 @@ using namespace Eigen; ...@@ -51,13 +51,6 @@ using namespace Eigen;
std::string laser_root_dir = _WOLF_LASER_ROOT_DIR; std::string laser_root_dir = _WOLF_LASER_ROOT_DIR;
void loadData(std::string fname, pcl::PointCloud<pcl::PointXYZ>& cloud)
{
pcl::io::loadPCDFile(fname, cloud);
// remove NAN points from the cloud
pcl::Indices indices;
pcl::removeNaNFromPointCloud(cloud, cloud, indices);
};
TEST(pairAlign, identity) TEST(pairAlign, identity)
{ {
......
...@@ -48,13 +48,6 @@ using namespace wolf; ...@@ -48,13 +48,6 @@ using namespace wolf;
std::string laser_root_dir = _WOLF_LASER_ROOT_DIR; std::string laser_root_dir = _WOLF_LASER_ROOT_DIR;
void loadData(std::string fname, pcl::PointCloud<pcl::PointXYZ>& cloud)
{
pcl::io::loadPCDFile(fname, cloud);
// remove NAN points from the cloud
pcl::Indices indices;
pcl::removeNaNFromPointCloud(cloud, cloud, indices);
};
class Test_ProcessorOdomIcp3D_yaml : public testing::Test class Test_ProcessorOdomIcp3D_yaml : public testing::Test
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment