reloc: ban do 3D luc khoi dong nap du moi node (khong gioi han 40 node/lan)
This commit is contained in:
@@ -9,6 +9,7 @@
|
|||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
#include <deque>
|
#include <deque>
|
||||||
|
#include <limits>
|
||||||
|
|
||||||
#include "vslam/binary_codec.h"
|
#include "vslam/binary_codec.h"
|
||||||
#include "vslam/clock.h"
|
#include "vslam/clock.h"
|
||||||
@@ -524,6 +525,11 @@ StatusResponse Runtime::Start() {
|
|||||||
vo.z_max = cfg_->voxel.z_max;
|
vo.z_max = cfg_->voxel.z_max;
|
||||||
vo.max_cells = cfg_->voxel.max_cells;
|
vo.max_cells = cfg_->voxel.max_cells;
|
||||||
vo.min_node_hits = cfg_->voxel.min_node_hits;
|
vo.min_node_hits = cfg_->voxel.min_node_hits;
|
||||||
|
// Nap depth CUA MOI node (mac dinh 40 node/lan xuat): o day chi xuat
|
||||||
|
// MOT lan truoc khi chot -> 40/971 node chi la mot manh quanh goc map,
|
||||||
|
// trong nhu PCL cua phien dinh vi. Doi vai giay luc khoi dong; cache
|
||||||
|
// giu lai nen cac lan xuat sau van nhanh.
|
||||||
|
vo.max_new_nodes = std::numeric_limits<size_t>::max();
|
||||||
VoxelGrid vg;
|
VoxelGrid vg;
|
||||||
const StatusResponse vst = slam_->ExportVoxels(vo, &vg);
|
const StatusResponse vst = slam_->ExportVoxels(vo, &vg);
|
||||||
if (vst.ok()) {
|
if (vst.ok()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user