Skip to content

Commit

Permalink
changed variable names to lowerCamelCase
Browse files Browse the repository at this point in the history
Signed-off-by: Aditya <[email protected]>
  • Loading branch information
adityapande-1995 committed Mar 3, 2022
1 parent 3f42ba6 commit 735a61f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/ImuSensor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,10 @@ class ignition::sensors::ImuSensorPrivate
= WorldFrameEnumType::NONE;

/// \brief Frame realtive to which custom_rpy is specified
public: std::string CustomRpyParentFrame;
public: std::string customRpyParentFrame;

/// \brief Quaternion for to store custom_rpy
public: ignition::math::Quaterniond CustomRpyQuaternion;
public: ignition::math::Quaterniond customRpyQuaternion;

/// \brief Previous update time step.
public: std::chrono::steady_clock::duration prevStep
Expand Down Expand Up @@ -180,9 +180,9 @@ bool ImuSensor::Load(const sdf::Sensor &_sdf)
this->dataPtr->sensorOrientationRelativeTo = WorldFrameEnumType::NONE;
}

this->dataPtr->CustomRpyParentFrame =
this->dataPtr->customRpyParentFrame =
_sdf.ImuSensor()->CustomRpyParentFrame();
this->dataPtr->CustomRpyQuaternion = ignition::math::Quaterniond(
this->dataPtr->customRpyQuaternion = ignition::math::Quaterniond(
_sdf.ImuSensor()->CustomRpy());

this->dataPtr->initialized = true;
Expand Down Expand Up @@ -321,10 +321,10 @@ void ImuSensor::SetWorldFrameOrientation(
// Set orientation reference frame if custom_rpy was supplied
if (this->dataPtr->sensorOrientationRelativeTo == WorldFrameEnumType::CUSTOM)
{
if (this->dataPtr->CustomRpyParentFrame == "")
if (this->dataPtr->customRpyParentFrame == "")
{
this->SetOrientationReference(this->dataPtr->worldRelativeOrientation *
this->dataPtr->CustomRpyQuaternion);
this->dataPtr->customRpyQuaternion);
}
else
{
Expand Down

0 comments on commit 735a61f

Please sign in to comment.