Re: Robot Communications
Dominic <[email protected]> Thu, 12 Feb 2004 13:20:25 +0000
| Newsgroups | gmane.comp.cybernetics.webot.contest |
|---|---|
| Message-ID | <[email protected]> |
Hi,
I've managed to test the comms classes a bit further now, before I had
only tried testing them in a stand-alone test, not running with the
webots controller. The problem seems to be not in the determining of
the IP address, but in the security restrictions in the JVM. The webots
environment does not allow socket communications.
Oliver, would it at all be possible to relax the security restrictions
in the home version of webots to allow socket communications? It would
not matter that they are illegal in the contest rounds as I can easily
turn off the communication methods in my classes, but during training
rounds it would be of great benefit to have inter-robot communaication.
Dominic/RoyBatty
On Mon, 2004-02-09 at 11:27, Dominic wrote:
> On Mon, 2004-02-09 at 09:35, Anders Lyhagen wrote:
> > Hi,
> >
> > Your classes seems to solve my problem, unfortunately I can't makethem
> > work (with XP, jdk1.4). The command
> > Communication.sendDevice =newSocket(Communication.sendIP,
> > Communication.sendPort);
> > causes a null pointer exception due to
> > Communication.sendIP = null
> >
> > Do you have any idea why?
>
> I've not found that error. The variable name sendIP is a bit
> misleading, it actually refers to a hostname rather than an IP address.
> According to the API (1.4.2) if the value is null it should
> automatically look up the hostname for the localhost. You could try
> replacing the value in the declaration of sendIP with "127.0.0.1" as
> Marton says, though the API wasn't clear whether this would be
> accepted. Alternatively, replace it with the hostname of your machine.
> I tested it on a linux distribution, it could be that the API is not
> complete for winXP machines.
>
> If changing the above doesn't work, if you send the exact errors as
> printed by the virtual machine, I'll take another look. I'll be near an
> XP machine later today so I'll have a go at testing it then.
>
> Cheers
>
> Dominic/RoyBatty
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Send the freshest Valentine's flowers with a FREE vase from only $29.99!
Shipped direct from the grower with a 7 day freshness guarantee and prices so low you save 30-55% off retail!
http://us.click.yahoo.com/_iAw9B/xdlHAA/3jkFAA/pU_rlB/TM
---------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/webots-contest/
<*> To unsubscribe from this group, send an email to:
[email protected]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/