carla-simulator / traffic-generation-editor Goto Github PK
View Code? Open in Web Editor NEWVisual generation of traffic scenarios based on the OpenSCENARIO standard
License: MIT License
Visual generation of traffic scenarios based on the OpenSCENARIO standard
License: MIT License
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.
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
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
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.
I have a same issue like #10 and https://forum.carla.org/t/problem-while-trying-to-run-an-open-scenario/783
Here is my terminal output.
I think this issues are caused by xml format mismatch.
But i have no idea how to fix them.
I really appreciate if there are any solutions to solve it.
Thank you.
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!!
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 startPlugin1/QGIS 3.28.3/apps/qgis/./python\qgis\utils.py", line 888, in _import
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
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 _import1/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
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!
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]
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.
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
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.
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
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!
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.
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
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.
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'
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.
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.
CARLA 0.9.12 comes with some renaming for vehicles. We should adapt to that.
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.
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]
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.