Giter Site home page Giter Site logo

carla-simulator / traffic-generation-editor Goto Github PK

View Code? Open in Web Editor NEW
60.0 5.0 14.0 2.47 MB

Visual generation of traffic scenarios based on the OpenSCENARIO standard

License: MIT License

Python 100.00%
openscenario scenario automated-driving qgis-plugin

traffic-generation-editor's People

Contributors

berndgassmann avatar fabianoboril avatar lrstttl avatar seowwj avatar shreyadey23 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

traffic-generation-editor's Issues

unable to install the ad-map-access plugin

I am unable to install the ad-map-access plugin using pycharm on linux.
Getting the following error:
Fail to load plugin descriptor from file ad_map_access_qgis.zip

Please advise.
Thanks.

Vehicles not showing up in the scenario

Hello,

I followed the instructions specified in the documentation to create a scenario using the QGIS plugin. When I place a camera and hit play scenario, the pygame window opens up with the map but I can't see any vehicles in it. It just seems to be a static image.

I also tried using different vehicles as well just to make sure it is not an issue with just one vehicle.

Please let me know if I am missing something.

Thanks!!

Ability to load existing scenarios?

First of all. Excellent work on this tool. This is exactly what my team has been looking for. I've managed to get some simple scenarios created, but I'm wondering if it's currently possible to load in previously-created scenarios? It would be worthwhile to be able retrieve and edit pre-existing scenarios.

Error while installing the plugin from zip

Hi everybody. I was following the installation guide and when I tried to do the "install from zip" part I faced the following error:

Couldn't load plugin 'traffic-generation-editor-main' due to an error when calling its classFactory() method

ModuleNotFoundError: No module named 'ad_map_access'
Traceback (most recent call last):
File "C:\PROGRA1/QGIS 3.28.3/apps/qgis/./python\qgis\utils.py", line 423, in startPlugin
plugins[packageName] = package.classFactory(iface)
File "C:\Users/99660813/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\traffic-generation-editor-main_init
.py", line 21, in classFactory
from .carla_scenario_editor import OSC_Generator # pylint: disable=import-outside-toplevel,import-error
File "C:\PROGRA
1/QGIS 3.28.3/apps/qgis/./python\qgis\utils.py", line 888, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "C:\Users/99660813/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\traffic-generation-editor-main\carla_scenario_editor.py", line 22, in
from .osc_generator.add_vehicles import AddVehiclesDockWidget
File "C:\PROGRA1/QGIS 3.28.3/apps/qgis/./python\qgis\utils.py", line 888, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "C:\Users/99660813/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\traffic-generation-editor-main\osc_generator\add_vehicles.py", line 21, in
import ad_map_access as ad
File "C:\PROGRA
1/QGIS 3.28.3/apps/qgis/./python\qgis\utils.py", line 888, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
ModuleNotFoundError: No module named 'ad_map_access'

Does anyone know how can I fix this problem? any help is much appreciated!

Problems when running a Scenario with ScenarioRunner

Once I exported the scenario that I created, I attempted to run it using ScenarioRunner.
While the map opened as expected and all actors were successfully spawned, I encountered issues when trying to control the ego vehicle using manual_control.py. Additionally, when attempting to start the scenario using the designated button, the Pygame window either failed to open or opened completely black.

Vehicle flows

Hello,
I am currently working on this traffic generation editor and scenario runner. I would like to know if there's any chance that we could create vehicle flows like in sumo?
Thanks!

Module 'sys' has no attribute 'argv' in pygame

from .carla_connect.mapupdate import MapUpdate

when i run Connect to Carla, it ask me that No CARLA module available, I find here an error occurred.

     from .carla_connect.addcam import CameraDockWidget
     from .carla_connect.carla_connect_dockwidget import CarlaConnectDockWidget

When i remove try ,except, I find CameraDockWidget call the pygame. and give me a error:

Module 'sys' has no attribute 'argv'  in pygame

so..why?
pygame version is 2.0.1

RuntimeError: Instance not initialized. Forgot to call AdMapAccess::initialize?

Hi, thanks for the useful plugin. But I have an issue "RuntimeError: Instance not initialized. Forgot to call AdMapAccess::initialize? " when I use "Adding Vehicles". I click on desired map position to spawn vehicle.

Also, I am confused about the step 1, Open OpenDRIVE map using CARLA AD Map plugin. How should I do it? Thanks again.

pygame window not opening up

When I run the manual control python code from scenario runner separately it runs fine but the pygame window doesn't open when running through the plugin.
These are the steps followed

  1. Load Town01.xodr using the Carla ad_map_access plugin
  2. Create a scenario using the Openscenario plugin
  3. Connect to Carla
  4. Play the scenario

Note: I am running Ubuntu 20.04..2 LTS and python 3.8.10 on a VM with a single M60 GPU and NVIDIA drivers

ModuleNotFoundError: No module named 'traffic-generation-editor-1'

when I install plugin "traffic-generation-editor" by following way:

from plugins menu (Plugins > Manage and Install Plugins > Install from ZIP), choose the zip file that was previously downloaded.

**Some errors have occurred: **

Couldn't load plugin 'traffic-generation-editor-1.1.0'

ModuleNotFoundError: No module named 'traffic-generation-editor-1'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/qgis/utils.py", line 401, in loadPlugin
import(packageName)
File "/usr/lib/python3/dist-packages/qgis/utils.py", line 888, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
ModuleNotFoundError: No module named 'traffic-generation-editor-1'

No CARLA module found

Trying to connect to CARLA from QGIS via Connect to CARLA instance button ,but returning error : No carla module available

OS: [e.g. Ubuntu 18.04]
CARLA Version [e.g. CARLA 0.9.11]
Python version [e.g. 3.]
QGIS Version [e.g. 3.16]

Program crashes when encountering curves or intersections during turn with waypoints

I would like to report an issue related to my experience with the openScenario feature in Carla. I have observed the problem when attempting to make a turn using waypoints.
The program operates normally when the waypoints are on a straight line, but crashes when it reaches the first curve or intersection. Despite trying various troubleshooting techniques, I have been unable to resolve the issue and would appreciate assistance in identifying a solution.

ValueError: Cannot convert from ENU to Geo: Reference Point not defined.

When I insalled QGIS and plugin both ad_map_access, OpenSCENARIO Editor Toolkit, setting all pathes and then import oxsc and got a error:ValueError: Cannot convert from ENU to Geo: Reference Point not defined.
image
And also not any content shown in main window.

By the way, are there any tutorial to create a openscneario in traffic generation editor?

ubuntu 20.04
carla 0.9.13
scenariorunner 0.9.13
QGIS 3.10.4-A

Cannot setup the plugins

Trying to use this tool for editing scenarios.

I get this error while trying to load Traffic generation editor
ImportError: libpugixml.so.1: cannot open shared object file: No such file or directory
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/qgis/utils.py", line 334, in _startPlugin
plugins[packageName] = package.classFactory(iface)
File "/home/schemba/.local/share/QGIS/QGIS3/profiles/default/python/plugins/traffic-generation-editor-main/init.py", line 21, in classFactory
from .carla_scenario_editor import OSC_Generator # pylint: disable=import-outside-toplevel,import-error
File "/usr/lib/python3/dist-packages/qgis/utils.py", line 792, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "/home/schemba/.local/share/QGIS/QGIS3/profiles/default/python/plugins/traffic-generation-editor-main/carla_scenario_editor.py", line 22, in
from .osc_generator.add_vehicles import AddVehiclesDockWidget
File "/usr/lib/python3/dist-packages/qgis/utils.py", line 792, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "/home/schemba/.local/share/QGIS/QGIS3/profiles/default/python/plugins/traffic-generation-editor-main/osc_generator/add_vehicles.py", line 21, in
import ad_map_access as ad
File "/usr/lib/python3/dist-packages/qgis/utils.py", line 792, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "/home/schemba/.local/share/QGIS/QGIS3/profiles/default/python/plugins/ad_map_access_qgis/ad_map_access/init.py", line 17, in
from ad_map_access_python36_module import *
File "/usr/lib/python3/dist-packages/qgis/utils.py", line 792, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
ImportError: libpugixml.so.1: cannot open shared object file: No such file or directory

I get this error when trying to import CARLA AD Map Plugin

ModuleNotFoundError: No module named 'map-2'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/qgis/utils.py", line 312, in loadPlugin
import(packageName)
File "/usr/lib/python3/dist-packages/qgis/utils.py", line 792, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
ModuleNotFoundError: No module named 'map-2'

Any comments would be appreciated.

custom map import error

When I connect to carla, the built-in map can run normally, but when I switch to the custom map, an error is reported:

File "~/.local/share/QGIS/QGIS3/profiles/default/python/plugins/ad_map_access_qgis/ADMapQgsLayers.py", line 261, in add_lane_surface_layer
lane_list = ad.map.lane.getLanes()
RuntimeError: Instance not initialized. Forgot to call AdMapAccess::initialize?

Is it that my map is missing necessary elements like lane id etc.

Tutorial on adding manuever

Hi,

Thank you for the great editor. I'm trying to add some cars with maneuvers but when I add any maneuver, it cannot run it. I use carla-ros-bridge to run the scenario. If someone can record a short video or describe the procedure of adding longitudinal, lateral, and waypoint maneuvers, that would be appreciated.

Thanks a lot

Add XOSC validation prior to import

Using non-validated files could cause exceptions or undesired behaviors. Therefore, we should have a validation as first step for any to-be-imported file.

No CARLA module available

This problem makes my head dizzy for days. QGIS python console, VScode and my terminal can import 'carla' but when I press the button to connect to CARLA server this error occurs, I know there is another post like this but there seems to be no answer. Any help would be much appreciated.

OS: [e.g. Ubuntu 18.04]
CARLA Version [e.g. CARLA 0.9.11]
Python version [e.g. 3.6]
QGIS Version [e.g. 3.16]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.