Distributed Coordination for Autonomous Guided Vehicles in Multi-agent Systems with Shared Resources