Closed mtgibson2014 closed 5 years ago
Sumo changed the third input of slowDown
in version 1.0.0 to required as input seconds instead of milliseconds, and since then we have replaced the 1 values with a 1e-3. You are probably still using sumo-0.31. I recommend you remove any sumo binaries you have on your laptop and reinstall them following our setup instructions
Thank you! It's fixed now.
I'm trying to simply run "python examples/sumo/sugiyama.py" and I'm getting an issue with something related to a function in the kernel. It seems like in "apply_acceleration" we are passing in a decimal -- 1e-3 , when the traci code is expecting an integer. Was I suppose to install/update something within the last months or is this an error in Flow?
Code Snippet
`def apply_acceleration(self, veh_ids, acc): """See parent class."""
to hand the case of a single vehicle
The last line:
self.kernel_api.vehicle.slowDown(vid, next_vel, 1e-3)
is giving me an error because 1e-3 is not an integer.
The traci code for this function has: `def slowDown(self, vehID, speed, duration): """slowDown(string, double, int) -> None
And I'm assuming that for:
self._connection._string += struct.pack( "!BiBdBi", tc.TYPE_COMPOUND, 2, tc.TYPE_DOUBLE, speed, tc.TYPE_INTEGER, duration)
it expects that duration is an integer.
Output log: