no matching function for call to 'velodyne_rawdata::RawData::unpack'

asked 2021-02-15 23:48:37 -0500

Mai Bui gravatar image

updated 2021-02-15 23:51:54 -0500

Hello, I tried to install the software here but failed. Could you please see the error below and help?

The system info is below: Python 3.8.5 ROS version: kinetic PyTorch: 1.7.1 OpenCV: 2.4.9.1 Linux: Ubuntu 16.04

Base path: /home/mb/Documents/Point-cloud-compression-by-RNN-master/tools
Source space: /home/mb/Documents/Point-cloud-compression-by-RNN-master/tools/src
Build space: /home/mb/Documents/Point-cloud-compression-by-RNN-master/tools/build
Devel space: /home/mb/Documents/Point-cloud-compression-by-RNN-master/tools/devel
Install space: /home/mb/Documents/Point-cloud-compression-by-RNN-master/tools/install

Running command: "make cmake_check_build_system" in "/home/mb/Documents/Point-cloud-compression-by-RNN-master/tools/build"

Running command: "make -j8 -l8" in "/home/mb/Documents/Point-cloud-compression-by-RNN-master/tools/build"

[ 0%] Built target std_msgs_generate_messages_eus
[ 0%] Built target std_msgs_generate_messages_lisp
[ 0%] Built target std_msgs_generate_messages_nodejs
[ 0%] Built target std_msgs_generate_messages_cpp
[ 0%] Built target std_msgs_generate_messages_py
[ 5%] Building CXX object velodyne2image/CMakeFiles/local_calibration.dir/src/local_calibration.cpp.o
[ 11%] Building CXX object velodyne2image/CMakeFiles/image2bag.dir/src/image2bag.cpp.o
[ 11%] Built target _velodyne2image_generate_messages_check_deps_CompressedPacket
[ 23%] Built target image2packet
[ 35%] Built target packet2image
[ 47%] Built target velodyne2image_generate_messages_eus
[ 58%] Built target velodyne2image_generate_messages_nodejs
[ 58%] Built target velodyne2image_generate_messages_lisp
[ 70%] Built target velodyne2image_generate_messages_py
[ 76%] Built target velodyne2image_generate_messages_cpp
[ 88%] Built target singlePCDextraction
[ 88%] Built target velodyne2image_generate_messages /home/mb/Documents/Point-cloud-compression-by-RNN-master/tools/src/velodyne2image/src/local_calibration.cpp: In function ‘int main(int, char)’: /home/mb/Documents/Point-cloud-compression-by-RNN-master/tools/src/velodyne2image/src/local_calibration.cpp:100:48: error: no matching function for call to ‘velodyne_rawdata::RawData::unpack(const value_type&, pcl::PointCloud<velodyne_pointcloud::pointxyzir>&)’ data_->unpack(scan->packets[i], outMsg);
^ In file included from /home/mb/Documents/Point-cloud-compression-by-RNN-master/tools/src/velodyne2image/src/local_calibration.cpp:16:0: /opt/ros/kinetic/include/velodyne_pointcloud/rawdata.h:150:10: note: candidate: void velodyne_rawdata::RawData::unpack(const VelodynePacket&, velodyne_rawdata::DataContainerBase&) void unpack(const velodyne_msgs::VelodynePacket &pkt, DataContainerBase& data);
^ /opt/ros/kinetic/include/velodyne_pointcloud/rawdata.h:150:10: note: no known conversion for argument 2 from ‘pcl::PointCloud<velodyne_pointcloud::pointxyzir>’ to ‘velodyne_rawdata::DataContainerBase&’ /home/mb/Documents/Point-cloud-compression-by-RNN-master/tools/src/velodyne2image/src/image2bag.cpp: In member function ‘bool velodyne_driver::VelodyneDriver::poll_bag(cv::Mat, cv::Mat, rosbag::Bag&, ros::NodeHandle)’: /home/mb/Documents/Point-cloud-compression-by-RNN-master/tools/src/velodyne2image/src/image2bag.cpp:335:48: error: no matching function for call to ‘velodyne_rawdata::RawData::unpack(__gnu_cxx::__alloc_traits<std::allocator<velodyne_msgs::velodynepacket_<std::allocator<void> > > >::value_type&, pcl::PointCloud<velodyne_pointcloud::pointxyzir>&)’ data_->unpack(scan->packets[i], *outMsg);
^ In file included from /home/mb/Documents/Point-cloud-compression-by-RNN-master/tools/src/velodyne2image/src/image2bag.cpp:19:0: /opt/ros/kinetic/include/velodyne_pointcloud/rawdata.h:150:10: note: candidate: void velodyne_rawdata::RawData::unpack(const VelodynePacket&, velodyne_rawdata::DataContainerBase&) void unpack(const velodyne_msgs::VelodynePacket &pkt, DataContainerBase& data);
^ /opt/ros/kinetic/include/velodyne_pointcloud/rawdata.h:150:10: note: no known conversion for argument 2 from ‘pcl::PointCloud<velodyne_pointcloud::pointxyzir>’ to ‘velodyne_rawdata::DataContainerBase&’ velodyne2image/CMakeFiles/local_calibration.dir/build.make:62: recipe for target 'velodyne2image/CMakeFiles/local_calibration.dir/src/local_calibration.cpp.o' failed
make[2]: *
[velodyne2image/CMakeFiles/local_calibration.dir/src/local_calibration.cpp.o] Error 1 CMakeFiles/Makefile2:962: recipe for target 'velodyne2image/CMakeFiles/local_calibration.dir/all' failed
make[1]:
[velodyne2image/CMakeFiles/local_calibration.dir/all] Error 2
make[1]:
Waiting for unfinished jobs....
velodyne2image/CMakeFiles/image2bag.dir/build.make:62: recipe for target ...
(more)

edit retag flag offensive close merge delete