本文整理匯總了Python中burst.behavior.InitialBehavior類的典型用法代碼示例。如果您正苦於以下問題:Python InitialBehavior類的具體用法?Python InitialBehavior怎麽用?Python InitialBehavior使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
在下文中一共展示了InitialBehavior類的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: __init__
def __init__(self, actions):
InitialBehavior.__init__(self, actions=actions, name=self.__class__.__name__, initial_pose=poses.SIT_POS)
self._world.ball.shouldComputeIntersection = True
self.targetFinder = TargetFinder(actions=self._actions, targets=[self._world.ball], start=False)
self.targetFinder.setOnTargetFoundCB(self.targetFound)
self.targetFinder.setOnTargetLostCB(self.targetLost)
self.targetFinder.setOnSearchFailedCB(self.searchFailed)
示例2: __init__
def __init__(self, actions):
InitialBehavior.__init__(self, actions=actions, name=self.__class__.__name__)
示例3: __init__
def __init__(self, actions):
InitialBehavior.__init__(self, actions=actions, name=self.__class__.__name__, initial_pose=poses.STRAIGHT_WALK_INITIAL_POSE)
示例4: __init__
def __init__(self, actions):
InitialBehavior.__init__(self, actions=actions, name=self.__class__.__name__, initial_pose=poses.SIT_POS)
示例5: __init__
def __init__(self, actions):
InitialBehavior.__init__(self, actions=actions, name=self.__class__.__name__, initial_pose=poses.STRAIGHT_WALK_INITIAL_POSE)
self._ballFinder = TargetFinder(actions=actions, targets=[self._world.ball], start=False)
self._ballFinder.setOnTargetFoundCB(self.ball_found)
self._ballFinder.setOnTargetLostCB(self.ball_lost)