Closed alessandromorra closed 3 years ago
Hey @alessandromorra can you try the fix from @heuristicus?
Can you also tell me your PCL version?
I am using 1.8.1. Unfortunately #152 does not fix it for me, I did not change my PCL version. @heuristicus did you do something else as well?
The fix in the PR will only work in PCL versions 1.11.1 and above since that is where this macro was introduced. For older versions I think you have to do what you did and change it back to use the Eigen operator.
In my case I checked out the release
branch instead of master and that worked, but if you need the latest version then I think that's the only way to fix it if you're stuck with older PCL versions.
I see, thanks for the clarification.
Hm okay, I will check if we can add a version dependent preprocessor macro, or we will set a minimal PCL version in the CMakeLists.
@alessandromorra do you have the possibility to upgrade your PCL version?
Yes I can update my PCL version, so this closes the issue for me. Many thanks for the support!
I had the same exact problem as @alessandromorra, but wasn't able to fix it for a while. So, for anyone else that runs into this issue down the road, all I had to do was build the newest version of pcl_ros alongside this repository (I initially had v1.7.1 installed, which I think is the default version that comes with ROS Melodic). I am forced to use Melodic. Also, you should not have to make the change to PointXYZRGBConfidenceRatio.hpp.
Clone the https://github.com/ros-perception/perception_pcl
repo within your catkin_ws/src folder (the latest version was v1.7.2 at the time of this writing, which I believe is the default version for ROS Noetic). Then retry the build.
Checking out to release
worked for me. Thanks
The fix in the PR will only work in PCL versions 1.11.1 and above since that is where this macro was introduced. For older versions I think you have to do what you did and change it back to use the Eigen operator.
In my case I checked out the
release
branch instead of master and that worked, but if you need the latest version then I think that's the only way to fix it if you're stuck with older PCL versions.
hi,i want to know how to checked out the release
,thank you!
“Checking out to release”,how to do it ?
“Checking out to release”,how to do it ?
git checkout release
Release branch of the elevation_mapping repo solved the issue for me! But why there are differences between master and release? That is weird. Can you also add this issue on README maybe for those of us who using different ros distro can be aware of this and maybe header file issue? @maximilianwulf Thanks.
I have just tried your demo and got this error:
Is this an error of the package or something wrong with my installation? I am using Ubuntu 18.04.
With this fix it seems to work fine: https://github.com/ANYbotics/elevation_mapping/compare/master...alessandromorra:master