Update of /cvsroot/playerstage/code/player/server/drivers/localization/amcl
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30386

Modified Files:
        amcl.cc 
Log Message:
fixed pointer arithmetic

Index: amcl.cc
===================================================================
RCS file: 
/cvsroot/playerstage/code/player/server/drivers/localization/amcl/amcl.cc,v
retrieving revision 1.80
retrieving revision 1.81
diff -C2 -d -r1.80 -r1.81
*** amcl.cc     1 Nov 2007 22:16:19 -0000       1.80
--- amcl.cc     7 Dec 2007 02:43:10 -0000       1.81
***************
*** 304,307 ****
--- 304,308 ----
  //#include "amcl_imu.h"
  
+ #define MAX_HYPS 8
  
  
////////////////////////////////////////////////////////////////////////////////
***************
*** 921,925 ****
      pf_vector_t max_weight_pose={{0.0,0.0,0.0}};
      this->hyp_count = 0;
!     for (i = 0; (size_t) i < sizeof(this->hyps) / sizeof(this->hyps[0]); i++)
      {
        if (!pf_get_cluster_stats(this->pf, i, &weight, &pose_mean, &pose_cov))
--- 922,927 ----
      pf_vector_t max_weight_pose={{0.0,0.0,0.0}};
      this->hyp_count = 0;
!     //for (i = 0; (size_t) i < sizeof(this->hyps) / sizeof(this->hyps[0]); 
i++)
!     for (i = 0; MAX_HYPS; i++)
      {
        if (!pf_get_cluster_stats(this->pf, i, &weight, &pose_mean, &pose_cov))


-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit

Reply via email to