Cooperative Task Scheduling and Planning Considering Resource Conflicts and Precedence Constraints