From: John O. <joh...@gm...> - 2006-08-01 16:16:13
|
I have been having some trouble with getting setPosition to work on a Position2DInterface. (Player/stage 2.0.1 and Javaclient 2.0.1) Taking a quick(well perhaps not that quick) look at the code in player the pack function (player_position2d_cmd_pack) it appears to look for both a position command and a velocity in the message: ... if(xdr_player_pose_t(&xdrs,&msg->pos) != 1) return(-1); if(xdr_player_pose_t(&xdrs,&msg->vel) != 1) return(-1); if(xdr_u_char(&xdrs,&msg->state) != 1) return(-1); ... while the java version only sends the position(Position2DInterface.setPosition), and from what I can tell this is leading to my "warning : decoding failed on message to 4:1 with type 2" messages. Have I made a mistake here or is this something to be patched? And is it a player problem or JavaClient? My instinct is that player should not be looking for a velocity in a position command however I do not entirely understand the P/S message formats and wanted confirmation that this was the case(or not). thanks John -- View this message in context: http://www.nabble.com/setPosition-message-format-tf2034617.html#a5597853 Sent from the java-player-users forum at Nabble.com. |