We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
environment: ubuntu: 18.04 pcl: 1.11.1 ros : melodic
I do not konw why aderived class cannot be rolled over to a base class?
src/ndt_omp/apps/align.cpp:122:55: error: no matching function for call to ‘align(pclomp::GeneralizedIterativeClosestPoint<pcl::PointXYZ, pcl::PointXYZ>::Ptr&, pcl::PointCloudpcl::PointXYZ::Ptr&, pcl::PointCloudpcl::PointXYZ::Ptr&)’ aligned = align(gicp_omp, target_cloud, source_cloud); ^ ~/project/testhdl/src/ndt_omp/apps/align.cpp:15:37: note: candidate: pcl::PointCloudpcl::PointXYZ::Ptr align(pcl::Registration<pcl::PointXYZ, pcl::PointXYZ>::Ptr, pcl::PointCloudpcl::PointXYZ::Ptr&, pcl::PointCloudpcl::PointXYZ::Ptr&) pcl::PointCloudpcl::PointXYZ::Ptr align(pcl::Registration<pcl::PointXYZ, pcl::PointXYZ>::Ptr registration, pcl::PointCloudpcl::PointXYZ::Ptr& target_cloud, pcl::PointCloudpcl::PointXYZ::Ptr& source_cloud ) { ^~~~~ ~/project/testhdl/src/ndt_omp/apps/align.cpp:15:37: note: no known conversion for argument 1 from ‘pclomp::GeneralizedIterativeClosestPoint<pcl::PointXYZ, pcl::PointXYZ>::Ptr {aka boost::shared_ptr<pclomp::GeneralizedIterativeClosestPoint<pcl::PointXYZ, pcl::PointXYZ> >}’ to ‘pcl::Registration<pcl::PointXYZ, pcl::PointXYZ>::Ptr {aka std::shared_ptr<pcl::Registration<pcl::PointXYZ, pcl::PointXYZ> >}’ In file included from /usr/include/boost/config/no_tr1/memory.hpp:21:0, from /usr/include/boost/smart_ptr/shared_ptr.hpp:23, from /usr/include/boost/shared_ptr.hpp:17, from /opt/ros/melodic/include/ros/forwards.h:37, from /opt/ros/melodic/include/ros/common.h:37, from /opt/ros/melodic/include/ros/ros.h:43, from ~/project/testhdl/src/ndt_omp/apps/align.cpp:2: /usr/include/c++/7/memory:114:1: note: candidate: void* std::align(std::size_t, std::size_t, void*&, std::size_t&) align(size_t __align, size_t __size, void*& __ptr, size_t& __space) noexcept ^~~~~ /usr/include/c++/7/memory:114:1: note: candidate expects 4 arguments, 3 provided ~/project/testhdl/src/ndt_omp/apps/align.cpp:145:58: error: no matching function for call to ‘align(pclomp::NormalDistributionsTransform<pcl::PointXYZ, pcl::PointXYZ>::Ptr&, pcl::PointCloudpcl::PointXYZ::Ptr&, pcl::PointCloudpcl::PointXYZ::Ptr&)’ aligned = align(ndt_omp, target_cloud, source_cloud); ^ ~/project/testhdl/src/ndt_omp/apps/align.cpp:15:37: note: candidate: pcl::PointCloudpcl::PointXYZ::Ptr align(pcl::Registration<pcl::PointXYZ, pcl::PointXYZ>::Ptr, pcl::PointCloudpcl::PointXYZ::Ptr&, pcl::PointCloudpcl::PointXYZ::Ptr&) pcl::PointCloudpcl::PointXYZ::Ptr align(pcl::Registration<pcl::PointXYZ, pcl::PointXYZ>::Ptr registration, pcl::PointCloudpcl::PointXYZ::Ptr& target_cloud, pcl::PointCloudpcl::PointXYZ::Ptr& source_cloud ) { ^~~~~ ~/project/testhdl/src/ndt_omp/apps/align.cpp:15:37: note: no known conversion for argument 1 from ‘pclomp::NormalDistributionsTransform<pcl::PointXYZ, pcl::PointXYZ>::Ptr {aka boost::shared_ptr<pclomp::NormalDistributionsTransform<pcl::PointXYZ, pcl::PointXYZ> >}’ to ‘pcl::Registration<pcl::PointXYZ, pcl::PointXYZ>::Ptr {aka std::shared_ptr<pcl::Registration<pcl::PointXYZ, pcl::PointXYZ> >}’ In file included from /usr/include/boost/config/no_tr1/memory.hpp:21:0, from /usr/include/boost/smart_ptr/shared_ptr.hpp:23, from /usr/include/boost/shared_ptr.hpp:17, from /opt/ros/melodic/include/ros/forwards.h:37, from /opt/ros/melodic/include/ros/common.h:37, from /opt/ros/melodic/include/ros/ros.h:43, from ~/project/testhdl/src/ndt_omp/apps/align.cpp:2: /usr/include/c++/7/memory:114:1: note: candidate: void* std::align(std::size_t, std::size_t, void*&, std::size_t&) align(size_t __align, size_t __size, void*& __ptr, size_t& __space) noexcept ^~~~~ /usr/include/c++/7/memory:114:1: note: candidate expects 4 arguments, 3 provided ndt_omp/CMakeFiles/align.dir/build.make:62: recipe for target 'ndt_omp/CMakeFiles/align.dir/apps/align.cpp.o' failed
The text was updated successfully, but these errors were encountered:
Did you solve this problem? I have same error :(
Sorry, something went wrong.
No branches or pull requests
environment:
ubuntu: 18.04
pcl: 1.11.1
ros : melodic
I do not konw why aderived class cannot be rolled over to a base class?
src/ndt_omp/apps/align.cpp:122:55: error: no matching function for call to ‘align(pclomp::GeneralizedIterativeClosestPoint<pcl::PointXYZ, pcl::PointXYZ>::Ptr&, pcl::PointCloudpcl::PointXYZ::Ptr&, pcl::PointCloudpcl::PointXYZ::Ptr&)’
aligned = align(gicp_omp, target_cloud, source_cloud);
^
~/project/testhdl/src/ndt_omp/apps/align.cpp:15:37: note: candidate: pcl::PointCloudpcl::PointXYZ::Ptr align(pcl::Registration<pcl::PointXYZ, pcl::PointXYZ>::Ptr, pcl::PointCloudpcl::PointXYZ::Ptr&, pcl::PointCloudpcl::PointXYZ::Ptr&)
pcl::PointCloudpcl::PointXYZ::Ptr align(pcl::Registration<pcl::PointXYZ, pcl::PointXYZ>::Ptr registration, pcl::PointCloudpcl::PointXYZ::Ptr& target_cloud, pcl::PointCloudpcl::PointXYZ::Ptr& source_cloud ) {
^~~~~
~/project/testhdl/src/ndt_omp/apps/align.cpp:15:37: note: no known conversion for argument 1 from ‘pclomp::GeneralizedIterativeClosestPoint<pcl::PointXYZ, pcl::PointXYZ>::Ptr {aka boost::shared_ptr<pclomp::GeneralizedIterativeClosestPoint<pcl::PointXYZ, pcl::PointXYZ> >}’ to ‘pcl::Registration<pcl::PointXYZ, pcl::PointXYZ>::Ptr {aka std::shared_ptr<pcl::Registration<pcl::PointXYZ, pcl::PointXYZ> >}’
In file included from /usr/include/boost/config/no_tr1/memory.hpp:21:0,
from /usr/include/boost/smart_ptr/shared_ptr.hpp:23,
from /usr/include/boost/shared_ptr.hpp:17,
from /opt/ros/melodic/include/ros/forwards.h:37,
from /opt/ros/melodic/include/ros/common.h:37,
from /opt/ros/melodic/include/ros/ros.h:43,
from ~/project/testhdl/src/ndt_omp/apps/align.cpp:2:
/usr/include/c++/7/memory:114:1: note: candidate: void* std::align(std::size_t, std::size_t, void*&, std::size_t&)
align(size_t __align, size_t __size, void*& __ptr, size_t& __space) noexcept
^~~~~
/usr/include/c++/7/memory:114:1: note: candidate expects 4 arguments, 3 provided
~/project/testhdl/src/ndt_omp/apps/align.cpp:145:58: error: no matching function for call to ‘align(pclomp::NormalDistributionsTransform<pcl::PointXYZ, pcl::PointXYZ>::Ptr&, pcl::PointCloudpcl::PointXYZ::Ptr&, pcl::PointCloudpcl::PointXYZ::Ptr&)’
aligned = align(ndt_omp, target_cloud, source_cloud);
^
~/project/testhdl/src/ndt_omp/apps/align.cpp:15:37: note: candidate: pcl::PointCloudpcl::PointXYZ::Ptr align(pcl::Registration<pcl::PointXYZ, pcl::PointXYZ>::Ptr, pcl::PointCloudpcl::PointXYZ::Ptr&, pcl::PointCloudpcl::PointXYZ::Ptr&)
pcl::PointCloudpcl::PointXYZ::Ptr align(pcl::Registration<pcl::PointXYZ, pcl::PointXYZ>::Ptr registration, pcl::PointCloudpcl::PointXYZ::Ptr& target_cloud, pcl::PointCloudpcl::PointXYZ::Ptr& source_cloud ) {
^~~~~
~/project/testhdl/src/ndt_omp/apps/align.cpp:15:37: note: no known conversion for argument 1 from ‘pclomp::NormalDistributionsTransform<pcl::PointXYZ, pcl::PointXYZ>::Ptr {aka boost::shared_ptr<pclomp::NormalDistributionsTransform<pcl::PointXYZ, pcl::PointXYZ> >}’ to ‘pcl::Registration<pcl::PointXYZ, pcl::PointXYZ>::Ptr {aka std::shared_ptr<pcl::Registration<pcl::PointXYZ, pcl::PointXYZ> >}’
In file included from /usr/include/boost/config/no_tr1/memory.hpp:21:0,
from /usr/include/boost/smart_ptr/shared_ptr.hpp:23,
from /usr/include/boost/shared_ptr.hpp:17,
from /opt/ros/melodic/include/ros/forwards.h:37,
from /opt/ros/melodic/include/ros/common.h:37,
from /opt/ros/melodic/include/ros/ros.h:43,
from ~/project/testhdl/src/ndt_omp/apps/align.cpp:2:
/usr/include/c++/7/memory:114:1: note: candidate: void* std::align(std::size_t, std::size_t, void*&, std::size_t&)
align(size_t __align, size_t __size, void*& __ptr, size_t& __space) noexcept
^~~~~
/usr/include/c++/7/memory:114:1: note: candidate expects 4 arguments, 3 provided
ndt_omp/CMakeFiles/align.dir/build.make:62: recipe for target 'ndt_omp/CMakeFiles/align.dir/apps/align.cpp.o' failed
The text was updated successfully, but these errors were encountered: