Colcon build Fail!
Marouan-22 opened this issue · 29 comments
Perhaps you forgot to add the --recursive option when you did the git clone.
In that case, run git submodule update --init --recursive
in the lidarslam_ros2 directory.
Thanks for the super fast reply!!!
I have builded it again, than it gives me some spam error like this:
In file included from /usr/include/eigen3/Eigen/Core:271,
from /usr/include/pcl-1.12/pcl/memory.h:48,
from /usr/include/pcl-1.12/pcl/pcl_base.h:46,
from /usr/include/pcl-1.12/pcl/filters/filter.h:42,
from /usr/include/pcl-1.12/pcl/filters/voxel_grid.h:42,
from /home/ubuntu/ros2_ws/src/lidarslam_ros2/Thirdparty/ndt_omp_ros2/include/pclomp/voxel_grid_covariance_omp.h:42,
from /home/ubuntu/ros2_ws/src/lidarslam_ros2/Thirdparty/ndt_omp_ros2/src/pclomp/voxel_grid_covariance_omp.cpp:1:
/usr/include/eigen3/Eigen/src/Core/DenseCoeffsBase.h: In instantiation of ‘class Eigen::DenseCoeffsBase<Eigen::CwiseBinaryOp<Eigen::internal::scalar_difference_op<double, double>, const Eigen::Matrix<double, 3, 3>, const Eigen::CwiseBinaryOp<Eigen::internal::scalar_product_op<double, double>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op, const Eigen::Matrix<double, 3, 3> >, const Eigen::Product<Eigen::Matrix<double, 3, 1>, Eigen::Transpose<Eigen::Matrix<double, 3, 1> >, 0> > >, 0>’:
/usr/include/eigen3/Eigen/src/Core/DenseBase.h:41:34: required from ‘class Eigen::DenseBase<Eigen::CwiseBinaryOp<Eigen::internal::scalar_difference_op<double, double>, const Eigen::Matrix<double, 3, 3>, const Eigen::CwiseBinaryOp<Eigen::internal::scalar_product_op<double, double>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op, const Eigen::Matrix<double, 3, 3> >, const Eigen::Product<Eigen::Matrix<double, 3, 1>, Eigen::Transpose<Eigen::Matrix<double, 3, 1> >, 0> > > >’
/usr/include/eigen3/Eigen/src/Core/MatrixBase.h:48:34: required from ‘class Eigen::MatrixBase<Eigen::CwiseBinaryOp<Eigen::internal::scalar_difference_op<double, double>, const Eigen::Matrix<double, 3, 3>, const Eigen::CwiseBinaryOp<Eigen::internal::scalar_product_op<double, double>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op, const Eigen::Matrix<double, 3, 3> >, const Eigen::Product<Eigen::Matrix<double, 3, 1>, Eigen::Transpose<Eigen::Matrix<double, 3, 1> >, 0> > > >’
/usr/include/eigen3/Eigen/src/Core/CwiseBinaryOp.h:148:7: required from ‘class Eigen::CwiseBinaryOpImpl<Eigen::internal::scalar_difference_op<double, double>, const Eigen::Matrix<double, 3, 3>, const Eigen::CwiseBinaryOp<Eigen::internal::scalar_product_op<double, double>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op, const Eigen::Matrix<double, 3, 3> >, const Eigen::Product<Eigen::Matrix<double, 3, 1>, Eigen::Transpose<Eigen::Matrix<double, 3, 1> >, 0> >, Eigen::Dense>’
/usr/include/eigen3/Eigen/src/Core/CwiseBinaryOp.h:77:7: required from ‘class Eigen::CwiseBinaryOp<Eigen::internal::scalar_difference_op<double, double>, const Eigen::Matrix<double, 3, 3>, const Eigen::CwiseBinaryOp<Eigen::internal::scalar_product_op<double, double>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op, const Eigen::Matrix<double, 3, 3> >, const Eigen::Product<Eigen::Matrix<double, 3, 1>, Eigen::Transpose<Eigen::Matrix<double, 3, 1> >, 0> > >’
/home/ubuntu/ros2_ws/src/lidarslam_ros2/Thirdparty/ndt_omp_ros2/include/pclomp/voxel_grid_covariance_omp_impl.hpp:329:30: required from ‘void pclomp::VoxelGridCovariance::applyFilter(pclomp::VoxelGridCovariance::PointCloud&) [with PointT = pcl::PointXYZ; pclomp::VoxelGridCovariance::PointCloud = pcl::PointCloudpcl::PointXYZ]’
/home/ubuntu/ros2_ws/src/lidarslam_ros2/Thirdparty/ndt_omp_ros2/src/pclomp/voxel_grid_covariance_omp.cpp:4:24: required from here
/usr/include/eigen3/Eigen/src/Core/DenseCoeffsBase.h:59:17: error: ‘rows’ has not been declared in ‘Eigen::DenseCoeffsBase<Eigen::CwiseBinaryOp<Eigen::internal::scalar_difference_op<double, double>, const Eigen::Matrix<double, 3, 3>, const Eigen::CwiseBinaryOp<Eigen::internal::scalar_product_op<double, double>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op, const Eigen::Matrix<double, 3, 3> >, const Eigen::Product<Eigen::Matrix<double, 3, 1>, Eigen::Transpose<Eigen::Matrix<double, 3, 1> >, 0> > >, 0>::Base’
59 | using Base::rows;
| ^~~~
/usr/include/eigen3/Eigen/src/Core/DenseCoeffsBase.h:60:17: error: ‘cols’ has not been declared in ‘Eigen::DenseCoeffsBase<Eigen::CwiseBinaryOp<Eigen::internal::scalar_difference_op<double, double>, const Eigen::Matrix<double, 3, 3>, const Eigen::CwiseBinaryOp<Eigen::internal::scalar_product_op<double, double>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op, const Eigen::Matrix<double, 3, 3> >, const Eigen::Product<Eigen::Matrix<double, 3, 1>, Eigen::Transpose<Eigen::Matrix<double, 3, 1> >, 0> > >, 0>::Base’
60 | using Base::cols;
| ^~~~
/usr/include/eigen3/Eigen/src/Core/DenseCoeffsBase.h:61:17: error: ‘size’ has not been declared in ‘Eigen::DenseCoeffsBase<Eigen::CwiseBinaryOp<Eigen::internal::scalar_difference_op<double, double>, const Eigen::Matrix<double, 3, 3>, const Eigen::CwiseBinaryOp<Eigen::internal::scalar_product_op<double, double>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op, const Eigen::Matrix<double, 3, 3> >, const Eigen::Product<Eigen::Matrix<double, 3, 1>, Eigen::Transpose<Eigen::Matrix<double, 3, 1> >, 0> > >, 0>::Base’
61 | using Base::size;
Is your ubuntu 22.04?
If so, you need to use the humble branch(https://github.com/rsasaki0109/lidarslam_ros2/tree/humble), not the default foxy branch(https://github.com/rsasaki0109/lidarslam_ros2).
it still does not do the trick but it gives me this:
In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/c++allocator.h:33,
from /usr/include/c++/11/bits/allocator.h:46,
from /usr/include/c++/11/string:41,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/istream:38,
from /usr/include/boost/random/additive_combine.hpp:19,
from /usr/include/boost/random.hpp:36,
from /usr/include/pcl-1.12/pcl/filters/boost.h:49,
from /home/ubuntu/ros2_ws/src/lidarslam_ros2/Thirdparty/ndt_omp_ros2/include/pclomp/voxel_grid_covariance_omp.h:41,
from /home/ubuntu/ros2_ws/src/lidarslam_ros2/Thirdparty/ndt_omp_ros2/src/pclomp/voxel_grid_covariance_omp.cpp:1:
/usr/include/c++/11/ext/new_allocator.h: In instantiation of ‘void __gnu_cxx::new_allocator<_Tp>::construct(_Up*, _Args&& ...) [with _Up = pcl::PCLPointField; _Args = {pcl::PCLPointField}; _Tp = pcl::PCLPointField]’:
/usr/include/c++/11/bits/alloc_traits.h:516:17: required from ‘static void std::allocator_traits<std::allocator<_CharT> >::construct(std::allocator_traits<std::allocator<_CharT> >::allocator_type&, _Up*, _Args&& ...) [with _Up = pcl::PCLPointField; _Args = {pcl::PCLPointField}; _Tp = pcl::PCLPointField; std::allocator_traits<std::allocator<_CharT> >::allocator_type = std::allocatorpcl::PCLPointField]’
/usr/include/c++/11/bits/stl_uninitialized.h:994:26: required from ‘void std::__relocate_object_a(_Tp*, _Up*, _Allocator&) [with _Tp = pcl::PCLPointField; _Up = pcl::PCLPointField; _Allocator = std::allocatorpcl::PCLPointField]’
/usr/include/c++/11/bits/stl_uninitialized.h:1032:26: required from ‘_ForwardIterator std::__relocate_a_1(_InputIterator, _InputIterator, _ForwardIterator, _Allocator&) [with _InputIterator = pcl::PCLPointField*; _ForwardIterator = pcl::PCLPointField*; _Allocator = std::allocatorpcl::PCLPointField]’
/usr/include/c++/11/bits/stl_uninitialized.h:1046:28: required from ‘_ForwardIterator std::__relocate_a(_InputIterator, _InputIterator, _ForwardIterator, _Allocator&) [with _InputIterator = pcl::PCLPointField*; _ForwardIterator = pcl::PCLPointField*; _Allocator = std::allocatorpcl::PCLPointField]’
/usr/include/c++/11/bits/stl_vector.h:456:26: required from ‘static std::vector<_Tp, _Alloc>::pointer std::vector<_Tp, _Alloc>::_S_do_relocate(std::vector<_Tp, _Alloc>::pointer, std::vector<_Tp, _Alloc>::pointer, std::vector<_Tp, _Alloc>::pointer, std::vector<_Tp, _Alloc>::_Tp_alloc_type&, std::true_type) [with _Tp = pcl::PCLPointField; _Alloc = std::allocatorpcl::PCLPointField; std::vector<_Tp, _Alloc>::pointer = pcl::PCLPointField*; std::vector<_Tp, _Alloc>::_Tp_alloc_type = std::vectorpcl::PCLPointField::_Tp_alloc_type; std::true_type = std::integral_constant<bool, true>]’
/usr/include/c++/11/bits/stl_vector.h:469:23: [ skipping 4 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ]
/usr/include/pcl-1.12/pcl/for_each_type.h:80:63: required from ‘static void pcl::for_each_type_impl::execute(F) [with Iterator = boost::mpl::v_iter<boost::mpl::vector<pcl::fields::x, pcl::fields::y, pcl::fields::z, pcl::fields::intensity>, 0>; LastIterator = boost::mpl::v_iter<boost::mpl::vector<pcl::fields::x, pcl::fields::y, pcl::fields::z, pcl::fields::intensity>, 4>; F = pcl::detail::FieldAdderpcl::PointXYZI]’
/usr/include/pcl-1.12/pcl/for_each_type.h:96:92: required from ‘void pcl::for_each_type(F) [with Sequence = boost::mpl::vector<pcl::fields::x, pcl::fields::y, pcl::fields::z, pcl::fields::intensity>; F = pcl::detail::FieldAdderpcl::PointXYZI]’
/usr/include/pcl-1.12/pcl/common/impl/io.hpp:103:68: required from ‘std::vectorpcl::PCLPointField pcl::getFields() [with PointT = pcl::PointXYZI]’
/usr/include/pcl-1.12/pcl/common/impl/io.hpp:66:30: required from ‘int pcl::getFieldIndex(const string&, std::vectorpcl::PCLPointField&) [with PointT = pcl::PointXYZI; std::string = std::__cxx11::basic_string]’
/home/ubuntu/ros2_ws/src/lidarslam_ros2/Thirdparty/ndt_omp_ros2/include/pclomp/voxel_grid_covariance_omp_impl.hpp:113:43: required from ‘void pclomp::VoxelGridCovariance::applyFilter(pclomp::VoxelGridCovariance::PointCloud&) [with PointT = pcl::PointXYZI; pclomp::VoxelGridCovariance::PointCloud = pcl::PointCloudpcl::PointXYZI]’
/home/ubuntu/ros2_ws/src/lidarslam_ros2/Thirdparty/ndt_omp_ros2/src/pclomp/voxel_grid_covariance_omp.cpp:5:24: required from here
/usr/include/c++/11/ext/new_allocator.h:162:11: error: no matching function for call to ‘operator new(sizetype, void*)’
162 | { ::new((void )__p) _Up(std::forward<_Args>(__args)...); }
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
: note: candidate: ‘void operator new(long unsigned int)’
: note: candidate expects 1 argument, 2 provided
In file included from /usr/include/flann/util/params.h:33,
from /usr/include/pcl-1.12/pcl/kdtree/kdtree_flann.h:44,
from /home/ubuntu/ros2_ws/src/lidarslam_ros2/Thirdparty/ndt_omp_ros2/include/pclomp/voxel_grid_covariance_omp.h:46,
from /home/ubuntu/ros2_ws/src/lidarslam_ros2/Thirdparty/ndt_omp_ros2/src/pclomp/voxel_grid_covariance_omp.cpp:1:
/usr/include/flann/util/any.h: In instantiation of ‘void flann::anyimpl::small_any_policy::copy_from_value(const void*, void**) [with T = const char*]’:
/usr/include/flann/util/any.h:65:18: required from here
/usr/include/flann/util/any.h:67:9: error: no matching function for call to ‘operator new(sizetype, void**&)’
67 | new (dest) T(* reinterpret_cast<T const*>(src));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
: note: candidate: ‘void* operator new(long unsigned int)’
: note: candidate expects 1 argument, 2 provided
In file included from /usr/include/pcl-1.12/pcl/kdtree/kdtree.h:44,
from /usr/include/pcl-1.12/pcl/kdtree/kdtree_flann.h:43,
from /home/ubuntu/ros2_ws/src/lidarslam_ros2/Thirdparty/ndt_omp_ros2/include/pclomp/voxel_grid_covariance_omp.h:46,
from /home/ubuntu/ros2_ws/src/lidarslam_ros2/Thirdparty/ndt_omp_ros2/src/pclomp/voxel_grid_covariance_omp.cpp:1:
/usr/include/pcl-1.12/pcl/point_representation.h: In instantiation of ‘static void pcl::DefaultFeatureRepresentation::NdCopyPointFunctor::Helper<Key, FieldT, NrDims>::copyPoint(const Pod&, float*, int&) [with Key = pcl::fields::f1; FieldT = float; int NrDims = 1; PointDefault = pcl::PPFSignature; pcl::DefaultFeatureRepresentation::NdCopyPointFunctor::Pod = pcl::PPFSignature]’:
/usr/include/pcl-1.12/pcl/point_representation.h:254:48: required from ‘void pcl::DefaultFeatureRepresentation::NdCopyPointFunctor::operator()() [with Key = pcl::fields::f1; PointDefault = pcl::PPFSignature]’
/usr/include/pcl-1.12/pcl/for_each_type.h:80:63: required from ‘static void pcl::for_each_type_impl::execute(F) [with Iterator = boost::mpl::v_iter<boost::mpl::vector<pcl::fields::f1, pcl::fields::f2, pcl::fields::f3, pcl::fields::f4, pcl::fields::alpha_m>, 0>; LastIterator = boost::mpl::v_iter<boost::mpl::vector<pcl::fields::f1, pcl::fields::f2, pcl::fields::f3, pcl::fields::f4, pcl::fields::alpha_m>, 5>; F = pcl::DefaultFeatureRepresentationpcl::PPFSignature::NdCopyPointFunctor]’
/usr/include/pcl-1.12/pcl/for_each_type.h:96:92: required from ‘void pcl::for_each_type(F) [with Sequence = boost::mpl::vector<pcl::fields::f1, pcl::fields::f2, pcl::fields::f3, pcl::fields::f4, pcl::fields::alpha_m>; F = pcl::DefaultFeatureRepresentationpcl::PPFSignature::NdCopyPointFunctor]’
/usr/include/pcl-1.12/pcl/point_representation.h:312:40: required from ‘void pcl::DefaultFeatureRepresentation::copyToFloatArray(const PointDefault&, float*) const [with PointDefault = pcl::PPFSignature]’
/usr/include/pcl-1.12/pcl/point_representation.h:310:7: required from here
/usr/include/pcl-1.12/pcl/point_representation.h:264:53: error: ‘value’ is not a member of ‘pcl::traits::offset<pcl::PPFSignature, pcl::fields::f1>’
264 | pcl::traits::offset<PointDefault, Key>::value;
| ^~~~~
/usr/include/pcl-1.12/pcl/point_representation.h: In instantiation of ‘static void pcl::DefaultFeatureRepresentation::NdCopyPointFunctor::Helper<Key, FieldT, NrDims>::copyPoint(const Pod&, float*, int&) [with Key = pcl::fields::f2; FieldT = float; int NrDims = 1; PointDefault = pcl::PPFSignature; pcl::DefaultFeatureRepresentation::NdCopyPointFunctor::Pod = pcl::PPFSignature]’:
/usr/include/pcl-1.12/pcl/point_representation.h:254:48: required from ‘void pcl::DefaultFeatureRepresentation::NdCopyPointFunctor::operator()() [with Key = pcl::fields::f2; PointDefault = pcl::PPFSignature]’
/usr/include/pcl-1.12/pcl/for_each_type.h:80:63: required from ‘static void pcl::for_each_type_impl::execute(F) [with Iterator = boost::mpl::v_iter<boost::mpl::vector<pcl::fields::f1, pcl::fields::f2, pcl::fields::f3, pcl::fields::f4, pcl::fields::alpha_m>, 1>; LastIterator = boost::mpl::v_iter<boost::mpl::vector<pcl::fields::f1, pcl::fields::f2, pcl::fields::f3, pcl::fields::f4, pcl::fields::alpha_m>, 5>; F = pcl::DefaultFeatureRepresentationpcl::PPFSignature::NdCopyPointFunctor]’
/usr/include/pcl-1.12/pcl/for_each_type.h:85:51: required from ‘static void pcl::for_each_type_impl::execute(F) [with Iterator = boost::mpl::v_iter<boost::mpl::vector<pcl::fields::f1, pcl::fields::f2, pcl::fields::f3, pcl::fields::f4, pcl::fields::alpha_m>, 0>; LastIterator = boost::mpl::v_iter<boost::mpl::vector<pcl::fields::f1, pcl::fields::f2, pcl::fields::f3, pcl::fields::f4, pcl::fields::alpha_m>, 5>; F = pcl::DefaultFeatureRepresentationpcl::PPFSignature::NdCopyPointFunctor]’
/usr/include/pcl-1.12/pcl/for_each_type.h:96:92: required from ‘void pcl::for_each_type(F) [with Sequence = boost::mpl::vector<pcl::fields::f1, pcl::fields::f2, pcl::fields::f3, pcl::fields::f4, pcl::fields::alpha_m>; F = pcl::DefaultFeatureRepresentationpcl::PPFSignature::NdCopyPointFunctor]’
/usr/include/pcl-1.12/pcl/point_representation.h:312:40: required from ‘void pcl::DefaultFeatureRepresentation::copyToFloatArray(const PointDefault&, float*) const [with PointDefault = pcl::PPFSignature]’
/usr/include/pcl-1.12/pcl/point_representation.h:310:7: required from here
/usr/include/pcl-1.12/pcl/point_representation.h:264:53: error: ‘value’ is not a member of ‘pcl::traits::offset<pcl::PPFSignature, pcl::fields::f2>’
/usr/include/pcl-1.12/pcl/point_representation.h: In instantiation of ‘static void pcl::DefaultFeatureRepresentation::NdCopyPointFunctor::Helper<Key, FieldT, NrDims>::copyPoint(const Pod&, float*, int&) [with Key = pcl::fields::f3; FieldT = float; int NrDims = 1; PointDefault = pcl::PPFSignature; pcl::DefaultFeatureRepresentation::NdCopyPointFunctor::Pod = pcl::PPFSignature]’:
/usr/include/pcl-1.12/pcl/point_representation.h:254:48: required from ‘void pcl::DefaultFeatureRepresentation::NdCopyPointFunctor::operator()() [with Key = pcl::fields::f3; PointDefault = pcl::PPFSignature]’
/usr/include/pcl-1.12/pcl/for_each_type.h:85:51: recursively required from ‘static void pcl::for_each_type_impl::execute(F) [with Iterator = boost::mpl::v_iter<boost::mpl::vector<pcl::fields::f1, pcl::fields::f2, pcl::fields::f3, pcl::fields::f4, pcl::fields::alpha_m>, 1>; LastIterator = boost::mpl::v_iter<boost::mpl::vector<pcl::fields::f1, pcl::fields::f2, pcl::fields::f3, pcl::fields::f4, pcl::fields::alpha_m>, 5>; F = pcl::DefaultFeatureRepresentationpcl::PPFSignature::NdCopyPointFunctor]’
/usr/include/pcl-1.12/pcl/for_each_type.h:85:51: required from ‘static void pcl::for_each_type_impl::execute(F) [with Iterator = boost::mpl::v_iter<boost::mpl::vector<pcl::fields::f1, pcl::fields::f2, pcl::fields::f3, pcl::fields::f4, pcl::fields::alpha_m>, 0>; LastIterator = boost::mpl::v_iter<boost::mpl::vector<pcl::fields::f1, pcl::fields::f2, pcl::fields::f3, pcl::fields::f4, pcl::fields::alpha_m>, 5>; F = pcl::DefaultFeatureRepresentationpcl::PPFSignature::NdCopyPointFunctor]’
/usr/include/pcl-1.12/pcl/for_each_type.h:96:92: required from ‘void pcl::for_each_type(F) [with Sequence = boost::mpl::vector<pcl::fields::f1, pcl::fields::f2, pcl::fields::f3, pcl::fields::f4, pcl::fields::alpha_m>; F = pcl::DefaultFeatureRepresentationpcl::PPFSignature::NdCopyPointFunctor]’
/usr/include/pcl-1.12/pcl/point_representation.h:312:40: required from ‘void pcl::DefaultFeatureRepresentation::copyToFloatArray(const PointDefault&, float*) const [with PointDefault = pcl::PPFSignature]’
/usr/include/pcl-1.12/pcl/point_representation.h:310:7: required from here
/usr/include/pcl-1.12/pcl/point_representation.h:264:53: error: ‘value’ is not a member of ‘pcl::traits::offset<pcl::PPFSignature, pcl::fields::f3>’
/usr/include/pcl-1.12/pcl/point_representation.h: In instantiation of ‘static void pcl::DefaultFeatureRepresentation::NdCopyPointFunctor::Helper<Key, FieldT, NrDims>::copyPoint(const Pod&, float*, int&) [with Key = pcl::fields::f4; FieldT = float; int NrDims = 1; PointDefault = pcl::PPFSignature; pcl::DefaultFeatureRepresentation::NdCopyPointFunctor::Pod = pcl::PPFSignature]’:
/usr/include/pcl-1.12/pcl/point_representation.h:254:48: required from ‘void pcl::DefaultFeatureRepresentation::NdCopyPointFunctor::operator()() [with Key = pcl::fields::f4; PointDefault = pcl::PPFSignature]’
/usr/include/pcl-1.12/pcl/for_each_type.h:85:51: recursively required from ‘static void pcl::for_each_type_impl::execute(F) [with Iterator = boost::mpl::v_iter<boost::mpl::vector<pcl::fields::f1, pcl::fields::f2, pcl::fields::f3, pcl::fields::f4, pcl::fields::alpha_m>, 1>; LastIterator = boost::mpl::v_iter<boost::mpl::vector<pcl::fields::f1, pcl::fields::f2, pcl::fields::f3, pcl::fields::f4, pcl::fields::alpha_m>, 5>; F = pcl::DefaultFeatureRepresentationpcl::PPFSignature::NdCopyPointFunctor]’
/usr/include/pcl-1.12/pcl/for_each_type.h:85:51: required from ‘static void pcl::for_each_type_impl::execute(F) [with Iterator = boost::mpl::v_iter<boost::mpl::vector<pcl::fields::f1, pcl::fields::f2, pcl::fields::f3, pcl::fields::f4, pcl::fields::alpha_m>, 0>; LastIterator = boost::mpl::v_iter<boost::mpl::vector<pcl::fields::f1, pcl::fields::f2, pcl::fields::f3, pcl::fields::f4, pcl::fields::alpha_m>, 5>; F = pcl::DefaultFeatureRepresentationpcl::PPFSignature::NdCopyPointFunctor]’
/usr/include/pcl-1.12/pcl/for_each_type.h:96:92: required from ‘void pcl::for_each_type(F) [with Sequence = boost::mpl::vector<pcl::fields::f1, pcl::fields::f2, pcl::fields::f3, pcl::fields::f4, pcl::fields::alpha_m>; F = pcl::DefaultFeatureRepresentationpcl::PPFSignature::NdCopyPointFunctor]’
/usr/include/pcl-1.12/pcl/point_representation.h:312:40: required from ‘void pcl::DefaultFeatureRepresentation::copyToFloatArray(const PointDefault&, float*) const [with PointDefault = pcl::PPFSignature]’
/usr/include/pcl-1.12/pcl/point_representation.h:310:7: required from here
/usr/include/pcl-1.12/pcl/point_representation.h:264:53: error: ‘value’ is not a member of ‘pcl::traits::offset<pcl::PPFSignature, pcl::fields::f4>’
/usr/include/pcl-1.12/pcl/point_representation.h: In instantiation of ‘static void pcl::DefaultFeatureRepresentation::NdCopyPointFunctor::Helper<Key, FieldT, NrDims>::copyPoint(const Pod&, float*, int&) [with Key = pcl::fields::alpha_m; FieldT = float; int NrDims = 1; PointDefault = pcl::PPFSignature; pcl::DefaultFeatureRepresentation::NdCopyPointFunctor::Pod = pcl::PPFSignature]’:
/usr/include/pcl-1.12/pcl/point_representation.h:254:48: required from ‘void pcl::DefaultFeatureRepresentation::NdCopyPointFunctor::operator()() [with Key = pcl::fields::alpha_m; PointDefault = pcl::PPFSignature]’
/usr/include/pcl-1.12/pcl/for_each_type.h:85:51: recursively required from ‘static void pcl::for_each_type_impl::execute(F) [with Iterator = boost::mpl::v_iter<boost::mpl::vector<pcl::fields::f1, pcl::fields::f2, pcl::fields::f3, pcl::fields::f4, pcl::fields::alpha_m>, 1>; LastIterator = boost::mpl::v_iter<boost::mpl::vector<pcl::fields::f1, pcl::fields::f2, pcl::fields::f3, pcl::fields::f4, pcl::fields::alpha_m>, 5>; F = pcl::DefaultFeatureRepresentationpcl::PPFSignature::NdCopyPointFunctor]’
/usr/include/pcl-1.12/pcl/for_each_type.h:85:51: required from ‘static void pcl::for_each_type_impl::execute(F) [with Iterator = boost::mpl::v_iter<boost::mpl::vector<pcl::fields::f1, pcl::fields::f2, pcl::fields::f3, pcl::fields::f4, pcl::fields::alpha_m>, 0>; LastIterator = boost::mpl::v_iter<boost::mpl::vector<pcl::fields::f1, pcl::fields::f2, pcl::fields::f3, pcl::fields::f4, pcl::fields::alpha_m>, 5>; F = pcl::DefaultFeatureRepresentationpcl::PPFSignature::NdCopyPointFunctor]’
/usr/include/pcl-1.12/pcl/for_each_type.h:96:92: required from ‘void pcl::for_each_type(F) [with Sequence = boost::mpl::vector<pcl::fields::f1, pcl::fields::f2, pcl::fields::f3, pcl::fields::f4, pcl::fields::alpha_m>; F = pcl::DefaultFeatureRepresentationpcl::PPFSignature::NdCopyPointFunctor]’
/usr/include/pcl-1.12/pcl/point_representation.h:312:40: required from ‘void pcl::DefaultFeatureRepresentation::copyToFloatArray(const PointDefault&, float*) const [with PointDefault = pcl::PPFSignature]’
/usr/include/pcl-1.12/pcl/point_representation.h:310:7: required from here
/usr/include/pcl-1.12/pcl/point_representation.h:264:53: error: ‘value’ is not a member of ‘pcl::traits::offset<pcl::PPFSignature, pcl::fields::alpha_m>’
gmake[2]: *** [CMakeFiles/ndt_omp.dir/build.make:76: CMakeFiles/ndt_omp.dir/src/pclomp/voxel_grid_covariance_omp.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:139: CMakeFiles/ndt_omp.dir/all] Error 2
gmake: *** [Makefile:146: all] Error 2
Failed <<< ndt_omp_ros2 [35.6s, exited with code 2]
Summary: 1 package finished [36.3s]
1 package failed: ndt_omp_ros2
1 package had stderr output: ndt_omp_ros2
3 packages not processed
Did you delete install/log/buid before building? If not, please delete it and then build.
hi, I did that and still gives me some what the same error as before?
Hmmm... Any idea what your environment might be different from the standard environment?
For example, did you upgrade the version of cmake? Or are you running ubuntu on wsl, or installing Ubuntu with raspberry pie or jetson?
it is a standard environment in ubuntu (VMware Workstation 16 Player).
The cmake version that I am using is 3.22.1 supported by Kitware.
Am I missing something?
Maybe the virtual environment is the problem, maybe you installed some software otherwise and it's corrupting the environment, I'm just not sure.
I can only advise you to debug this environment problem yourself (seems like a lot of work) or build in a clean environment or build on a ubuntu-only pc.
I installed a new virtual machine and I am trying to install ROS2 Humble, but if I run the command "sudo apt install ros-humble-desktop" it says that it is unable to locate package ros-humble-desktop
If you try to install as per the instructions below and can't, I don't know.
https://docs.ros.org/en/humble/Installation/Ubuntu-Install-Debians.html
It may be a problem specific to virtual environments, but I have only used docker for virtual environments.
Dependent packages are not installed.
Enter the following command.
cd ~/ros2_ws/src
rosdep install -r -y --from-paths . --ignore-src
8gb RAM is not much.At least 16gb is required. Maybe.
I bought a new RAM it works smooth like butter ! thx for the tip!
But now I face another problem, if I start my rviz and add the map plugins and put "map" in my fixed frame it says that "Frame [map] does not exist"? do you have any idea about it?
Probably the same issue as the following issue.
#49
Are you sure you have the input point cloud topics set up correctly?
https://github.com/rsasaki0109/lidarslam_ros2/blob/foxy/lidarslam/launch/lidarslam.launch.py#L21
If the above is OK, what about terminal output?
What are the results of ros2 topic info -v <input_pointcloud_topic>
?
The following may be the reason why you could not build with ros2 humble.
#55
I am talking about the input 3d lidar scan(for example, points_raw and velodyne_points), not the map.
I asked the above question because you may not have entered the scan properly in the lidar slam package.
hi :) , does it actually support RPlidar A1?
2d lidar is not supported.
This is the ROS2 package of 3D lidar slam.
Sorry to bother you! Is there any repo that works with RPlidar a1 in foxy to built a map?
I think the following is the most famous 2d lidar slam for ros2.
https://github.com/SteveMacenski/slam_toolbox
It appears that the problem with this package has been resolved, so I will close this issue. Please comment again if you have any further questions.