OpenHRPExecutionContext.py
Go to the documentation of this file.
00001 #!/usr/bin/env python
00002 # -*- coding: euc-jp -*-
00003 
00004 ##
00005 # @file OpenHRPExecutionContext.py
00006 # @brief OpenHRPExecutionContext class
00007 # @date $Date: 2007/08/29$
00008 # @author Noriaki Ando <n-ando@aist.go.jp> and Shinji Kurihara
00009 #
00010 # Copyright (C) 2006-2008
00011 #     Task-intelligence Research Group,
00012 #     Intelligent Systems Research Institute,
00013 #     National Institute of
00014 #         Advanced Industrial Science and Technology (AIST), Japan
00015 #     All rights reserved.
00016 
00017 
00018 import OpenRTM_aist
00019 
00020 class OpenHRPExecutionContext(OpenRTM_aist.PeriodicExecutionContext):
00021 
00022     def __init__(self):
00023         OpenRTM_aist.PeriodicExecutionContext.__init__(self)
00024         return
00025 
00026 
00027     def tick(self):
00028         for comp in self._comps:
00029             comp._sm.worker()
00030 
00031     def svc(self):
00032         return 0
00033 
00034 
00035 def OpenHRPExecutionContextInit(manager):
00036   manager.registerECFactory("OpenHRPExecutionContext",
00037                             OpenRTM_aist.OpenHRPExecutionContext,
00038                             OpenRTM_aist.ECDelete)


openrtm_aist_python
Author(s): Shinji Kurihara
autogenerated on Thu Aug 27 2015 14:17:28