Closed jiangzhiwei2018 closed 1 year ago
I used GDB
to tracked the error.
error occurred in sampled_P_3D_ = P
in the match4pcsBase.hpp,
but you know ,my sample_size
is set to 200, P.size()
is larger than 200 (I catch the value by GDB
, get the determination value, I an sure it larger than 200), it would not jump into else
But I am failed to use GDB
to catch the value of options_.sample_size
, it cannot get the object of options_
// prepare P
if (P.size() > options_.sample_size){
sampler(P, options_, sampled_P_3D_);
}
else
{
Log<LogLevel::ErrorReport>( "(P) More samples requested than available: use whole cloud" );
sampled_P_3D_ = P; //error occurred
}
The sampled_P_3D_ = P
attempt to copy Point3D
failed.
I solved this problem by using OpenGR, thanks for your contribution
here is my command
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=./install -DEIGEN3_INCLUDE_DIR=/usr/include/eigen3 ..
cd install/scripts/
./run-example.sh
The below is my cmake info.
When I compile with the clean project (Eigen is not be downloaded, and don't use
-DEIGEN3_INCLUDE_DIR
), it will download Eigen automagically, the the results will be fine (as show below). So, mabye something wrong occurred in the version of Eigen (mine is 3.4).