Project

General

Profile

Actions

整備 #4459

open

Python 3.6の場合にrtctreeのコネクタ接続処理が例外を出す

Added by n-miyamoto almost 7 years ago.

Status:
新規
Priority:
低め
Assignee:
-
Target version:
-
Start date:
02/27/2018
Due date:
% Done:

0%

Estimated time:

Description

Python 3.6でrtctreeでコネクタを接続した場合に、接続自体は成功するが、connect関数が例外を投げる。

以下のようOpenRTM-aistのRTCモジュールと、rtctreeのrtc.RTCモジュールをインポートした場合に、下のprint文はPython 2.7の場合にTrueを出力して、Python 3.6の場合にはFalseを出力する。

import rtctree.rtc.RTC
import OpenRTM_aist
import RTC

print((RTC.RTC_OK==rtctree.rtc.RTC.RTC_OK))

おそらく、rtctreeのconnect関数実行時に、PortServiceのconnectが返すRTC_OKはOpenRTM_aistのRTCモジュールのものであることが原因。

このため、OpenRTM_aistをインポートせずにrtctreeのみをインポートした場合には問題なく動作できる。

No data to display

Actions

Also available in: Atom PDF