Skip to content

Commit c49e7c0

Browse files
authored
Merge pull request #41 from Nobu19800/bug/component_observer_12
ComponentObserverのバグ修正(1.2)
2 parents 8e6b717 + 00e5b56 commit c49e7c0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

OpenRTM_aist/ext/sdo/observer/ComponentObserverConsumer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ def toString(self, kind):
188188
"PORT_PROFILE",
189189
"CONFIGURATION",
190190
"HEARTBEAT"]
191-
if kind._v < OpenRTM.STATUS_KIND_NUM._v:
191+
if kind._v < len(kinds):
192192
return kinds[kind._v]
193193
return ""
194194

@@ -603,7 +603,7 @@ def unsetExecutionContextListeners(self):
603603
self._ecaction.ecAttached)
604604

605605
if self._ecaction.ecDetached:
606-
self._rtobj.removeExecutionContextActionListener(ectype_.EC_ATTACHED,
606+
self._rtobj.removeExecutionContextActionListener(ectype_.EC_DETACHED,
607607
self._ecaction.ecDetached)
608608

609609
pcaltype_ = OpenRTM_aist.PostComponentActionListenerType

0 commit comments

Comments
 (0)