@@ -486,8 +486,8 @@ class OdometryPublisherTest
486
486
int n = odomLinVels.size ();
487
487
488
488
// Calculate the means.
489
- double linVelSumX = 0 , linVelSumY = 0 , linVelSumZ = 0 ;
490
- double angVelSumX = 0 , angVelSumY = 0 , angVelSumZ = 0 ;
489
+ double linVelSumX = 0 , linVelSumY = 0 , linVelSumZ = 0 ;
490
+ double angVelSumX = 0 , angVelSumY = 0 , angVelSumZ = 0 ;
491
491
for (int i = 0 ; i < n; i++) {
492
492
linVelSumX += odomLinVels[i].X ();
493
493
linVelSumY += odomLinVels[i].Y ();
@@ -508,8 +508,8 @@ class OdometryPublisherTest
508
508
EXPECT_NEAR (angVelSumZ/n, 0 , 0.3 );
509
509
510
510
// Calculate the variation (sigma^2).
511
- double linVelSqSumX = 0 , linVelSqSumY = 0 , linVelSqSumZ = 0 ;
512
- double angVelSqSumX = 0 , angVelSqSumY = 0 , angVelSqSumZ = 0 ;
511
+ double linVelSqSumX = 0 , linVelSqSumY = 0 , linVelSqSumZ = 0 ;
512
+ double angVelSqSumX = 0 , angVelSqSumY = 0 , angVelSqSumZ = 0 ;
513
513
for (int i = 0 ; i < n; i++) {
514
514
linVelSqSumX += std::pow (odomLinVels[i].X () - linVelSumX/n, 2 );
515
515
linVelSqSumY += std::pow (odomLinVels[i].Y () - linVelSumY/n, 2 );
0 commit comments