Hello!
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
suggestion.
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.
|