Add C-space score function

This commit is contained in:
Michel Breyer
2021-09-12 16:23:10 +02:00
parent 8ba015b1ef
commit 9f06bb27be
3 changed files with 29 additions and 18 deletions

View File

@@ -56,7 +56,7 @@ class NextBestView(MultiViewPolicy):
def __init__(self):
super().__init__()
self.min_z_dist = rospy.get_param("~camera/min_z_dist")
self.max_views = 40
self.max_views = 100
def activate(self, bbox, view_sphere):
super().activate(bbox, view_sphere)
@@ -78,7 +78,7 @@ class NextBestView(MultiViewPolicy):
self.done = True
else:
with Timer("state_update"):
self.integrate(img, x)
self.integrate(img, x, q)
views = self.view_candidates
with Timer("ig_computation"):
gains = [self.ig_fn(v) for v in views]