thillRobot / seam_detection

ROS package for weld seam detection using pointcloud data
GNU General Public License v3.0
13 stars 3 forks source link

Segmentation Fault (core dumped) using cad_cloud #1

Open rashelton42 opened 3 years ago

rashelton42 commented 3 years ago

Entire code shown below. Once I brought in the .ply file for the intersection, I copied and pasted it into the ply_images folder - this may have something to do with not being able to open the .PLY file



rob@rob-VirtualBox:~/seam_detection$ rosrun seam_detection cad_cloud -n_samples 100000 -leaf_size 0.001 -write_normals 1 ply_images/true_round_seam.ply pcd_images/true_round_seam.pcd
Convert a CAD model to a point cloud using uniform sampling. For more information, use: /home/rob/catkin_ws/devel/lib/seam_detection/cad_cloud -h
Warning: In /build/vtk6-VHOYAG/vtk6-6.3.0+dfsg1/IO/PLY/vtkPLYReader.cxx, line 124
vtkPLYReader (0x55956f451da0): Could not open PLY file

ERROR: In /build/vtk6-VHOYAG/vtk6-6.3.0+dfsg1/Common/ExecutionModel/vtkExecutive.cxx, line 784
vtkCompositeDataPipeline (0x55956f4a2900): Algorithm vtkPLYReader(0x55956f451da0) returned failure for request: vtkInformation (0x55956f4a4d80)
  Debug: Off
  Modified Time: 147
  Reference Count: 1
  Registered Events: (none)
  Request: REQUEST_DATA
  FROM_OUTPUT_PORT: 0
  ALGORITHM_AFTER_FORWARD: 1
  FORWARD_DIRECTION: 0

Segmentation fault (core dumped)```
thillRobot commented 3 years ago

I think vtkPLYReader (0x55956f451da0): Could not open PLY file is the main issue. It looks like the node cannot access the files.