Closed alexge233 closed 7 years ago
Hi,
Firstly, there's something strange in your code:
auto obs = mrpt::obs::CObservation3DRangeScanPtr();
...
obs ->XX
Since obs is an uninitialized smart pointer, the call to obs->xxx()
should crash (!!). Is that your exact code, or was this a simplified version?
On the incomplete type, I guess you are missing the #include
for template specializations:
http://reference.mrpt.org/devel/group__mrpt__adapters__grp.html
http://reference.mrpt.org/devel/maps_2_p_c_l__adapters_8h_source.html
#include <mrpt/maps/PCL_adapters.h>
It was a minified version, it didn't compile so I never got to the segfault! Many thanks for the help, that was the issue. However I've decided to skip PCL altogether and simply populate the observation from libfreenect2 data.
Hi,
I'm using MRPT 1.5.0 installed on Ubuntu 16.04 from a ppa repository. I've run into a pickle:
The code is shown below:
The error I get is:
Can anyone help please?