scan_init resets npoints, obst_npoints