Robotics StackExchange | Archived questions

initTree method in perception_pcl stack

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/perceptionpcl to my working directory ~/ros. After it I added appropriate path to ROSPACKAGE_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?

Asked by CaptainTrunky on 2012-04-15 08:09:11 UTC

Comments

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.

Asked by harsha on 2012-11-08 06:03:14 UTC

Hello! No, I didn't. I assume, that this error related to my following post - http://answers.ros.org/question/32039/error-while-loading-nodelet-normal_estimation/ Good luck!

Asked by CaptainTrunky on 2012-11-09 05:32:06 UTC

Answers