A middleware for mobile sensor planning