ROS fuerte PCL features, surface and segmentation libraries
Hi everyone,
I started using fuerte on 12.04 and face this problem while migrating code from electric on 10.04. When I try to launch nodelets of type pcl/NormalEstimation and pcl/SACSegmentationFromNormals, I get errors saying libpcl_ros_features.so and libpcl_ros_segmentation.so cannot be found. I wasn't able to find these shared objects at /opt/ros/fuerte/stacks/perception_pcl/pcl_ros/lib/.
[ERROR] [1352391653.634193667]: Failed to load nodelet [/normal_estimation] of type [pcl/NormalEstimation]: Failed to load library /opt/ros/fuerte/stacks/perception_pcl/pcl_ros/lib/libpcl_ros_features.so. Make sure that you are calling the PLUGINLIB_REGISTER_CLASS macro in the library code, and that names are consistent between this macro and your XML. Error string: Cannot load library: /opt/ros/fuerte/stacks/perception_pcl/pcl_ros/lib/libpcl_ros_features.so: cannot open shared object file: No such file or directory
[ERROR] [1352391655.206178336]: Failed to load nodelet [/cylinder_segmentation] of type [pcl/SACSegmentationFromNormals]: Failed to load library /opt/ros/fuerte/stacks/perception_pcl/pcl_ros/lib/libpcl_ros_segmentation.so. Make sure that you are calling the PLUGINLIB_REGISTER_CLASS macro in the library code, and that names are consistent between this macro and your XML. Error string: Cannot load library: /opt/ros/fuerte/stacks/perception_pcl/pcl_ros/lib/libpcl_ros_segmentation.so: cannot open shared object file: No such file or directory
I looked up ROS answers and found the first comment for this answer pointed the issue and the fix. Following that, I uncommented the lines corresponding to features, surface and segmentation in the CMakeLists for pcl_ros package. When I rosmake the package after these changes I get errors, with respect to the setSearchMethod in pcl. The fix mentioned here worked for my other packages. But not here. I get this error as mentioned in this question.
There is a ticket regarding this bug, here.
Any help on fixing this issue is much appreciated.
Thank you, Harsha
Are
libpcl_ros_features.so
andlibpcl_ros_segmentation.so
actually present in that directory after you buildpcl_ros
?Hi Joq. I looked into /opt/ros/fuerte/stacks/perception_pcl/pcl_ros/lib. They are not present in the directory. The libraries available are libgtest.a libgtest_main.a libpcl_ros_filters.so libpcl_ros_io.so libpcl_ros_tests.so libpcl_ros_tf.so.
When I try to build pcl_ros after uncommenting the lines for features and segmentation, the build fails.