Update of /cvsroot/playerstage/code/player/server/drivers/localization/amcl
In directory
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7891/server/drivers/localization/amcl
Modified Files:
amcl.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: amcl.cc
===================================================================
RCS file:
/cvsroot/playerstage/code/player/server/drivers/localization/amcl/amcl.cc,v
retrieving revision 1.78
retrieving revision 1.79
diff -C2 -d -r1.78 -r1.79
*** amcl.cc 23 Aug 2007 19:58:44 -0000 1.78
--- amcl.cc 21 Sep 2007 03:31:50 -0000 1.79
***************
*** 1102,1111 ****
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;
--- 1102,1105 ----
***************
*** 1138,1149 ****
this->localize_addr))
{
- if(hdr->size != 0)
- {
- PLAYER_ERROR2("request is wrong length (%d != %d); ignoring",
- hdr->size, 0);
- return(PLAYER_MSGTYPE_RESP_NACK);
- }
-
-
pf_vector_t mean;
double var;
--- 1132,1135 ----
-------------------------------------------------------------------------
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