プロジェクト

全般

プロフィール

機能 #1518

完了

Python用の生成されるコードで、MyModuleInit()を<RTC名>Init()とMyModuleInit()に分ける。

kurihara さんが約14年前に追加. 約14年前に更新.

ステータス:
終了
優先度:
通常
担当者:
-
対象バージョン:
-
開始日:
2010/05/21
期日:
進捗率:

100%

予定工数:

説明

Python用の生成されるコードで、MyModuleInit()を<RTC名>Init()とMyModuleInit()に分ける。

現在のバージョン

def MyModuleInit(manager):
    profile = OpenRTM_aist.Properties(defaults_str=foo_spec)
    manager.registerFactory(profile,
                            foo,
                            OpenRTM_aist.Delete)

    # Create a component
    comp = manager.createComponent("foo")

変更後

def fooInit(manager):
    profile = OpenRTM_aist.Properties(defaults_str=foo_spec)
    manager.registerFactory(profile,
                            foo,
                            OpenRTM_aist.Delete)

def MyModuleInit(manager):
    fooInit(manager)    

    # Create a component
    comp = manager.createComponent("foo")

他の形式にエクスポート: Atom PDF