Actions
整備 #3039
openネームサービスに登録する名前のフォーマットに関する改良
Start date:
03/14/2014
Due date:
% Done:
100%
Estimated time:
Description
C++版 #208 r2522相当の変更
ネームサービスに登録する際の名前の指定子に、ベース名(implementaion_id)と番号も個別に指定できるようにする。
Manager::formatString 関数に以下の5行を追加。
else if (c == 'c') str = prop["category"];
else if (c == 'i') str = prop["implementation_id"];
else if (c == 'N') {
+ size_t n =
prop["implementation_id"].size();
+ str = prop["instance_name"].substr(n);
}
else if (c == 'h') str += m_config["manager.os.hostname"];
rtc.conf内で
naming.formats: %h.host_cxt/%i-%N.rtc
とすると、
ManipulatorPA10-0
のような名前でネームサーバに登録される。
Updated by katami over 7 years ago
動作確認¶
ConsoleInを -oオプションで起動
$ ./ConsoleIn.sh -o naming.formats:%h.host_cxt/%i-%N.rtc
rtls で確認
$ rtls localhost/ubuntu.host_cxt/ -l Inactive 1/0 0/0 1/0 0/0 ConsoleIn-0.rtc
Updated by katami over 7 years ago
- Status changed from 新規 to 担当
- Assignee set to katami
- Target version set to RELEASE_1_2_0
- % Done changed from 0 to 100
Actions