PJLab-ADG / LimSim

LimSim & LimSim++: Integrated traffic and autonomous driving simulators with (M)LLM support
https://pjlab-adg.github.io/LimSim/
GNU General Public License v3.0
417 stars 35 forks source link

Some questions about carFactory.py #13

Closed AntaiXie closed 7 months ago

AntaiXie commented 11 months ago

Hello, I would like to know the purpose of the code on line 246 in carFactory.py? Can it be deleted or how should it be changed? Because I found that the maximum acceleration of vehicles leaving the AOI area has been changed, which can cause congestion due to the low speed of vehicles leaving the AOI area. if accel >= 0: traci.vehicle.setAccel(self.id, accel) traci.vehicle.setDecel(self.id, self.maxDecel) else: traci.vehicle.setAccel(self.id, self.maxAccel) traci.vehicle.setDecel(self.id, -accel) else: traci.vehicle.setLaneChangeMode(self.id, 0) traci.vehicle.setSpeedMode(self.id, 0) traci.vehicle.moveToXY(self.id, '', -1, x, y, angle=angle, keepRoute=2) traci.vehicle.setSpeed(self.id, speed) if accel >= 0: traci.vehicle.setAccel(self.id, accel) traci.vehicle.setDecel(self.id, self.maxDecel) else: traci.vehicle.setAccel(self.id, self.maxAccel) traci.vehicle.setDecel(self.id, -accel)

image

zijinoier commented 9 months ago

The purpose is that the vehicle's accelearation and deceleration is set seperately in SUMO, so it need to be converted.

github-actions[bot] commented 7 months ago

Stale issue message, no activity