A soft real-time self-planned multi-agent framework