Clear IG markers after exploring

This commit is contained in:
Michel Breyer 2021-12-06 10:22:39 +01:00
parent e5e17d743f
commit eca61e7297
2 changed files with 7 additions and 0 deletions

View File

@ -104,6 +104,9 @@ class NextBestView(MultiViewPolicy):
if gain < self.min_gain and len(self.views) > self.T:
self.done = True
if self.done:
self.vis.clear_ig_views()
self.x_d = nbv
def best_grasp_prediction_is_stable(self):

View File

@ -13,6 +13,10 @@ grey = [0.9, 0.9, 0.9]
class Visualizer(vgn.rviz.Visualizer):
def clear_ig_views(self):
markers = [Marker(action=Marker.DELETE, ns="ig_views", id=i) for i in range(24)]
self.draw(markers)
def bbox(self, frame, bbox):
pose = Transform.identity()
scale = [0.004, 0.0, 0.0]