shared vehicle control using safe driving envelopes for obstacle