MySdoServiceConsumer.py
Go to the documentation of this file.
00001 #!/usr/bin/env python
00002 # -*- Python -*-
00003 
00004 
00005 ## \file MySdoServiceConsumer.py
00006 ## \brief test for SdoServiceConsumer class
00007 ## \date $Date: $
00008 ## \author Shinji Kurihara
00009 #
00010 # Copyright (C) 2011
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 sys
00019 sys.path.insert(1,"../")
00020 sys.path.insert(1,"../RTM_IDL")
00021 import OpenRTM_aist
00022 import OpenRTM
00023 
00024 
00025 class MySdoServiceConsumer(OpenRTM_aist.SdoServiceConsumerBase):
00026   def __init__(self):
00027     self._profile = None
00028     self._rtobj = None
00029     return
00030 
00031   def __del__(self):
00032     return
00033 
00034   def init(self, rtobj, profile):
00035     self._rtobj = rtobj
00036     self._profile = profile
00037     return True
00038 
00039   def reinit(self, profile):
00040     return
00041 
00042   def getProfile(self):
00043     return self._profile
00044 
00045   def finalize(self):
00046     return
00047 
00048 
00049 def MySdoServiceConsumerInit(manager):
00050   factory = OpenRTM_aist.SdoServiceConsumerFactory.instance()
00051   factory.addFactory(OpenRTM_aist.toTypename(OpenRTM.ComponentObserver),
00052                      MySdoServiceConsumer,
00053                      OpenRTM_aist.Delete)
00054   return


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