DOS
DOS copied to clipboard
Issue with loading Town05 map in DOS despite successful connection and map loading
Dear Author,
Hello! Thank you very much for your work, which has provided an excellent testing environment. However, I encountered the following issue when running DOS:
It seems that the system is not using Town05, but I reset the loading environment through the .py file and output the currently used environment, as shown below:
import carla
import random
import os
import queue
client = carla.Client('localhost', 2000)
client.set_timeout(10.0)
world = client.get_world()
print("Successfully connected to CARLA!")
# Get all available maps
available_maps = client.get_available_maps()
print('All available maps are:', available_maps)
# Load the map
client.load_world('Town05')
# Re-fetch the world
world = client.get_world()
map_name = world.get_map().name # Get the map name
print(f"Current map: {map_name}")
After running the above code, the output is as follows:
As we can see, the current environment is Town05. However, when I run the program again, it still shows the error: