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

Python traci._sendStringCmd函数代码示例

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

本文整理汇总了Python中traci._sendStringCmd函数的典型用法代码示例。如果您正苦于以下问题:Python _sendStringCmd函数的具体用法?Python _sendStringCmd怎么用?Python _sendStringCmd使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了_sendStringCmd函数的19个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。

示例1: setRouteID

def setRouteID(vehID, routeID):
    """setRouteID(string, string) -> None

    Sets the id of the route for the named vehicle.
    """
    traci._sendStringCmd(
        tc.CMD_SET_VEHICLE_VARIABLE, tc.VAR_ROUTE_ID, vehID, routeID)
开发者ID:RamonHPSilveira,项目名称:urbansim,代码行数:7,代码来源:vehicle.py


示例2: setShapeClass

def setShapeClass(typeID, clazz):
    """setShapeClass(string, string) -> None

    Sets the shape class of vehicles of this type. 
    """
    traci._sendStringCmd(
        tc.CMD_SET_VEHICLETYPE_VARIABLE, tc.VAR_SHAPECLASS, typeID, clazz)
开发者ID:sequielo,项目名称:sumo,代码行数:7,代码来源:vehicletype.py


示例3: setRedYellowGreenState

def setRedYellowGreenState(tlsID, state):
    """setRedYellowGreenState(string, string) -> None

    Sets the named tl's state as a tuple of light definitions from rRgGyYoO, for red, green, yellow, off, where lower case letters mean that the stream has to decelerate.
    """
    traci._sendStringCmd(
        tc.CMD_SET_TL_VARIABLE, tc.TL_RED_YELLOW_GREEN_STATE, tlsID, state)
开发者ID:sequielo,项目名称:sumo,代码行数:7,代码来源:trafficlights.py


示例4: trackVehicle

def trackVehicle(viewID, vehID):
    """trackVehicle(string, string) -> None

    Start visually tracking the given vehicle on the given view.
    """
    traci._sendStringCmd(
        tc.CMD_SET_GUI_VARIABLE, tc.VAR_TRACK_VEHICLE, viewID, vehID)
开发者ID:aarongolliver,项目名称:sumo,代码行数:7,代码来源:gui.py


示例5: setEmissionClass

def setEmissionClass(typeID, clazz):
    """setEmissionClass(string, string) -> None

    Sets the emission class of vehicles of this type.
    """
    traci._sendStringCmd(
        tc.CMD_SET_VEHICLETYPE_VARIABLE, tc.VAR_EMISSIONCLASS, typeID, clazz)
开发者ID:sequielo,项目名称:sumo,代码行数:7,代码来源:vehicletype.py


示例6: setShapeClass

def setShapeClass(vehID, clazz):
    """setShapeClass(string, string) -> None

    Sets the shape class for this vehicle.
    """
    traci._sendStringCmd(
        tc.CMD_SET_VEHICLE_VARIABLE, tc.VAR_SHAPECLASS, vehID, clazz)
开发者ID:aarongolliver,项目名称:sumo,代码行数:7,代码来源:vehicle.py


示例7: setSchema

def setSchema(viewID, schemeName):
    """setSchema(string, string) -> None

    Set the current coloring scheme for the given view.
    """
    traci._sendStringCmd(
        tc.CMD_SET_GUI_VARIABLE, tc.VAR_VIEW_SCHEMA, viewID, schemeName)
开发者ID:aarongolliver,项目名称:sumo,代码行数:7,代码来源:gui.py


示例8: setProgram

def setProgram(tlsID, programID):
    """setProgram(string, string) -> None

    Sets the id of the current program.
    """
    traci._sendStringCmd(
        tc.CMD_SET_TL_VARIABLE, tc.TL_PROGRAM, tlsID, programID)
开发者ID:sequielo,项目名称:sumo,代码行数:7,代码来源:trafficlights.py


示例9: setEmissionClass

def setEmissionClass(vehID, clazz):
    """setEmissionClass(string, string) -> None

    Sets the emission class for this vehicle.
    """
    traci._sendStringCmd(
        tc.CMD_SET_VEHICLE_VARIABLE, tc.VAR_EMISSIONCLASS, vehID, clazz)
