ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

package install problem !! minecraft_ros

asked 2014-02-25 07:33:44 -0500

assil gravatar image

updated 2016-10-24 08:36:43 -0500

ngrennan gravatar image

Hi all, I'm trying to install this package: minecraft-ros

But it fails :( showing me this error when i execute make:

/opt/ros/hydro/2schematic/build$ make
[ 33%] Built target rgbd2schematic
[ 66%] Built target octomap2schematic
[ 83%] Building CXX object CMakeFiles/pcd2schematic.dir/src/pcd_converter.cpp.o
/opt/ros/hydro/2schematic/src/pcd_converter.cpp: In member function ‘virtual bool rgbd_2_schematic::PcdConverter::convertData(rgbd_2_schematic::Schematic&)’:
/opt/ros/hydro/2schematic/src/pcd_converter.cpp:120:42: error: no matching function for call to ‘getMinMax3D(rgbd_2_schematic::PointCloudT&, rgbd_2_schematic::PointT&, rgbd_2_schematic::PointT&)’
/opt/ros/hydro/2schematic/src/pcd_converter.cpp:120:42: note: candidates are:
/usr/include/pcl-1.7/pcl/filters/voxel_grid.h:58:3: note: void pcl::getMinMax3D(const PCLPointCloud2ConstPtr&, int, int, int, Eigen::Vector4f&, Eigen::Vector4f&)
/usr/include/pcl-1.7/pcl/filters/voxel_grid.h:58:3: note:   candidate expects 6 arguments, 3 provided
/usr/include/pcl-1.7/pcl/filters/voxel_grid.h:76:3: note: void pcl::getMinMax3D(const PCLPointCloud2ConstPtr&, int, int, int, const string&, float, float, Eigen::Vector4f&, Eigen::Vector4f&, bool)
/usr/include/pcl-1.7/pcl/filters/voxel_grid.h:76:3: note:   candidate expects 10 arguments, 3 provided
/usr/include/pcl-1.7/pcl/filters/voxel_grid.h:143:3: note: template<class PointT> void pcl::getMinMax3D(const typename pcl::PointCloud<PointT>::ConstPtr&, const string&, float, float, Eigen::Vector4f&, Eigen::Vector4f&, bool)
/usr/include/pcl-1.7/pcl/filters/voxel_grid.h:160:3: note: template<class PointT> void pcl::getMinMax3D(const typename pcl::PointCloud<PointT>::ConstPtr&, const std::vector<int>&, const string&, float, float, Eigen::Vector4f&, Eigen::Vector4f&, bool)
make[2]: *** [CMakeFiles/pcd2schematic.dir/src/pcd_converter.cpp.o] Error 1
make[1]: *** [CMakeFiles/pcd2schematic.dir/all] Error 2
make: *** [all] Error 2

CAN YOU HELP ME PLEASE, I NEED HELP !!

thx in advance ..

edit retag flag offensive close merge delete

Comments

Where did you get this package? It says: no matching function for call to ‘getMinMax3D.. And then it gives you some ideas to call the "getMinMax3D" right. If you want just change the code at pcd_converter.cpp:120:42 to fix this with one of the suggestions.

AbuIbra gravatar image AbuIbra  ( 2014-02-25 09:55:14 -0500 )edit

I get it from here: https://code.google.com/p/minecraft-ros/wiki/Install I changed the code at pcd_converter as he said but it doesn't function. Any other suggestion please !

assil gravatar image assil  ( 2014-02-26 21:45:47 -0500 )edit

1 Answer

Sort by » oldest newest most voted
1

answered 2014-04-02 12:03:04 -0500

jonathanbyrn gravatar image

Hey, The problem is that it is linking the wrong pcl library. pcd_converter is looking for getMinMax3D and it is looking in pcl/filters/voxel_grid.h. The function that takes a point cloud and two points is in pcl/common/common.h

to fix this problem edit include/pcd_converter.h and add: #include <pcl common="" common.h="">

then run cmake again and it should build correctly

hope this helps!

edit flag offensive delete link more

Question Tools

Stats

Asked: 2014-02-25 07:33:44 -0500

Seen: 451 times

Last updated: Apr 02 '14