本文整理汇总了Python中traci._sendDoubleCmd函数的典型用法代码示例。如果您正苦于以下问题:Python _sendDoubleCmd函数的具体用法?Python _sendDoubleCmd怎么用?Python _sendDoubleCmd使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了_sendDoubleCmd函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: setWidth
def setWidth(vehID, width):
"""setWidth(string, double) -> None
Sets the width in m for this vehicle.
"""
traci._sendDoubleCmd(
tc.CMD_SET_VEHICLE_VARIABLE, tc.VAR_WIDTH, vehID, width)
示例2: setMinGap
def setMinGap(vehID, minGap):
"""setMinGap(string, double) -> None
Sets the offset (gap to front vehicle if halting) for this vehicle.
"""
traci._sendDoubleCmd(
tc.CMD_SET_VEHICLE_VARIABLE, tc.VAR_MINGAP, vehID, minGap)
示例3: setSpeedDeviation
def setSpeedDeviation(vehID, deviation):
"""setSpeedDeviation(string, double) -> None
Sets the maximum speed deviation for this vehicle.
"""
traci._sendDoubleCmd(
tc.CMD_SET_VEHICLE_VARIABLE, tc.VAR_SPEED_DEVIATION, vehID, deviation)
示例4: setLength
def setLength(vehID, length):
"""setLength(string, double) -> None
Sets the length in m for the given vehicle.
"""
traci._sendDoubleCmd(
tc.CMD_SET_VEHICLE_VARIABLE, tc.VAR_LENGTH, vehID, length)
示例5: setSpeed
def setSpeed(vehID, speed):
"""setSpeed(string, double) -> None
Sets the speed in m/s for the named vehicle within the last step.
"""
traci._sendDoubleCmd(
tc.CMD_SET_VEHICLE_VARIABLE, tc.VAR_SPEED, vehID, speed)
示例6: setDecel
def setDecel(vehID, decel):
"""setDecel(string, double) -> None
Sets the maximum deceleration in m/s^2 for this vehicle.
"""
traci._sendDoubleCmd(
tc.CMD_SET_VEHICLE_VARIABLE, tc.VAR_DECEL, vehID, decel)
示例7: setTau
def setTau(typeID, tau):
"""setTau(string, double) -> None
Sets the driver's reaction time in s for vehicles of this type.
"""
traci._sendDoubleCmd(
tc.CMD_SET_VEHICLETYPE_VARIABLE, tc.VAR_TAU, typeID, tau)
示例8: setMaxSpeed
def setMaxSpeed(edgeID, speed):
"""setMaxSpeed(string, double) -> None
Set a new maximum speed (in m/s) for all lanes of the edge.
"""
traci._sendDoubleCmd(
tc.CMD_SET_EDGE_VARIABLE, tc.VAR_MAXSPEED, edgeID, speed)
示例9: setLength
def setLength(laneID, length):
"""setLength(string, double) -> None
Sets the length of the lane in m.
"""
traci._sendDoubleCmd(
tc.CMD_SET_LANE_VARIABLE, tc.VAR_LENGTH, laneID, length)
示例10: setDecel
def setDecel(typeID, decel):
"""setDecel(string, double) -> None
Sets the maximum deceleration in m/s^2 of vehicles of this type.
"""
traci._sendDoubleCmd(
tc.CMD_SET_VEHICLETYPE_VARIABLE, tc.VAR_DECEL, typeID, decel)
示例11: setWidth
def setWidth(typeID, width):
"""setWidth(string, double) -> None
Sets the width in m of vehicles of this type.
"""
traci._sendDoubleCmd(
tc.CMD_SET_VEHICLETYPE_VARIABLE, tc.VAR_WIDTH, typeID, width)
示例12: setSpeedFactor
def setSpeedFactor(typeID, factor):
"""setSpeedFactor(string, double) -> None
.
"""
traci._sendDoubleCmd(
tc.CMD_SET_VEHICLETYPE_VARIABLE, tc.VAR_SPEED_FACTOR, typeID, factor)
示例13: setSpeedDeviation
def setSpeedDeviation(typeID, deviation):
"""setSpeedDeviation(string, double) -> None
Sets the maximum speed deviation of vehicles of this type.
"""
traci._sendDoubleCmd(
tc.CMD_SET_VEHICLETYPE_VARIABLE, tc.VAR_SPEED_DEVIATION, typeID, deviation)
示例14: setLength
def setLength(typeID, length):
"""setLength(string, double) -> None
Sets the length in m of the vehicles of this type.
"""
traci._sendDoubleCmd(
tc.CMD_SET_VEHICLETYPE_VARIABLE, tc.VAR_LENGTH, typeID, length)
示例15: setMaxSpeed
def setMaxSpeed(typeID, speed):
"""setMaxSpeed(string, double) -> None
Sets the maximum speed in m/s of vehicles of this type.
"""
traci._sendDoubleCmd(
tc.CMD_SET_VEHICLETYPE_VARIABLE, tc.VAR_MAXSPEED, typeID, speed)