How to connect and activate rt-components dynamically?

3 posts / 0 new
Last post
Amigoshan
Offline
Last seen: 9 years 6 months ago
Joined: 2011-12-01 14:18
How to connect and activate rt-components dynamically?

Hello, everyone:

I'm designing a network robot system with openRTM-AIST. It's very important to have the rt-components connect/discnnect and activate/inactivate dynamically in our own program. It can be easily realized by RtsystemEditor, however, we would like to realize it in our own control program, say, a java or c++ program without graphical user interface. I have searched for days but got very few documentation or example on this feild, and still don't know how to code this. Would you please give me some advice on this, or some links to docs and examples?

Thank you very much!

Wenshan

 

English
gbiggs
Offline
Last seen: 6 years 9 months ago
Joined: 2010-08-02 07:51
[openrtm-users 02375] How to connect and activate rt-components

Hi Weshan,

At the moment, the best tool we have for doing what you want is rtshell. It is implemented as a set of modules for functions such as making connections and activating components. You can import the modules you need from the rtshell library and call them; see the scripts that are also provided with rtshell (which are normally called from the command line) for examples. We have a few users using rtshell in this way to do what you are trying to do, including from GUI tools and command line tools. It provides quite a high level interface.

We also provide a library called rtctree. This is what rtshell uses internally. It provides an abstraction of the runing components, allowing them to be searched, connected, etc. It is not as high-level an interface as rtshell, but it provides more flexibility.

If rtshell and rtctree are not suitable, the alternative is to use the CORBA interfaces specified in the RTC specification. You can find examples of doing this in the OpenRTM examples and in the rtshell source. These interfaces give you complete dynamic control over components, but you will need some CORBA experience.

Geoffshanshan1370@sina.com wrote:

Hello, everyone: I'm designing a network robot system with openRTM-AIST. It'svery important to have the rt-components connect/discnnect andactivate/inactivate dynamically in our own program. It can be easily realizedby RtsystemEditor, however, we would like to realize it in our own controlprogram, say, a java or c++ program without graphical user interface. I havesearched for days but didn't get any documentation or example on this feild.Would you please give me some advice on this, or some links to docs andexamples? Thank you very much! Wenshanopenrtm-users mailing listopenrtm-users@openrtm.orghttp://www.openrtm.org/mailman/listinfo/openrtm-users

Amigoshan
Offline
Last seen: 9 years 6 months ago
Joined: 2011-12-01 14:18
[openrtm-users 02375] How to connect and activate rt-components

gbiggs:

Thank you very much for your detailed advice! I believe it will help a lot. Thank you again for your kindness and patience!

Wenshan

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