Re: [sumo-user] Default speed mode value used in Sumo

2017-10-19 Thread Jakob Erdmann via sumo-user
Hello, the default speed mode is 31. Please check whether the vehicles have already reached their maximum desired speed (speedLimit * speedFactor). Also, remove any previous setSpeed() commands by sending traci.vehicle.setSpeed(vehID, -1). Furthermore, ensure that the maximum allowed acceleration v

[sumo-user] Default speed mode value used in Sumo

2017-10-19 Thread Santa Maiti via sumo-user
Hi Jacob, Could you please tell me what is the default speed mode value used in Sumo, where the vehicles speed up if the lane is free? I thought it's 31. In my simulation, I first made the speed mode as 0 that makes all checks off. In next simulation step when I'm resetting the speed mode in 31, t

Re: [sumo-user] Stop the pedestrian at a certain position while crossing

2017-10-19 Thread Jakob Erdmann
Hello, To make the person stop you can use traci.person.setSpeed(personID, 0) The value returned by traci.person.getLanePosition() returns the distance from the start of that lane in m. Since the crossing lane is orthogonal to the road lanes you should be able to stop in the middle of a road lane w

[sumo-user] Stop the pedestrian at a certain position while crossing

2017-10-19 Thread Sara el hamdani via sumo-user
Hello, I want that pedestrians would cross the road one lane at a time so that they would stop at the line (the red line in the figure) after passing a lane before they continue the corssing. I tried with traci.person.getLanePosition() but it doesn't seem to be what I need, and I am not sure the

Re: [sumo-user] The right way of using TraCI Clients in C++

2017-10-19 Thread Jakob Erdmann
Hello, the answer is (A). The special handling in (B) is only done to simplify our regression tests. regards, Jakob 2017-10-19 8:50 GMT+02:00 Marc Rene Zofka via sumo-user < sumo-u...@lists.sourceforge.net>: > Hi, > > i've got a question concerning the appropriate way of implementing and > using

[sumo-user] The right way of using TraCI Clients in C++

2017-10-19 Thread Marc Rene Zofka via sumo-user
Hi, i've got a question concerning the appropriate way of implementing and using TraCI C++ for controlling sumo externally. Currently, there seems to be two distinct ways of, e.g., subscribing to sumo quantities (such as vehicle position and speed): (A) According to [1]: Here, an exemplary