Skip to content

[pcl::PCDReader::read] Could not find file . #6132

@BoBoINVICTUS

Description

@BoBoINVICTUS

My code is as follows:
typedef pcl::PointCloudpcl::PointXYZ pointcloud;
pointcloud::Ptr source(new pointcloud);
pointcloud::Ptr target(new pointcloud);
if (pcl::io::loadPCDFilepcl::PointXYZ("1.pcd", *source) == -1) {
PCL_ERROR("Couldn't read file 1.pcd \n");
return -1;
}
pcl::io::loadPCDFilepcl::PointXYZ("1.pcd", *source);
pcl::io::loadPCDFilepcl::PointXYZ("2.pcd", *target);
It compiles, but the following error occurs when reading the PCD file:
image
I tried to change to an absolute path, but I still couldn't read the PCD file. Can you tell me why?

  • OS: [Windows11]
  • Compiler: [:Visual Studio 2022]
  • PCL Version [1.14.1]

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions