Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[sumo-user] Unexpected behavior with containerStops

Dear list,

See this code. Assume the variable "path" contains a sequence of edges
starting from 4539789#1 and arriving to 4469078#5. The commented line
instead contains only the extremes.

    traci.route.add('t1', path)
#    traci.route.add('t1', ['4539789#1', '4469078#5'])
    traci.vehicle.add('v1', 't1', typeID='garbagetruck')
    traci.vehicle.setContainerStop('v1',
'containerStop_4469078#5_0_1', duration=300)

Using the whole path the vehicle does stop for 300 seconds at the
container stop, but while using only the two extremes it does not. Is
this behavior intended? Or I am missing something?

Yours faithfully,
Paolo


Back to the top