Skip to content

Commit

Permalink
Reformatting for codecheck
Browse files Browse the repository at this point in the history
fix gazebosim#301

Signed-off-by: Akshat Pandya <[email protected]>
  • Loading branch information
akshatpandya committed Dec 24, 2021
1 parent 7976b86 commit 3088849
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion include/ignition/math/DiffDriveOdometry.hh
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,8 @@ namespace ignition
/// \param[in] _leftWheelRadius Radius of the left wheel.
/// \param[in] _rightWheelRadius Radius of the right wheel.
public: void SetWheelParams(const double _wheelSeparation,
const double _leftWheelRadius, const double _rightWheelRadius);
const double _leftWheelRadius,
const double _rightWheelRadius);

/// \brief Set the velocity rolling window size.
/// \param[in] _size The Velocity rolling window size.
Expand Down
6 changes: 4 additions & 2 deletions src/DiffDriveOdometry.cc
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ class ignition::math::DiffDriveOdometryPrivate
/// Runge-Kutta.
/// \param[in] _linear Linear velocity.
/// \param[in] _angular Angular velocity.
public: void IntegrateRungeKutta2(const double _linear, const double _angular);
public: void IntegrateRungeKutta2(const double _linear,
const double _angular);

/// \brief Integrates the velocities (linear and angular) using exact
/// method.
Expand Down Expand Up @@ -223,7 +224,8 @@ void DiffDriveOdometryPrivate::IntegrateRungeKutta2(
}

//////////////////////////////////////////////////
void DiffDriveOdometryPrivate::IntegrateExact(const double _linear, const double _angular)
void DiffDriveOdometryPrivate::IntegrateExact(const double _linear,
const double _angular)
{
if (std::fabs(_angular) < 1e-6)
{
Expand Down

0 comments on commit 3088849

Please sign in to comment.