Skip to content

Commit df8eae5

Browse files
committed
fix(method): cmake voxblox lib in dynablox. update visualization script for dataset.
1 parent b170f6a commit df8eae5

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

scripts/py/data/play_data.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,16 +68,17 @@ def vis(
6868
data_dir: str = "/home/kin/DATA_HDD/Dynamic_Papers_assets/Benchmark_data/00",
6969
view_file: str = os.path.abspath(BASE_DIR+"/../../assets/view/default.json"),
7070
point_size: int = 3,
71+
start_id: int = 0,
7172
speed: int = 1,
72-
):
73+
):
7374
o3d_vis = MyVisualizer(view_file=view_file, window_title="DynamicMap Benchmark Data Preview")
7475
opt = o3d_vis.vis.get_render_option()
7576
# opt.background_color = np.asarray([216, 216, 216]) / 255.0
7677
# opt.background_color = np.asarray([80/255, 90/255, 110/255])
7778
# opt.background_color = np.asarray([1, 1, 1])
7879
opt.point_size = point_size
7980
dataset = DynamicMapData(data_dir)
80-
for data_id in (pbar := tqdm(range(0, len(dataset)))):
81+
for data_id in (pbar := tqdm(range(start_id, len(dataset)))):
8182
data = dataset[data_id]
8283
now_scene_id = data['scene_id']
8384
pbar.set_description(f"id: {data_id}, scene_id: {now_scene_id}, timestamp: {data['timestamp']}")

0 commit comments

Comments
 (0)