matthewcoyle-cpc / esmini-visualiser

A tool which uses the esmini OpenSCENARIO player to generate video visualisations of scenarios
https://hub.docker.com/r/matthewcoylecpc/esmini-visualiser
5 stars 5 forks source link

loading scenario dependancies (road, vehicle catalog) #2

Open Leviathan321 opened 3 years ago

Leviathan321 commented 3 years ago

When I execute the visualizer with my scenario files I get a black gif as an output. The output in the console shows that no file road network has been loaded. How can I use scenario files with my road networks, is there some specific format the .xosc files should have to be run in esmini in your tool?

ScenarioEngine.cpp / 35 / InitScenario(): Init /scenarios/cut-in.xosc
ScenarioReader.cpp / 87 / loadOSCFile(): Loading /scenarios/cut-in.xosc
ScenarioReader.cpp / 224 / parseRoadNetwork(): Parsing RoadNetwork
ScenarioReader.cpp / 244 / parseRoadNetwork(): Warning: No road network ODR file loaded!
ScenarioReader.cpp / 249 / parseRoadNetwork(): Warning: No road network 3D model file loaded! Setting default path.
ScenarioReader.cpp / 255 / parseRoadNetwork(): Roadnetwork ODR:
ScenarioReader.cpp / 256 / parseRoadNetwork(): Scenegraph: /scenarios
ScenarioReader.cpp / 208 / parseParameterDeclaration(): Parsing parameters
ScenarioReader.cpp / 379 / parseCatalogs(): Parsing Catalogs
ScenarioReader.cpp / 399 / parseEntities(): Parsing Entities
ScenarioReader.cpp / 48 / getParameter(): Resolve parameter $HostVehicle
ScenarioReader.cpp / 59 / getParameter(): Failed to resolve parameter $HostVehicle
main.cpp / 293 / main(): basic_string::_M_construct null not valid
[x11grab @ 0x16793c0] 16 bits per pixel screen is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
Input #0, x11grab, from ':1.0':
  Duration: N/A, start: 1621511001.679251, bitrate: N/A
    Stream #0:0: Video: rawvideo (RGB[16] / 0x10424752), rgb565le, 320x240, 20 fps, 20 tbr, 1000k tbn, 20 tbc
Output #0, gif, to '/scenarios/cut-in.gif':
  Metadata:
    encoder         : Lavf56.40.101
    Stream #0:0: Video: gif, bgr8, 320x240, q=2-31, 200 kb/s, 20 fps, 100 tbn, 20 tbc
    Metadata:
      encoder         : Lavc56.60.100 gif
Stream mapping:
  Stream #0:0 -> #0:0 (rawvideo (native) -> gif (native))
Press [q] to stop, [?] for help
frame=  160 fps= 20 q=-0.0 Lsize=       5kB time=00:00:08.00 bitrate=   5.3kbits/s
video:3kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 65.481438%
alexkutsan commented 1 year ago

same issue