my comments.
// plane normal vector and center in global frame, these two vectors vary in different pointcloud(plSurfs[i])
surfDirect[i] = rot.col(2);
surfCenter[i] << randRange(e), randRange(e), randRange(e);
// pvec(randVoxel(e), randVoxel(e), randThick(e)); in samping frame
// pvec = rot pvec + surfCenter[i]; in global frame
// pvec = xBuf[j].R.transpose() (pvec - xBuf[j].p); in body frame
Eigen::Vector3d pvec(randVoxel(e), randVoxel(e), randThick(e));
pvec = rot pvec + surfCenter[i];
pvec = xBuf[j].R.transpose() (pvec - xBuf[j].p);
generated two pointcloud from this part code. looks like these have different structure.
@Zale-Liu thanks for great works for BALM2.0,
but i confused in plane pointcloud generation, looks like plSurfs[i] has different structure. https://github.com/hku-mars/BALM/blob/df9a376db9f573b4faf0562c11dcc176b685d18d/src/benchmark/benchmark_virtual.cpp#L580
my comments. // plane normal vector and center in global frame, these two vectors vary in different pointcloud(plSurfs[i]) surfDirect[i] = rot.col(2); surfCenter[i] << randRange(e), randRange(e), randRange(e);
// pvec(randVoxel(e), randVoxel(e), randThick(e)); in samping frame // pvec = rot pvec + surfCenter[i]; in global frame // pvec = xBuf[j].R.transpose() (pvec - xBuf[j].p); in body frame Eigen::Vector3d pvec(randVoxel(e), randVoxel(e), randThick(e)); pvec = rot pvec + surfCenter[i]; pvec = xBuf[j].R.transpose() (pvec - xBuf[j].p);
generated two pointcloud from this part code. looks like these have different structure.