Skip to main content

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

Hello
1) this is quite strange. The last time i saw something like this it came from multiple traci threads that were trying to talk to sumo at the same time. Can you reproduce this with a single traci thread? If so, please send me a minimal scenario.

2) yes.

regards,
Jakob

2018-03-20 22:03 GMT+01:00 Jonathan Harper via sumo-user <sumo-user@xxxxxxxxxxxxxxxxxxxxx>:
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?

2. 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


---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
sumo-user mailing list
sumo-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sumo-user


Back to the top