hmz-15 / Interactive-Scene-Reconstruction

Reconstructing Interactive 3D Scenes for Simulating Robot Autonomy
BSD 3-Clause "New" or "Revised" License
126 stars 17 forks source link

Error compiling perception_ros #5

Closed canglangzhige closed 2 years ago

canglangzhige commented 2 years ago

Error compiling perception_ros: image Some people say that both opencv and pcl define "flann", and the function of opencv is called here instead of pcl. What should I do?

canglangzhige commented 2 years ago

pcl_catkin is version 1.10, flann is version 1.9, and flann version 1.10 is not found.

canglangzhige commented 2 years ago

In "perception_ros/include/common.h" I found that you have already paid attention to this problem. But why do I still have this problem when building? image

hmz-15 commented 2 years ago

I didn't reproduce the error; but I suppose this is due to some package conflicts. Could you try the things below:

  1. Use catkin clean to clean all the built files and build the single package perception_ros with catkin build perception_ros
  2. If it still doesn't work, check whether you have standalone flann or pcl packages installed system-wise. We expect you have opencv installed; while we provice pcl_catkin as explicit dependency.