开发者ID:aarongolliver,项目名称:sumo,代码行数:7,代码来源:vehicle.py


示例10: setRouteID

def setRouteID(vehID, routeID):
    """setRouteID(string, string) -> None

    Changes the vehicles route to the route with the given id.
    """
    traci._sendStringCmd(
        tc.CMD_SET_VEHICLE_VARIABLE, tc.VAR_ROUTE_ID, vehID, routeID)
开发者ID:aarongolliver,项目名称:sumo,代码行数:7,代码来源:vehicle.py


示例11: setType

def setType(vehID, typeID):
    """setType(string, string) -> None

    Sets the id of the type for the named vehicle.
    """
    traci._sendStringCmd(
        tc.CMD_SET_VEHICLE_VARIABLE, tc.VAR_TYPE, vehID, typeID)
开发者ID:aarongolliver,项目名称:sumo,代码行数:7,代码来源:vehicle.py


示例12: screenshot

def screenshot(viewID, filename):
    """screenshot(string, string) -> None
    
    Save a screenshot for the given view to the given filename.
    The fileformat is guessed from the extension, the available 
    formats differ from platform to platform but should at least
    include ps, svg and pdf, on linux probably gif, png and jpg as well.
    """
    traci._sendStringCmd(tc.CMD_SET_GUI_VARIABLE, tc.VAR_SCREENSHOT, viewID, filename)
开发者ID:cathyyul,项目名称:sumo-0.18,代码行数:9,代码来源:gui.py


示例13: setRouteID

def setRouteID(vehID, routeID):
    traci._sendStringCmd(tc.CMD_SET_VEHICLE_VARIABLE, tc.VAR_ROUTE_ID, vehID, routeID)
开发者ID:alkhalaf,项目名称:OST,代码行数:2,代码来源:vehicle.py


示例14: changeTarget

def changeTarget(vehID, edgeID):
    traci._sendStringCmd(tc.CMD_SET_VEHICLE_VARIABLE, tc.CMD_CHANGETARGET, vehID, edgeID)
开发者ID:p1tt1,项目名称:sumo,代码行数:2,代码来源:vehicle.py


示例15: setShapeClass

def setShapeClass(typeID, clazz):
    traci._sendStringCmd(tc.CMD_SET_VEHICLETYPE_VARIABLE, tc.VAR_SHAPECLASS, typeID, clazz)
开发者ID:flemouel,项目名称:Social-Vehicular-Network,代码行数:2,代码来源:vehicletype.py


示例16: setEmissionClass

def setEmissionClass(typeID, clazz):
    traci._sendStringCmd(tc.CMD_SET_VEHICLETYPE_VARIABLE, tc.VAR_EMISSIONCLASS, typeID, clazz)
开发者ID:flemouel,项目名称:Social-Vehicular-Network,代码行数:2,代码来源:vehicletype.py


示例17: setVehicleClass

def setVehicleClass(vehID, clazz):
    traci._sendStringCmd(tc.CMD_SET_VEHICLE_VARIABLE, tc.VAR_VEHICLECLASS, vehID, clazz)
开发者ID:alkhalaf,项目名称:OST,代码行数:2,代码来源:vehicle.py


示例18: setProgram

def setProgram(tlsID, programID):
    traci._sendStringCmd(tc.CMD_SET_TL_VARIABLE, tc.TL_PROGRAM, tlsID, programID)
开发者ID:nnaren1902,项目名称:Secure-Vehicle-Platoon,代码行数:2,代码来源:trafficlights.py


示例19: setRedYellowGreenState

def setRedYellowGreenState(tlsID, state):
    traci._sendStringCmd(tc.CMD_SET_TL_VARIABLE, tc.TL_RED_YELLOW_GREEN_STATE, tlsID, state)
开发者ID:nnaren1902,项目名称:Secure-Vehicle-Platoon,代码行数:2,代码来源:trafficlights.py



注:本文中的traci._sendStringCmd函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
Python traci._subscribe函数代码示例发布时间:2022-05-27
下一篇:
Python traci._sendReadOneStringCmd函数代码示例发布时间: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