Trajectory Planning For Autonomous Vehicles Performing Information Gathering Tasks