Skip to content

[BUG] CM11 traffic obj in CM13 will cause co-sim slower than real time #52

@cjffly

Description

@cjffly

Describe the bug
We notice CM13 co-sim with SUMO is slower than real time. It happens to be the testrun have 100 traffic obj that is inherit from CM11.

hot fix
I delete all traffic objects in the testrun, and using CM13 GUI to add 30 default traffic objects, set them to free motion and rename them as RS_CXXX.

Initial tests shows with 30 default vehicles, co-sim can run in real time.

Image

Additional context
Comparing with CM11 and CM13 traffic objects in testrun, there are a few lines are differnt. Suggest to re-write the traffic generation python scripts to match CM13 traffic obj definition style.

Here attached CM11 testrun traffic and CM13 testrun traffic:

CM11 testrun:

Traffic.SpeedUnit = ms
Traffic.IFF.FName =
Traffic.IFF.Time.Name =
Traffic.GenDriverBehavior.FName = Default
Traffic.0.Name = RS_C000
Traffic.0.Info:
	RealSimCar 0
Traffic.0.DetectMask = 1 1
Traffic.0.UpdRate = 1000
Traffic.0.Lighting = 0
Traffic.0.FreeMotion = 1
Traffic.0.TrailerName =
Traffic.0.Template.FName = 1_Vehicles/Ford_EscapeSE_2020_VIL
Traffic.0.AutoDriver.FName =
Traffic.0.Routing.Type = Route
Traffic.0.Routing.ObjId = 809
Traffic.0.StartPos.Type = Route
Traffic.0.StartPos.ObjId = 809
Traffic.0.StartPos = 0 0
Traffic.0.StartPos.Orientation.Type = Relative
Traffic.0.StartPos.Orientation = 0.0 0.0 0.0
Traffic.0.Routing.UseReferenceLine = 1
Traffic.0.Template.Attrib = 100
Traffic.0.nMan = 0
Traffic.0.Man.Start.Velocity = 0
Traffic.0.Man.TreatAtEnd = Hide

CM13 testrun:

Traffic.SpeedUnit = ms
Traffic.IFF.FName =
Traffic.IFF.Time.Name =
Traffic.GenDriverBehavior.FName = Default
Traffic.0.Name = RS_C001
Traffic.0.Info:
	Generic traffic object
Traffic.0.DetectMask = 1 1
Traffic.0.UpdRate = 1000
Traffic.0.Lighting = 0
Traffic.0.FreeMotion = 1
Traffic.0.TrailerName =
Traffic.0.Template.FName = 1_Vehicles/IPG_CompanyCar_2018_Blue
Traffic.0.AutoDriver.FName = Car_HDM_Normal
Traffic.0.Routing.Type = Route
Traffic.0.Routing.ObjId = 809
Traffic.0.StartPos.Type = Route
Traffic.0.StartPos.ObjId = 809
Traffic.0.StartPos = 0.0 0.0
Traffic.0.StartPos.Orientation.Type = Relative
Traffic.0.StartPos.Orientation = 0.0 0.0 0.0
Traffic.0.nMan = 1
Traffic.0.Man.Start.Velocity = 0.0
Traffic.0.Man.TreatAtEnd = FreezePos
Traffic.0.Man.0.nLongSteps = 1
Traffic.0.Man.0.nLatSteps = 1
Traffic.0.Man.0.CombinedSteps = 1
Traffic.0.Man.0.MaxExec = 1
Traffic.0.Man.0.ConsiderDomain = own
Traffic.0.Man.0.Transition.Interrupt = self
Traffic.0.Man.0.Transition.EndCond = end
Traffic.0.Man.0.Transition.SimultanStart = end
Traffic.0.Man.0.LongStep.0.Limit = t 0.0
Traffic.0.Man.0.LatStep.0.Limit = t 0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions