wrong path retrieved by traceroute (GlobalRoutePlanner) #7312
Replies: 2 comments
-
this is the route retrieved by route = grp.trace_route(start, end) |
Beta Was this translation helpful? Give feedback.
0 replies
-
@bernatx could you help me |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
route retrieved from get_shortest_route is not the shortest path from location (carla.Location(x=-87.2, y=16.3, z=1)) to carla.Location(x=-114.0, y=41.0, z=1)
`import sys
import math
import numpy as np
import time
sys.path.append('D:/Carla/CARLA_0.9.15/PythonAPI/carla') # Adjust path to CARLA installation
from agents.navigation.local_planner import LocalPlanner
from agents.navigation.global_route_planner import GlobalRoutePlanner
import carla
def main():
vehicle = None # Define vehicle outside try block
wrong path from node 84 and 83 to 101 and 102
wrong path from node 24 and 23 to 8 and 7
if name == 'main':
main()`
Beta Was this translation helpful? Give feedback.
All reactions