Just Launched: You can now import projects and releases from Google Code onto SourceForge
We are excited to release new functionality to enable a 1-click import from Google Code onto the Allura platform on SourceForge. You can import tickets, wikis, source, releases, and more with a few simple steps. Read More
I'm Pablo, from the Jaume I University of Castello, Spain
I'm using the javaclient2 with player 2.1.2 and I'd modified several files
for adapting it to the player 2.1 version (overall changing float to double
and the size of the messages) and it works perfectly with the position2d,
laser, sonar, map and camera interfaces (because I just need these ones).
My problem comes when i call to the setPosition function
(PLAYER_POSITION2D_CMD_POS command), the robot do the first movement of
approximation and then it stops.
I compared it with the same function on playerv, and the server read the
same message (type, content and size) in both cases, so the problem seems is
not the message, maybe the connection.
My question is: I saw that player server use non-blocking socket connection,
and the Socket class used in javaclient is blocking. I'm trying to modify
again javaclient with the SocketChannel class (non-blocking) but I'm not
sure of it will work.
I'm in a right way, or maybe my problem is due to other questions?
If someone can help me or guide me I would appreciate any collaboration or
PS: when I'll finished it I could share a new version of javaclient2.1,
although just with the named interfaces.
View this message in context: http://old.nabble.com/problem-with-setPosition-function-at-Position2dInterface-tp27277497p27277497.html
Sent from the java-player-developers mailing list archive at Nabble.com.