231
232
for level, ol in enumerate(self.mapvoxels):
232
233
objective_func = ol.cost_func
234
234
dtheta = dtheta_base*pow(self.factor,(len(self.mapvoxels)-level-1))
236
236
# This helps avoid local minima, but limits accuracy to voxel size
237
237
# at the finest resolution
239
239
print 'resolution: %f' % (ol.resolution)
241
241
bestpose, cost = optimization.cost_min(objective_func, bestpose, (xyzs_sample,), dx, dtheta, max_iterations=20, verbosity=2)
242
242
#bestpose, cost = optimization._cost_min_scipy(objective_func, bestpose, (xyzs_sample,))
243
243
# run it again at the finest resolution with tighter steps to get