本文整理汇总了Python中traci._sendDoubleCmd函数的典型用法代码示例。如果您正苦于以下问题:Python _sendDoubleCmd函数的具体用法?Python _sendDoubleCmd怎么用?Python _sendDoubleCmd使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了_sendDoubleCmd函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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)
开发者ID:aarongolliver,项目名称:sumo,代码行数:7,代码来源:vehicle.py
示例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)
开发者ID:aarongolliver,项目名称:sumo,代码行数:7,代码来源:vehicle.py
示例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)
开发者ID:aarongolliver,项目名称:sumo,代码行数:7,代码来源:vehicle.py
示例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)
开发者ID:aarongolliver,项目名称:sumo,代码行数:7,代码来源:vehicle.py
示例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)
开发者ID:aarongolliver,项目名称:sumo,代码行数:7,代码来源:vehicle.py
示例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)
开发者ID:aarongolliver,项目名称:sumo,代码行数:7,代码来源:vehicle.py
示例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)
开发者ID:sequielo,项目名称:sumo,代码行数:7,代码来源:vehicletype.py
示例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)
开发者ID:RamonHPSilveira,项目名称:urbansim,代码行数:7,代码来源:edge.py
示例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)
开发者ID:aarongolliver,项目名称:sumo,代码行数:7,代码来源:lane.py
示例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)
开发者ID:sequielo,项目名称:sumo,代码行数:7,代码来源:vehicletype.py
示例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)
开发者ID:sequielo,项目名称:sumo,代码行数:7,代码来源:vehicletype.py
示例12: setSpeedFactor
def setSpeedFactor(typeID, factor):
"""setSpeedFactor(string, double) -> None
.
"""
traci._sendDoubleCmd(
tc.CMD_SET_VEHICLETYPE_VARIABLE, tc.VAR_SPEED_FACTOR, typeID, factor)
开发者ID:sequielo,项目名称:sumo,代码行数:7,代码来源:vehicletype.py
示例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)
开发者ID:sequielo,项目名称:sumo,代码行数:7,代码来源:vehicletype.py
示例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)
开发者ID:sequielo,项目名称:sumo,代码行数:7,代码来源:vehicletype.py
示例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)
开发者ID:sequielo,项目名称:sumo,代码行数:7,代码来源:vehicletype.py
示例16: setMaxSpeed
def setMaxSpeed(laneID, speed):
"""setMaxSpeed(string, double) -> None
Sets a new maximum allowed speed on the lane in m/s.
"""
traci._sendDoubleCmd(
tc.CMD_SET_LANE_VARIABLE, tc.VAR_MAXSPEED, laneID, speed)
开发者ID:aarongolliver,项目名称:sumo,代码行数:7,代码来源:lane.py
示例17: setImperfection
def setImperfection(typeID, imperfection):
"""setImperfection(string, double) -> None
.
"""
traci._sendDoubleCmd(
tc.CMD_SET_VEHICLETYPE_VARIABLE, tc.VAR_IMPERFECTION, typeID, imperfection)
开发者ID:sequielo,项目名称:sumo,代码行数:7,代码来源:vehicletype.py
示例18: setMaxSpeed
def setMaxSpeed(vehID, speed):
"""setMaxSpeed(string, double) -> None
Sets the maximum speed in m/s for this vehicle.
"""
traci._sendDoubleCmd(
tc.CMD_SET_VEHICLE_VARIABLE, tc.VAR_MAXSPEED, vehID, speed)
开发者ID:aarongolliver,项目名称:sumo,代码行数:7,代码来源:vehicle.py
示例19: setMinGap
def setMinGap(typeID, minGap):
"""setMinGap(string, double) -> None
Sets the offset (gap to front vehicle if halting) of vehicles of this type.
"""
traci._sendDoubleCmd(
tc.CMD_SET_VEHICLETYPE_VARIABLE, tc.VAR_MINGAP, typeID, minGap)
开发者ID:sequielo,项目名称:sumo,代码行数:7,代码来源:vehicletype.py
示例20: setZoom
def setZoom(viewID, zoom):
"""setZoom(string, double) -> None
Set the current zoom factor for the given view.
"""
traci._sendDoubleCmd(
tc.CMD_SET_GUI_VARIABLE, tc.VAR_VIEW_ZOOM, viewID, zoom)
开发者ID:aarongolliver,项目名称:sumo,代码行数:7,代码来源:gui.py
注:本文中的traci._sendDoubleCmd函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论