initTree method in perception_pcl stack [closed]

asked 2012-04-15 08:09:11 -0500

CaptainTrunky gravatar image

Hi! I'm exploring ROS Fuerte Beta 1. Today I tried to compile filters nodelets in perception_pcl stack.

At first, I just copy /opt/ros/fuerte/stacks/perception_pcl to my working directory ~/ros. After it I added appropriate path to ROS_PACKAGE_PATH.

Then I uncomment all lines in ./pcl_ros/CMakeLists.txt and run make. I received next messages:

/home/crady/ros/perception_pcl/pcl_ros/src/pcl_ros/features/boundary.cpp: In member function ‘virtual void pcl_ros::BoundaryEstimation::computePublish(const PointCloudInConstPtr&, const PointCloudNConstPtr&, const PointCloudInConstPtr&, const IndicesPtr&)’:
/home/crady/ros/perception_pcl/pcl_ros/src/pcl_ros/features/boundary.cpp:59:45: error: ‘initTree’ was not declared in this scope
/home/crady/ros/perception_pcl/pcl_ros/src/pcl_ros/features/boundary.cpp:60:31: error: no matching function for call to ‘pcl::BoundaryEstimation<pcl::PointXYZ, pcl::Normal, pcl::Boundary>::setSearchMethod(pcl_ros::Feature::KdTreePtr&)’
/home/crady/ros/perception_pcl/pcl_ros/src/pcl_ros/features/boundary.cpp:60:31: note: candidate is:
/opt/ros/fuerte/include/pcl-1.5/pcl/features/feature.h:155:7: note: void pcl::Feature<PointInT, PointOutT>::setSearchMethod(const KdTreePtr&) [with PointInT = pcl::PointXYZ, PointOutT = pcl::Boundary, pcl::Feature<PointInT, PointOutT>::KdTreePtr = boost::shared_ptr<pcl::search::Search<pcl::PointXYZ> >]
/opt/ros/fuerte/include/pcl-1.5/pcl/features/feature.h:155:7: note:   no known conversion for argument 1 from ‘pcl_ros::Feature::KdTreePtr {aka boost::shared_ptr<pcl::KdTree<pcl::PointXYZ> >}’ to ‘const KdTreePtr& {aka const boost::shared_ptr<pcl::search::Search<pcl::PointXYZ> >&}’
make[3]: *** [CMakeFiles/pcl_ros_features.dir/src/pcl_ros/features/boundary.o] Error 1

It is very simple to fix bug with KDTrees (just change namespace). But what should I to do with initTree(...) method? Is there simple way to fix it, or I should to write bug report and wait?

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by tfoote
close date 2014-07-03 18:48:19.163524


Hi @CaptainTrunky. I have the same problem. Were you able to fix this issue? I have posted a new question here. It would be great if you could let me know how to fix this. Thank you.

harsha gravatar imageharsha ( 2012-11-08 05:03:14 -0500 )edit

Hello! No, I didn't. I assume, that this error related to my following post - Good luck!

CaptainTrunky gravatar imageCaptainTrunky ( 2012-11-09 04:32:06 -0500 )edit