Skip to content

highway_overtake sample world doesn't work #6840

@MoradSayed

Description

@MoradSayed

Describe the Bug
After Opening the sample world highway_overtake it runs and produces this warnings and the screen goes black:
Warning: wbu_driver_set_steering_angle() called with an invalid 'steering_angle' argument (NaN)
then the warning stops printing and it starts loading all the SUMO_VEHICLEX, and after it loads all of them it shows the following error:

Traceback (most recent call last):
  File "/usr/local/webots/projects/default/controllers/sumo_supervisor/sumo_supervisor.py", line 222, in <module>
    controller.run(options.port, options.disableTrafficLights, directory,
  File "/usr/local/webots/projects/default/controllers/sumo_supervisor/SumoSupervisor.py", line 564, in run
    self.update_webots_vehicles(xOffset, yOffset)
  File "/usr/local/webots/projects/default/controllers/sumo_supervisor/SumoSupervisor.py", line 352, in update_webots_vehicles
    if self.webotsVehicles[i].is_on_road(xOffset, yOffset, self.maxWebotsVehicleDistanceToLane, self.net):
  File "/usr/local/webots/projects/default/controllers/sumo_supervisor/WebotsVehicle.py", line 64, in is_on_road
    edges = net.getNeighboringEdges(self.currentPosition[0], self.currentPosition[1], maxDistance, False)
  File "/usr/share/sumo/tools/sumolib/net/__init__.py", line 282, in getNeighboringEdges
    for i in self._rtreeEdges.intersection((x - r, y - r, x + r, y + r)):
  File "/home/morad/.local/lib/python3.10/site-packages/rtree/index.py", line 826, in intersection
    p_mins, p_maxs = self.get_coordinate_pointers(coordinates)
  File "/home/morad/.local/lib/python3.10/site-packages/rtree/index.py", line 381, in get_coordinate_pointers
    raise RTreeError(
rtree.exceptions.RTreeError: Coordinates must not have minimums more than maximums
WARNING: 'sumo_supervisor' controller exited with status: 1.

and then it returns to printing the old warning:
Warning: wbu_driver_set_steering_angle() called with an invalid 'steering_angle' argument (NaN)

Steps to Reproduce

  1. Go to file
  2. Click on Open Sample World
  3. Expand vehicles
  4. Choose highway_overtake.wbt
  5. then press OK
  6. See error

Expected behavior
For the world to run normally with no errors.

Screenshots
Image

System

  • Operating System: Linux Ubuntu 22.04
  • Graphics Card: NVIDIA GeForce RTX 3060 6 GB

Console output

INFO: sumo_supervisor: Starting controller: python3.10 -u sumo_supervisor.py --no-gui --no-netconvert --max-vehicles=100 --port=8873 --seed=1 --step=200 --radius=250 --maximum-lateral-speed=2.5 --maximum-angular-speed=3 --lane-change-delay=4
INFO: radar_target_tracker: Starting controller: /usr/local/webots/projects/vehicles/controllers/radar_target_tracker/radar_target_tracker
INFO: highway_overtake: Starting controller: python3.10 -u highway_overtake.py
Using SUMO from /usr/share/sumo
Connect to SUMO... This operation may take a few seconds.
Warning: wbu_driver_set_steering_angle() called with an invalid 'steering_angle' argument (NaN)
Warning: wbu_driver_set_steering_angle() called with an invalid 'steering_angle' argument (NaN)
Warning: wbu_driver_set_steering_angle() called with an invalid 'steering_angle' argument (NaN)
...
Warning: wbu_driver_set_steering_angle() called with an invalid 'steering_angle' argument (NaN)
Warning: wbu_driver_set_steering_angle() called with an invalid 'steering_angle' argument (NaN)
Traceback (most recent call last):
  File "/usr/local/webots/projects/default/controllers/sumo_supervisor/sumo_supervisor.py", line 222, in <module>
    controller.run(options.port, options.disableTrafficLights, directory,
  File "/usr/local/webots/projects/default/controllers/sumo_supervisor/SumoSupervisor.py", line 564, in run
    self.update_webots_vehicles(xOffset, yOffset)
  File "/usr/local/webots/projects/default/controllers/sumo_supervisor/SumoSupervisor.py", line 352, in update_webots_vehicles
    if self.webotsVehicles[i].is_on_road(xOffset, yOffset, self.maxWebotsVehicleDistanceToLane, self.net):
  File "/usr/local/webots/projects/default/controllers/sumo_supervisor/WebotsVehicle.py", line 64, in is_on_road
    edges = net.getNeighboringEdges(self.currentPosition[0], self.currentPosition[1], maxDistance, False)
  File "/usr/share/sumo/tools/sumolib/net/__init__.py", line 282, in getNeighboringEdges
    for i in self._rtreeEdges.intersection((x - r, y - r, x + r, y + r)):
  File "/home/morad/.local/lib/python3.10/site-packages/rtree/index.py", line 826, in intersection
    p_mins, p_maxs = self.get_coordinate_pointers(coordinates)
  File "/home/morad/.local/lib/python3.10/site-packages/rtree/index.py", line 381, in get_coordinate_pointers
    raise RTreeError(
rtree.exceptions.RTreeError: Coordinates must not have minimums more than maximums
WARNING: 'sumo_supervisor' controller exited with status: 1.
Warning: wbu_driver_set_steering_angle() called with an invalid 'steering_angle' argument (NaN)
Warning: wbu_driver_set_steering_angle() called with an invalid 'steering_angle' argument (NaN)
...
Warning: wbu_driver_set_steering_angle() called with an invalid 'steering_angle' argument (NaN)

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