Skip to content

Commit

Permalink
remove white spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
muttistefano committed Mar 1, 2024
1 parent 19db475 commit b69392f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/systems/mecanum_drive/MecanumDrive.cc
Original file line number Diff line number Diff line change
Expand Up @@ -566,16 +566,15 @@ void MecanumDrivePrivate::UpdateOdometry(const UpdateInfo &_info,
auto frontRightPos = _ecm.Component<components::JointPosition>(this->frontRightJoints[0]);
auto backLeftPos = _ecm.Component<components::JointPosition>(this->backLeftJoints[0]);
auto backRightPos = _ecm.Component<components::JointPosition>(this->backRightJoints[0]);

// Abort if the joints were not found or just created.
if (!frontLeftPos || !frontRightPos || !backLeftPos || !backRightPos ||
frontLeftPos->Data().empty() || frontRightPos->Data().empty() || backLeftPos->Data().empty() || backRightPos->Data().empty())
{
return;
}

this->odom.Update(frontLeftPos->Data()[0], frontRightPos->Data()[0], backLeftPos->Data()[0], backRightPos->Data()[0],
std::chrono::steady_clock::time_point(_info.simTime));
this->odom.Update(frontLeftPos->Data()[0], frontRightPos->Data()[0], backLeftPos->Data()[0], backRightPos->Data()[0],std::chrono::steady_clock::time_point(_info.simTime));

// Throttle publishing
auto diff = _info.simTime - this->lastOdomPubTime;
Expand Down

0 comments on commit b69392f

Please sign in to comment.