Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[sumo-user] Edge.setEffort() Returning Error

Hello,

 

I’m currently using TraaS to interface with SUMO. I am attempting to reroute a vehicle and hope to make it change path by setting an effort to an edge (I believe this is the equivalent of setting a ‘weight’ to that edge), this effort is calculated from the congestion + other metrics.

 

  1. When setting an edge using  ‘conn.do_job_set(Edge.setEffort("edge1", 1.5))’ I receive the errors “Unexpected command and status IDs match: expected 202, got 196” given by Traci (TraaS), and “Error: Answered with error to command 0xc4: Setting effort requires a compound object.” given by the SUMO client.

 

Is there anything more to this? Is the syntax wrong?

 

  1. When setting an effort for a vehicle Vehicle.setEffort(), is this simply an effort given to an edge for a period of time exclusive to this vehicle?

 

Many thanks,

Jonathan


Virus-free. www.avast.com

Back to the top