|
From: Radu B. R. <ru...@cs...> - 2009-07-09 08:07:26
|
Holger,
I'm redirecting your message to the appropriate java-player-users mailing list.
Radu.
-------- Original Message --------
Subject: [JavaPlayerClient] Question
Date: Thu, 9 Jul 2009 09:00:05 +0200
From: Holger Endert <hol...@da...>
To: 'ru...@cs...' <ru...@cs...>, 'ma...@ro...' <ma...@ro...>
Hello Mr. Rusu &
Mr. Batalin,
I have a question concerning the compatibility of your java-based player-client with the current version of player
(v2.2.0). It seems that connection to player works (a list of devices is printed on the console output), but reading and
sending data to player causes the client to crash. My first simple example should let a robot move for a few seconds
forwards via the position2d interface, like this:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
PlayerClient client = new PlayerClient("192.168.1.13", 6665);
Position2DInterface ifc = client.requestInterfacePosition2D(0,
PlayerConstants.PLAYER_OPEN_MODE);
System.out.println("START MOVEMENT");
ifc.setSpeed(10f, 0.0f);
try {
Thread.sleep(10000);
} catch (InterruptedException e) {
e.printStackTrace();
}
System.out.println("STOP MOVEMENT");
ifc.setSpeed(0.0f, 0.0f);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Do you know if there are any issues with compatibility, and if so, (how) can I fix them? Do I have some bugs in my code?
Are there any code-examples that may help?
Thanks in advance and best wishes
Holger Endert
-----------------------------------------
Dipl. Inform. Holger Endert
DAI-Labor - Technische Universität Berlin
Sekretariat TEL 14, Ernst-Reuter-Platz 7,
10587 Berlin
Fon: +49 30 314-74079
Fax: +49 30 314 21799
hol...@da...
http://www.dai-labor.de
http://www.dainamite.de
--
| Radu Bogdan Rusu | http://rbrusu.com/
|