Skip to content

Issue with loading Town05 map in DOS despite successful connection and map loading #14

@Zhzdpaaa

Description

@Zhzdpaaa

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:

Image

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:

Image

As we can see, the current environment is Town05. However, when I run the program again, it still shows the error:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions