Skip to content

Commit 752fdce

Browse files
linter fixes
Signed-off-by: Aditya <[email protected]>
1 parent a2dc446 commit 752fdce

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/systems/odometry_publisher/OdometryPublisher.cc

+3-3
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,8 @@ void OdometryPublisher::Configure(const Entity &_entity,
229229
odomTopicValid);
230230
}
231231

232-
std::string odomCovTopicValid {transport::TopicUtils::AsValidTopic(odomCovTopic)};
232+
std::string odomCovTopicValid {
233+
transport::TopicUtils::AsValidTopic(odomCovTopic)};
233234
if (odomCovTopicValid.empty())
234235
{
235236
ignerr << "Failed to generate odom topic ["
@@ -467,8 +468,7 @@ void OdometryPublisherPrivate::UpdateOdometry(
467468
mutable_covariance()->add_data(gn2);
468469
msg_covariance.mutable_twist_with_covariance()->
469470
mutable_covariance()->add_data(gn2);
470-
}
471-
else {
471+
} else {
472472
msg_covariance.mutable_pose_with_covariance()->
473473
mutable_covariance()->add_data(0);
474474
msg_covariance.mutable_twist_with_covariance()->

test/integration/odometry_publisher.cc

+4-4
Original file line numberDiff line numberDiff line change
@@ -486,8 +486,8 @@ class OdometryPublisherTest
486486
int n = odomLinVels.size();
487487

488488
// 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;
491491
for (int i = 0; i < n; i++) {
492492
linVelSumX += odomLinVels[i].X();
493493
linVelSumY += odomLinVels[i].Y();
@@ -508,8 +508,8 @@ class OdometryPublisherTest
508508
EXPECT_NEAR(angVelSumZ/n, 0, 0.3);
509509

510510
// 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;
513513
for (int i = 0; i < n; i++) {
514514
linVelSqSumX += std::pow(odomLinVels[i].X() - linVelSumX/n, 2);
515515
linVelSqSumY += std::pow(odomLinVels[i].Y() - linVelSumY/n, 2);

0 commit comments

Comments
 (0)