From: Moshe S. <ms...@gm...> - 2005-06-12 16:40:34
|
Hi guys, I've worked with the Java Client before (version 1.5a) and I am trying to re-utilize my project on the latest version. Unfortunately, I fail to run even the simplest thing. The following code hangs and never reach the println. public static void main(String[] args) { PlayerClient pc =3D new PlayerClient("localhost", 6665); PositionInterface pi =3D pc.requestInterfacePosition(0, 'a'); = =20 System.out.println("EXIT"); } The player server is up and running and everything works fine when I access it by the c client. Please advise. p.s. I couldn't find any link to java-player from the site of Player/Stage, but to the older version. Shouldn't the link be updated? Thanks, Moshe |
From: Radu B. R. <ve...@in...> - 2005-06-13 12:11:49
|
Hellos, I cannot explain the code hang. Try to run Javaclient in debugmode (by using System.setProperty ("PlayerClient.debug") to true) and see if you get any errors. Are you running on a real robot or a simulated one? The link to the new Javaclient web pages is posted in the P/S/G Contrib section at http://playerstage.sourceforge.net/contrib.html. :) Chers, Radu. On Sun, Jun 12, 2005 at 07:40:29PM +0300, Moshe Sayag wrote: > Hi guys, > > I've worked with the Java Client before (version 1.5a) and I am trying > to re-utilize my project on the latest version. > > Unfortunately, I fail to run even the simplest thing. The following > code hangs and never reach the println. > > public static void main(String[] args) { > PlayerClient pc = new PlayerClient("localhost", 6665); > PositionInterface pi = pc.requestInterfacePosition(0, 'a'); > System.out.println("EXIT"); > } > > The player server is up and running and everything works fine when I > access it by the c client. > > Please advise. > > > p.s. I couldn't find any link to java-player from the site of > Player/Stage, but to the older version. Shouldn't the link be updated? > > Thanks, > > Moshe > Yours sincerely, Radu Bogdan Rusu -- | Radu Bogdan 'veedee' Rusu | http://www.rbrusu.com | PhD student/researcher | Robotics Research Group, Technical University of Cluj-Napoca[.ro] |
From: Moshe S. <ms...@gm...> - 2005-06-14 23:23:00
|
Please find my answers below: > From: Radu Bogdan Rusu <veedee@in...> > Re: Getting started =20 > 2005-06-13 12:11 > > Hellos, >=20 > Are you running on a real robot or a simulated one? I am running the Stage platform (1.6.2), and=20 > I cannot explain the code hang. Try to run Javaclient in debugmode (by > using System.setProperty ("PlayerClient.debug") to true) and see if you g= et > any errors. Got nothing special from Stage. The Java-Client print many lines: Player v.1.6.4 [PlayerClient][Debug] : Subscribing to 4 [PlayerClient][Debug] : Unrecognized header:=20 [PlayerClient][Debug] : Unrecognized header:=20 ... [PlayerClient][Debug] : Unrecognized header:=20 [PlayerClient][Debug] : Unrecognized header:=20 [PlayerClient][Debug] : Got a message: type =3D 1 device =3D 4 index =3D 0 [PlayerClient] : Got a message: type =3D 1 device =3D 4 index =3D 0 [PlayerClient][Debug] : Unrecognized header:=20 [PlayerClient][Debug] : Unrecognized header:=20 ... [PlayerClient][Debug] : Unrecognized header:=20 [PlayerClient][Debug] : Unrecognized header:=20 [PlayerClient][Debug] : Got a message: type =3D 5 device =3D 1 index =3D 0 [PlayerClient][Debug] : Got a message: type =3D 1 device =3D 4 index =3D 0 [PlayerClient] : Got a message: type =3D 1 device =3D 4 index =3D 0 [PlayerClient][Debug] : Unrecognized header:=20 [PlayerClient][Debug] : Unrecognized header:=20 ... [PlayerClient][Debug] : Unrecognized header:=20 [PlayerClient][Debug] : Unrecognized header:=20 [PlayerClient][Debug] : Got a message: type =3D 5 device =3D 1 index =3D 0 [PlayerClient][Debug] : Got a message: type =3D 1 device =3D 4 index =3D 0 [PlayerClient] : Got a message: type =3D 1 device =3D 4 index =3D 0 [PlayerClient][Debug] : Unrecognized header:=20 [PlayerClient][Debug] : Unrecognized header:=20 ... =20 > The link to the new Javaclient web pages is posted in the P/S/G Contrib > section at http://playerstage.sourceforge.net/contrib.html. :) =20 Found it, but the link at http://playerstage.sourceforge.net/clients/clients.html is outdated and I couldn't find any back link from http://java-player.sourceforge.net to http://sourceforge.net/projects/java-player > Chers, > Radu. =20 =20 On Sun, Jun 12, 2005 at 07:40:29PM +0300, Moshe Sayag wrote: > Hi guys, >=20 > I"ve worked with the Java Client before (version 1.5a) and I am trying > to re-utilize my project on the latest version. >=20 > Unfortunately, I fail to run even the simplest thing. The following > code hangs and never reach the println. >=20 > public static void main(String[] args) { > PlayerClient pc =3D new PlayerClient("localhost", 6665); > PositionInterface pi =3D pc.requestInterfacePosition(0, "a"); = =20 > System.out.println("EXIT"); > } >=20 > The player server is up and running and everything works fine when I > access it by the c client. >=20 > Please advise. >=20 >=20 > p.s. I couldn"t find any link to java-player from the site of > Player/Stage, but to the older version. Shouldn"t the link be updated? >=20 > Thanks, >=20 > Moshe >=20 =20 Yours sincerely, Radu Bogdan Rusu -- | Radu Bogdan "veedee" Rusu | http://www.rbrusu.com | PhD student/researcher | Robotics Research Group, Technical University of Cluj-Napoca[.ro] |
From: Radu B. R. <ve...@in...> - 2005-06-15 11:17:22
|
On Wed, Jun 15, 2005 at 02:22:54AM +0300, Moshe Sayag wrote: > Got nothing special from Stage. > The Java-Client print many lines: > > Player v.1.6.4 > [PlayerClient][Debug] : Subscribing to 4 > [PlayerClient][Debug] : Unrecognized header: > [PlayerClient][Debug] : Unrecognized header: > ... > [PlayerClient][Debug] : Unrecognized header: > [PlayerClient][Debug] : Unrecognized header: > [PlayerClient][Debug] : Got a message: type = 1 device = 4 index = 0 > [PlayerClient] : Got a message: type = 1 device = 4 index = 0 > [PlayerClient][Debug] : Unrecognized header: > [PlayerClient][Debug] : Unrecognized header: > ... > [PlayerClient][Debug] : Unrecognized header: > [PlayerClient][Debug] : Unrecognized header: > [PlayerClient][Debug] : Got a message: type = 5 device = 1 index = 0 > [PlayerClient][Debug] : Got a message: type = 1 device = 4 index = 0 > [PlayerClient] : Got a message: type = 1 device = 4 index = 0 > [PlayerClient][Debug] : Unrecognized header: > [PlayerClient][Debug] : Unrecognized header: > ... > [PlayerClient][Debug] : Unrecognized header: > [PlayerClient][Debug] : Unrecognized header: > [PlayerClient][Debug] : Got a message: type = 5 device = 1 index = 0 > [PlayerClient][Debug] : Got a message: type = 1 device = 4 index = 0 > [PlayerClient] : Got a message: type = 1 device = 4 index = 0 > [PlayerClient][Debug] : Unrecognized header: > [PlayerClient][Debug] : Unrecognized header: > ... Are you using the latest CVS Player or the original 1.6.4 release? > > The link to the new Javaclient web pages is posted in the P/S/G Contrib > > section at http://playerstage.sourceforge.net/contrib.html. :) > > Found it, but the link at > http://playerstage.sourceforge.net/clients/clients.html is outdated > and I couldn't find any back link from > http://java-player.sourceforge.net to > http://sourceforge.net/projects/java-player Thanks for this one, I will talk to Brian to modify http://playerstage.sourceforge.net/clients/clients.html. There is no direct link needed from http://java-player.sourceforge.net to http://sourceforge.net/projects/java-player. You can click on download and it will take you there. Yours sincerely, Radu Bogdan Rusu -- | Radu Bogdan 'veedee' Rusu | http://www.rbrusu.com | PhD student/researcher | Robotics Research Group, Technical University of Cluj-Napoca[.ro] |