• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Python traci._sendDoubleCmd函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了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;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Python traci._sendExact函数代码示例发布时间:2022-05-27
下一篇:
Python traci._checkResult函数代码示例发布时间:2022-05-27
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap