CARLA version: 0.9.15
Platform/OS: Ubuntu 20.04
Problem you have experienced: When calling wp.next(150) it returns a list with a waypoint at the same position as wp
What you expected to happen: Return the waypoint 150 meters from the wp or an empty list []
Steps to reproduce: Call wp.next(150) from road 25, lane -8 on map Town06
Code that causes the bug
import carla
adress = "127.0.0.1"
port = 2000
client = carla.Client(adress, port)
client.set_timeout(30)
world = client.load_world("Town06")
map = world.get_map()
wpev: carla.Waypoint = map.get_waypoint(
carla.Location(215, 54, 0),
project_to_road=True,
lane_type=carla.LaneType.Driving)
wpcurb = wpev.get_right_lane().get_right_lane()
print(wpcurb.transform.location, f"{wpcurb.road_id=}, {wpcurb.lane_id=}")
wpnext1 = wpcurb.next(1)[0]
print(wpnext1.transform.location, f"{wpnext1.road_id=}, {wpnext1.lane_id=}")
wpnext2 = wpcurb.next(12)[0]
print(wpnext2.transform.location, f"{wpnext2.road_id=}, {wpnext2.lane_id=}")
wpnext3 = wpcurb.next(14)[0]
print(wpnext3.transform.location, f"{wpnext3.road_id=}, {wpnext3.lane_id=}")
wpnext4 = wpcurb.next(16)[0]
print(wpnext4.transform.location, f"{wpnext4.road_id=}, {wpnext4.lane_id=}")
wpnext5 = wpcurb.next(152.188)[0]
print(wpnext5.transform.location, f"{wpnext5.road_id=}, {wpnext5.lane_id=}")
Location(x=214.900406, y=54.925457, z=0.000000) wpcurb.road_id=25, wpcurb.lane_id=-8
Location(x=215.930038, y=54.931492, z=0.000000) wpnext1.road_id=25, wpnext1.lane_id=-8
Location(x=221.930862, y=55.283535, z=0.000000) wpnext2.road_id=745, wpnext2.lane_id=1
Location(x=220.301590, y=54.936768, z=0.000000) wpnext3.road_id=745, wpnext3.lane_id=1
Location(x=200.564636, y=54.777279, z=0.000000) wpnext4.road_id=25, wpnext4.lane_id=-8
Location(x=214.900421, y=54.925457, z=0.000000) wpnext5.road_id=25, wpnext5.lane_id=-8
Images of the road


CARLA version: 0.9.15
Platform/OS: Ubuntu 20.04
Problem you have experienced: When calling
wp.next(150)it returns a list with a waypoint at the same position aswpWhat you expected to happen: Return the waypoint 150 meters from the
wpor an empty list[]Steps to reproduce: Call
wp.next(150)from road 25, lane -8 on map Town06Code that causes the bug
Images of the road