Re: Robot Communications

Marton Laszlo <[email protected]> Mon, 9 Feb 2004 02:42:34 -0800 (PST)
Newsgroups gmane.comp.cybernetics.webot.contest
Message-ID <[email protected]>
Hi,

in the declaration of the "Communication" class you
could try 
private static final String sendIP = "127.0.0.1";
instead of line
private static final String sendIP = null;

"127.0.0.1" is the IP adress of the local machine

Best regards
Marton Laci

> Your classes seems to solve my problem,
> unfortunately I can't make them  
> work (with XP, jdk1.4). The command
> 	Communication.sendDevice = new
> Socket(Communication.sendIP,  
> Communication.sendPort);
> causes a null pointer exception due to
> 	Communication.sendIP = null
> 
> Do you have any idea why?
> 
> Best Regards,
> Anders Lyhagen
> 
> 
> 
> > Hi all,
> >
> > A while back somebody wondered if there was some
> way for two robots to
> > communicate during training sessions.  For the
> evolutionary methods I'm
> > going to try, I thought having some form of
> inter-robot communication
> > would help things along a bit.  So I've written a
> small package, which
> > can be used for comms on the loopback interface,
> and thought some other
> > people may find it useful.  It's not thoroughly
> tested yet but seems to
> > work quite well.  Files are attatched if anyone is
> interested,  
> > hopefully
> > their use will be clear from the comments.
> >
> > Dominic/RoyBatty
> >
> >
> > ------------------------ Yahoo! Groups Sponsor  
> > ---------------------~-->
> > Buy Ink Cartridges or Refill Kits for your HP,
> Epson, Canon or Lexmark
> > Printer at MyInks.com. Free s/h on orders $50 or
> more to the US &  
> > Canada.
> > http://www.c1tracking.com/l.asp?cid=5511
> >
>
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/pU_rlB/TM
> >
>
---------------------------------------------------------------------
> 
> > ~->
> >
> >
> > Yahoo! Groups Links
> >
> >
> >
> >
> > <comms.tar.bz2>


__________________________________
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/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/