(G)In this section, we will explain how to build a system by combining multiple RTCs created.
(G)Distributed Object Middleware provides transparent access via proxy objects that hold references to objects on the computer at arbitrary locations. This reference is called IOR (Interoperable Object Reference) in CORBA, and the entity is the encoded address and port of the computer where the object exists and the key unique to the object. As a method of using the IOR of an object from a program on another computer, there is a method of registering it on a server on the network. A service that registers and acquires this reference is a name service. The name service is one of the standard services defined by CORBA, and in OpenRTM-aist, a wrapper command rtm-naming is provided.
(G)Before starting up the system, you need to start the name server registering RTC. In addition, for each RTC, it is necessary to give the name server location in advance in the configuration file rtc.conf . For example, if you start a name server on the host name openrtm.mydomain.net , you need to give rtc.conf to all the RTCs as described below.
(G)In addition, the name server can also be given as an IP address, and by separating it with "," you can register RTC to multiple servers at the same time. Normally, it is not necessary to frequently rewrite the configuration file, since the name server can usually be kept running for a long time and it is fixed in the system.
System construction with RTSystemEditor
The system runs by running some created RTCs, connecting and activating those ports. RTSystemEditor is provided as a tool for sending activation and deactivation commands to RTC's connection and RTC and starting up the system.
(G)When RTC is started, it is displayed in the name service view on the left of the figure. When RTC on the name service view is dragged and dropped to the central editor, the RTC is displayed as an icon in the system editor. The protrusion on the side of the rectangle represents the port, and the system is constructed by connecting the ports between these RTCs. In addition, the RTC configuration view is displayed at the lower center of the screen, so you can edit parameters of any RTC here.
(G)After building the system, it is possible to activate all the RTC by right-clicking on the editor and selecting "All Activate". You can also save the system configuration information by right-clicking on the editor and selecting "Save as". By saving the system configuration information again, it is possible to restore system connection information, configuration information and so on.
(G)Currently, it is necessary to start up RTC beforehand when restoring the system configuration information, but in future it will be possible to automatically start from RTC startup to connection restoration.