当前位置: 首页>>代码示例>>Python>>正文


Python TimerCallback.__init__方法代码示例

本文整理汇总了Python中director.timercallback.TimerCallback.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python TimerCallback.__init__方法的具体用法?Python TimerCallback.__init__怎么用?Python TimerCallback.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在director.timercallback.TimerCallback的用法示例。


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

示例1: __init__

# 需要导入模块: from director.timercallback import TimerCallback [as 别名]
# 或者: from director.timercallback.TimerCallback import __init__ [as 别名]
 def __init__(self, view):
     TimerCallback.__init__(self)
     self.view = view
     self.flyTime = 0.5
     self.startTime = 0.0
     self.maintainViewDirection = False
     self.positionZoom = 0.7
开发者ID:patmarion,项目名称:director,代码行数:9,代码来源:cameracontrol.py

示例2: __init__

# 需要导入模块: from director.timercallback import TimerCallback [as 别名]
# 或者: from director.timercallback.TimerCallback import __init__ [as 别名]
    def __init__(self, view, channelName, coordinateFrame, sensorName, intensityRange):
        TimerCallback.__init__(self)
        self.view = view
        self.channelName = channelName
        self.reader = None
        self.displayedRevolution = -1
        self.lastScanLine = 0
        self.numberOfScanLines = 1000
        self.nextScanLineId = 0
        self.scanLines = []
        self.pointSize = 1
        self.alpha = 0.5
        self.visible = True
        self.colorBy = 'Solid Color'
        self.initScanLines()
        self.sensorName = sensorName
        self.coordinateFrame = coordinateFrame

        self.revPolyData = vtk.vtkPolyData()
        self.polyDataObj = vis.PolyDataItem('Lidar Sweep', self.revPolyData, view)
        self.polyDataObj.actor.SetPickable(1)

        self.polyDataObj.setRangeMap('intensity', intensityRange)

        self.setPointSize(self.pointSize)
        self.setAlpha(self.alpha)
        self.targetFps = 60
        self.colorizeCallback = None
开发者ID:RobotLocomotion,项目名称:director,代码行数:30,代码来源:perception.py

示例3: __init__

# 需要导入模块: from director.timercallback import TimerCallback [as 别名]
# 或者: from director.timercallback.TimerCallback import __init__ [as 别名]
 def __init__(self, view, callbackFunc=None):
     TimerCallback.__init__(self)
     self.reader = None
     self.folder = None
     self.view = view
     self.displayedMapIds = {}
     self.polyDataObjects = {}
     self.targetFps = 10
     self.callbackFunc = callbackFunc
     self.colorizeCallback = None
     self.useMeshes = True
开发者ID:tkoolen,项目名称:director,代码行数:13,代码来源:perception.py

示例4: __init__

# 需要导入模块: from director.timercallback import TimerCallback [as 别名]
# 或者: from director.timercallback.TimerCallback import __init__ [as 别名]
 def __init__(self, jointController):
     TimerCallback.__init__(self)
     self.controller = jointController
     self.testTime = 2.0
开发者ID:tkoolen,项目名称:director,代码行数:6,代码来源:jointcontrol.py


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