Skip to content

[BUG] FIXS running slower than real time in co-simulation btw IPG and SUMO #88

@anyezhou1995

Description

@anyezhou1995

Describe the bug
Look into what leads to co-simulation running slower than real time as traffic agents scaling up.
The IPG office (with or without Simulink model) will run at the rate of ~0.5x real time as traffic demand gaining up.

To Reproduce
IPG-SUMO:

  1. Making sure only one ego vehicle is subscribing information in the 'RS_config_release.yaml' file.
  2. Run runI81_zls.bat to get TrafficLayer and SUMO running with proper settings (should be handled in the sumocfg already).
  3. Load proper IPG Testrun file, set the proper road, select 'route_62' vehicle route in the road file 'full_stong16'.

IPG-Simulink-SUMO

  1. Making sure two ego vehicles are subscribing information in the 'RS_config_release.yaml' file.
  2. Open the IPG GUI with 'generic_truck_RS_Control_CompensateRS.mdl' file. May need to put it in CarMaker format...
  3. Load proper IPG Testrun scenario as in IPG-SUMO setup.
  4. Make sure 'RS files' and 'YAMLMatlab_0.4.3' folders are in the MATLAB PATH.
  5. Use the 'sensitivityTest.m' automation script to run the co-simulation.
    <ISSUE_NUMBER>_runningSlowIssue.zip is uploaded to the private OneDrive link:
    Upload to OneDrive (FIXS)

Screenshots (if any)

Image

Environment

  • MATLAB 2021b
  • SUMO 1.21.0
  • IPG TruckMaker 11.0.1

Additional context
Might need some minor tweaks to run in CarMaker as some files are based on TruckMaker.

Metadata

Metadata

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions