carla-simulator / carla

Open-source simulator for autonomous driving research.
http://carla.org
MIT License
11.31k stars 3.66k forks source link

Waypointing issues with Town03 roundabout #5579

Open zengxianming opened 2 years ago

zengxianming commented 2 years ago

I got the same bug again. I set my sample resolution to 0.1m, it still doesn't work. I use CARLA 0.9.12. Here is my test code

from agents.navigation.global_route_planner import GlobalRoutePlanner
import carla
import time

client = carla.Client("localhost", 2000)
client.set_timeout(2.0)

world = client.get_world()
map = world.get_map()

sampling_resolution = 0,1
global_planner = GlobalRoutePlanner(map, sampling_resolution)

start_location = carla.Location(x=52.61, y=-7.84, z=1.84)
end_location = carla.Location(carla.Location(x=-84.81,y=27.02,z=1.84))
res = global_planner.trace_route(start_location, end_location)

while True:
    for wpt, _ in res:
        world.debug.draw_point(wpt.transform.location, size=0.5, life_time=1.0)
    time.sleep(1)

image

@glopezdiest

Originally posted by @zengxianming in https://github.com/carla-simulator/carla/issues/4347#issuecomment-1181428356

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.