Hi Geoff:<br>Thank you for your answer!!<br>It's very useful!<br><br>The first or second option is probably what i will go for. <br><br>I was testing my components, and actually just found out that, <br>if you put a copy of rtc.conf in the same directory as the component to run,<br>
the component will use that configuration in the conf file to initiailise.<br><br>My components could connect to the nameserver <br>if I specify the right nameserver IP in the conf (via corba.nameservers)<br>Do they work in the same way as corba.endpoints? <br>
<br>I will read into the link!<br><br>Thanks so much!<br>Regards,<br>Tony<br><br><br><br><br><br><br><div class="gmail_quote">On 28 September 2010 14:17, Geoffrey Biggs <span dir="ltr"><<a href="mailto:geoffrey.biggs@aist.go.jp">geoffrey.biggs@aist.go.jp</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hi Tony,<br>
<div><div></div><div class="h5"><br>
On 28/09/10 06:14, Tony Kuo wrote:<br>
> Hi all,<br>
> I am developing and testing my OpenRTM components on two computers each<br>
> with 2 interfaces (one LAN and one wireless )<br>
> I am using windows on both these two machines, therefore configuring<br>
> components through rtc.conf described here<br>
> <a href="http://www.openrtm.org/openrtm/en/content/troubleshooting" target="_blank">http://www.openrtm.org/openrtm/en/content/troubleshooting</a> don't really<br>
> apply.<br>
><br>
> I tried set OMNIORB_USEHOSTNAME environment variable to the interface I<br>
> am using,<br>
> but I still get "NameServer connection failed: corba/localhost" error.<br>
><br>
> Does anyone know how to configure component properly on windows?<br>
> so it's connected to its nameserver<br>
>  and when I launch system editor on one of the machines,<br>
> I can see components on both computers.<br>
<br>
</div></div>The number of interfaces on a computer should, in general, not make much<br>
difference. Particularly in the case of running the name server on<br>
another computer, it doesn't matter how many interfaces you have - as<br>
long as at least one has a route to the computer running the name server.<br>
<br>
Sometimes, though, multiple interfaces or other network<br>
mis-configurations can throw off omniORB, causing components to be<br>
unable to reach the name server even from the local computer. We see<br>
this particularly often in Windows. The solution is to configure the<br>
endpoints for the ORB manually. You can read about endpoints here:<br>
<br>
<a href="http://omniorb.sourceforge.net/omni41/omniORB/omniORB008.html#toc42" target="_blank">http://omniorb.sourceforge.net/omni41/omniORB/omniORB008.html#toc42</a><br>
<br>
We support setting the ORB endpoints in rtc.conf. The page you linked to<br>
does describe this, but OMNIORB_USEHOSTNAME is only half the story. You<br>
also need to set the corba.endpoints (note the plural; the<br>
troubleshooting page apparently needs updating) option in rtc.conf for<br>
the components.<br>
<br>
When you have multiple computers, you have two options for registration<br>
management:<br>
<br>
a) Run a single name server on one computer. Configure components on<br>
other computers to register on that using corba.nameservers. You can<br>
specify multiple name servers in this option if you want a component to<br>
register in multiple places.<br>
b) Run a name server on each computer. Each component registers on the<br>
name server on its local computer. In RTSystemEditor, add all the name<br>
servers to the name server view. In rtcshell, set RTCTREE_NAMESERVERS to<br>
a semi-colon-separated list of the name server addresses (or just<br>
specify them directly in paths).<br>
c) I guess there's a third option: you can run as many name servers as<br>
you like wherever you like, even on a single computer if you use<br>
different ports.<br>
<br>
<br>
Geoff<br>
<br>
</blockquote></div><br>