rtc.conf

4 個の投稿 / 0 new
最終投稿
olivier.stasse
オフライン
Last seen: 14年 10ヶ月 前
登録日: 2011-11-17 00:13
rtc.conf

Dear all, I have a question regarding the proper way to provide information to a RTC component.

Reading the source code of openhrp-controller-bridge, it seems that the author is going through a complicated pathway to read a configuration file.

He had to write a specific parser for the config file (BrigeConf.cpp), and rewrote the initialization of the component in the main procedure (main.cpp).

However it is very simple to write the needed information direclty inside rtc.conf, and after to use the properties given the manager through getConfig().

Is it a bad practice to use rtc.conf to convey data for a specific component ?

For instance in my case, I wanted to specify a directory where a set of data is stored. I just added: fast-replanner.path = /path/to/directory to rtc.conf to retrieve it through manager->getConfig().

未定義
gbiggs
オフライン
Last seen: 9年 1ヶ月 前
登録日: 2010-08-02 07:51
[openrtm-users 02334] rtc.conf

Generally, we prefer to put component-specific configuration in a .conf
file that is just for that component. Then we put a line in rtc.conf
indicating the configuration file to use for that component. For example:

example.ConfigSample.config_file: configsample.conf

This line is setting a property, so it can be customised to set the
configuration for all components with the same type name or just for a
single component with a specific instance name.

If you look in the example directory installed with OpenRTM (on Linux,
it's installed to share/openrtm-1.1/example), you can see components
being configured in this way.

Geoff

On 17/11/11 00:42, ostasse@laas.fr wrote:
> Dear all, I have a question regarding the proper way to provide information
> to a RTC component. Reading the source code of
> openhrp-controller-bridge, it
> seems that the author is going through a complicated pathway to read a
> configuration file. He had to write a specific parser for the config file
> (BrigeConf.cpp), and rewrote the initialization of the component in the
> main
> procedure (main.cpp). However it is very simple to write the needed
> information direclty inside rtc.conf, and after to use the properties given
> the manager through getConfig(). Is it a bad practice to use rtc.conf to
> convey data for a specific component ? For instance in my case, I wanted to
> specify a directory where a set of data is stored. I just added:
> fast-replanner.path = /path/to/directory to rtc.conf to retrieve it through
> manager->getConfig().
>
> _______________________________________________
> openrtm-users mailing list
> openrtm-users@openrtm.org
> http://www.openrtm.org/mailman/listinfo/openrtm-users
_______________________________________________
openrtm-users mailing list
openrtm-users@openrtm.org
http://www.openrtm.org/mailman/listinfo/openrtm-users

olivier.stasse
オフライン
Last seen: 14年 10ヶ月 前
登録日: 2011-11-17 00:13
[openrtm-users 02334] rtc.conf

Dear Geoff, Thank you very much for the advice and the quick reply.

Olivier.

olivier.stasse
オフライン
Last seen: 14年 10ヶ月 前
登録日: 2011-11-17 00:13
[openrtm-users 02341] rtc.conf

Dear Geoff, Thank you very much for the advice and the quick reply. Olivier.

_______________________________________________
openrtm-users mailing list
openrtm-users@openrtm.org
http://www.openrtm.org/mailman/listinfo/openrtm-users

Log in or register to post comments

ダウンロード

最新バージョン : 2.1.0-RELESE

統計

Webサイト統計
ユーザ数:3399
プロジェクト統計
RTコンポーネント309
RTミドルウエア35
ツール25
文書・仕様書2

OpenRTM@Github

OpenRTM-aist GitHubサイト

ROS

Robot Operating System

Choreonoid

モーションエディタ/シミュレータ

DAQ-Middleware

ネットワーク分散環境でデータ収集用ソフトウェアを容易に構築するためのソフトウェア・フレームワーク

産総研が提供するRTC集

東京オープンソースロボティクス協会