Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Global Route Planner fails in turn decision #6467

Open
sebplorenz opened this issue May 11, 2023 · 0 comments
Open

Global Route Planner fails in turn decision #6467

sebplorenz opened this issue May 11, 2023 · 0 comments

Comments

@sebplorenz
Copy link

CARLA version: 0.9.14

I'm using the basic agent to navigate a map. Unfortunately the global route planner is not able to find a route. It fails with the following exception:

  File "/home/sebp/workspace/carla_test/carlas/agents/navigation/basic_agent.py", line 161, in set_destination
    route_trace = self.trace_route(start_waypoint, end_waypoint)
  File "/home/sebp/workspace/carla_test/carlas/agents/navigation/basic_agent.py", line 188, in trace_route
    return self._global_planner.trace_route(start_location, end_location)
  File "/home/sebp/workspace/carla_test/carlas/agents/navigation/global_route_planner.py", line 52, in trace_route
    road_option = self._turn_decision(i, route)
  File "/home/sebp/workspace/carla_test/carlas/agents/navigation/global_route_planner.py", line 363, in _turn_decision
    cross_list.append(np.cross(cv, sv)[2])
  File "<__array_function__ internals>", line 6, in cross
  File "/home/sebp/.local/lib/python3.7/site-packages/numpy/core/numeric.py", line 1541, in cross
    axisb = normalize_axis_index(axisb, b.ndim, msg_prefix='axisb')
numpy.AxisError: axisb: axis -1 is out of bounds for array of dimension 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant