sumo icon indicating copy to clipboard operation
sumo copied to clipboard

The next step vehicle speed is not equal to traci.vehicle.setSpeed(vehicle, speed)

Open zhubing1996 opened this issue 3 years ago • 1 comments

hello: Add your issue description here. I want to control the speed of the vehicle in the next step through traci.setSpeed, but The next step vehicle speed is not equal to traci.vehicle.setSpeed(vehicle, speed) both at low speed, medium speed or high speed. Figure 1 is a Python file; Figure 2 is the rou.xml file; Figure 3 is the output at low speed; Figure 4 is the output at medium speed; Figure 5 is the output at high speed. I tried decel = 3 or 10, sigma = 0 or 0.5, tau = 0.5, 0.6 or 0.7 in the rou.xml file, but not solve the problem. Or does the built-in CACC model in SUMO affect setSpeed? What's the solution? Or something I didn't take into account? * Figure1 image Figure2 image Figure3 image Figure4 image Figure5 image

**SUMO-version:**1.14.1, 1.13and 1.10 all tested

**operating system:**win10

zhubing1996 avatar Jul 25 '22 01:07 zhubing1996

Did you alter the speed mode, too? If not, there may be situations where SUMO considers your speed as unsafe and ignores it. In order to study your problem better, you could also attach a minimum working example here. Instead of providing your script, you can record the TraCI calls (see docs).

m-kro avatar Jul 25 '22 07:07 m-kro

closing for lack of feedback, please add a comment if you need more help

behrisch avatar Feb 18 '23 15:02 behrisch