[openrtm-users 00844] OpenRTM1.0.0-RC1.0.0で廃止されたメソッドについて

3 posts / 0 new
Last post
root
Offline
Last seen: 18 hours 15 min ago
Joined: 2009-06-23 14:31
[openrtm-users 00844] OpenRTM1.0.0-RC1.0.0で廃止されたメソッドについて

産総研 知能システム研究部門 ヒューマノイド研究グループ
にてお世話になっております 俵です。

現在OpenHRP3.1.0β2ベースでOpenRTM0.4.2からOpenRTM1.0.0-RC1への対応を
行なっていますが、
interface RTObject のメソッドget_execution_context_services()が
1.0.0では無くなってしまっているので
代わりになる方法を探しています。
ご教示ください。

get_execution_context_services()を使用する目的は、
RTC::PortService(0.4.2でいうところのRTC::Port)から
RTC::RTObject_varを取得して
OpenRTM::ExtTrigExecutionContextServiceを
参照するためです。
よろしくお願いします。

Undefined
root
Offline
Last seen: 18 hours 15 min ago
Joined: 2009-06-23 14:31
[openrtm-users 00845] OpenRTM1.0.0-RC1.0.0 で廃止されたメソッドについて

静岡大 清水です。

1.0のIDLを見る限りでは、
LightweightRTObject::get_owned_contexts()、または
LightweightRTObject::get_participating_contexts()
でExecutionContextのリストが取得できそうです。
また、取得したいECのIDが分かっているなら、
LightweightRTObject::get_context()
というメソッドもあります。

あとは、OpenRTM::ExtTrigExecutionContextService
にナローイングすれば目的のCORBA参照が
取得できるかと思います。

# 私は試したことはないので、もし問題があれば
OpenRTM-aist開発チームに報告するとよいかと思います。

清水

root
Offline
Last seen: 18 hours 15 min ago
Joined: 2009-06-23 14:31
[openrtm-users 00846] OpenRTM1.0.0-RC1.0.0 で廃止されたメソッドについて

清水様

俵です。
ご指摘通りに
get_owned_contexts()
を使用することで狙い通りの動作が得られそうです。
ありがとうございました。

Masayuki Shimizu wrote 2009/06/20 17:23:
> 静岡大 清水です。
>
> 1.0のIDLを見る限りでは、
> LightweightRTObject::get_owned_contexts()、または
> LightweightRTObject::get_participating_contexts()
> でExecutionContextのリストが取得できそうです。
> また、取得したいECのIDが分かっているなら、
> LightweightRTObject::get_context()
> というメソッドもあります。
>
> あとは、OpenRTM::ExtTrigExecutionContextService
> にナローイングすれば目的のCORBA参照が
> 取得できるかと思います。
>
> # 私は試したことはないので、もし問題があれば
> OpenRTM-aist開発チームに報告するとよいかと思います。
>
> 清水
>

Log in or register to post comments

Download

latest Releases : 2.0.0-RELESE

2.0.0-RELESE Download page

Number of Projects

Choreonoid

Motion editor/Dynamics simulator

OpenHRP3

Dynamics simulator

OpenRTP

Integrated Development Platform

AIST RTC collection

RT-Components collection by AIST

TORK

Tokyo Opensource Robotics Association

DAQ-Middleware

Middleware for DAQ (Data Aquisition) by KEK