MCPcopy Create free account
hub / github.com/PJLab-ADG/OASim / exitControlMode

Method exitControlMode

limsim/simModel/common/carFactory.py:284–292  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

282
283 # exit control mode and set self.iscontroled = 0
284 def exitControlMode(self):
285 if self._iscontroled:
286 try:
287 traci.vehicle.setLaneChangeMode(self.id, 0b101010101010)
288 traci.vehicle.setSpeedMode(self.id, 0b010111)
289 traci.vehicle.setSpeed(self.id, 20)
290 except TraCIException:
291 pass
292 self._iscontroled = 0
293
294 def replayUpdate(self):
295 # if plannedTrajectory and dbTrajectory are both empty, return 'Failure',

Callers 6

updateSurroudVehMethod · 0.80
vehMoveStepMethod · 0.80
updateSurroundVehMethod · 0.80
vehMoveStepMethod · 0.80
runMethod · 0.80
model_move_stepMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected