Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Ian Chen <[email protected]>
  • Loading branch information
iche033 committed Jul 16, 2021
1 parent 6fcb938 commit ef708a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion gazebo_plugins/src/gazebo_ros_imu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ void GazeboRosIMU::LoadThread()
else
this->offset_.Rot() = ignition::math::Quaterniond(this->sdf->Get<ignition::math::Vector3d>("rpyOffset"));

if (!this->sdf->HasElement("ignition::corrected_offsets"))
if (this->sdf->HasElement("ignition::corrected_offsets"))
this->correctedOffsets_ = this->sdf->Get<bool>("ignition::corrected_offsets");

if (!this->sdf->HasElement("updateRate"))
Expand Down
4 changes: 1 addition & 3 deletions gazebo_plugins/src/gazebo_ros_p3d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
#include <tf/tf.h>
#include <stdlib.h>

#include <sdf/sdf_config.h>

#include "gazebo_plugins/gazebo_ros_p3d.h"
#include <ignition/math/Rand.hh>

Expand Down Expand Up @@ -109,7 +107,7 @@ void GazeboRosP3D::Load(physics::ModelPtr _parent, sdf::ElementPtr _sdf)
else
this->offset_.Rot() = ignition::math::Quaterniond(_sdf->GetElement("rpyOffset")->Get<ignition::math::Vector3d>());

if (!_sdf->HasElement("ignition::corrected_offsets"))
if (_sdf->HasElement("ignition::corrected_offsets"))
this->correctedOffsets_ = _sdf->Get<bool>("ignition::corrected_offsets");

if (!_sdf->HasElement("gaussianNoise"))
Expand Down

0 comments on commit ef708a3

Please sign in to comment.