Update of /cvsroot/playerstage/code/player/server/drivers/localization
In directory
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7891/server/drivers/localization
Modified Files:
fakelocalize.cc
Log Message:
Changes to message class to remove option to set size explicitly.
This only work by coincidence for structures with one array at the end of them.
Also Message class now uses the auto generated clone and free methods.
Index: fakelocalize.cc
===================================================================
RCS file:
/cvsroot/playerstage/code/player/server/drivers/localization/fakelocalize.cc,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** fakelocalize.cc 23 Aug 2007 19:58:44 -0000 1.11
--- fakelocalize.cc 21 Sep 2007 03:31:50 -0000 1.12
***************
*** 301,310 ****
this->localize_addr))
{
- if(hdr->size != sizeof(player_localize_set_pose_t))
- {
- PLAYER_ERROR2("request is wrong length (%d != %d); ignoring",
- hdr->size, sizeof(player_localize_set_pose_t));
- return(-1);
- }
setposereq = (player_localize_set_pose_t*)data;
player_simulation_pose2d_req_t req;
--- 301,304 ----
***************
*** 339,348 ****
{
player_simulation_pose2d_req_t cfg;
- if(hdr->size != 0)
- {
- PLAYER_ERROR2("request is wrong length (%d != %d); ignoring",
- hdr->size, 0);
- return(PLAYER_MSGTYPE_RESP_NACK);
- }
// Request pose
--- 333,336 ----
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit