Skip to content

Commit

Permalink
Merge branch 'main' into add_helimos
Browse files Browse the repository at this point in the history
  • Loading branch information
benemer committed Aug 27, 2024
2 parents bd41e90 + 3713ce4 commit 78f3bef
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 13 deletions.
21 changes: 8 additions & 13 deletions src/mapmos/paper_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,19 +158,14 @@ def _run_pipeline(self):
torch.tensor(gt_labels, dtype=torch.int32),
)

belief_labels_scan = belief_labels_with_map
if self.visualize:
belief_map = self.belief.get_belief(map_points)
belief_labels_map = self.model.to_label(belief_map)
self.visualizer.update(
scan_points,
map_points,
pred_labels_scan,
pred_labels_map,
belief_labels_scan,
belief_labels_map,
self.odometry.last_pose,
)
self.visualizer.update(
scan_points,
map_points,
pred_labels_scan,
pred_labels_map,
self.belief,
self.odometry.last_pose,
)

# Probabilistic volumetric fusion with scan and moving map predictions and delay
self.buffer.append([scan_index, scan_points, gt_labels])
Expand Down
1 change: 1 addition & 0 deletions src/mapmos/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ def _run_pipeline(self):

start_time = time.perf_counter_ns()
self.belief.update_belief(points_stacked, logits_stacked)
self.belief.get_belief(scan_points)
self.times_belief.append(time.perf_counter_ns() - start_time)

self.visualizer.update(
Expand Down

0 comments on commit 78f3bef

Please sign in to comment.