Skip to content

Commit

Permalink
Simplify the code with gazebosim/gz-sim#629 .
Browse files Browse the repository at this point in the history
  • Loading branch information
peci1 committed Mar 3, 2021
1 parent 7a51ea1 commit b33cb5e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 34 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@

#include <sdf/JointAxis.hh>

#include "ecm_helper.hh"

using namespace ignition;
using namespace gazebo;
using namespace systems;
Expand Down Expand Up @@ -155,7 +153,7 @@ class FlipperControlPlugin : public System, public ISystemConfigure, public ISys
return;
}

const auto& angle = ComponentDefault<components::JointPosition>(_ecm, this->joint)->Data()[0];
const auto& angle = _ecm.ComponentDefault<components::JointPosition>(this->joint)->Data()[0];

if (this->cmdVel.has_value())
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
#include "ignition/gazebo/components/JointVelocityCmd.hh"
#include "ignition/gazebo/Model.hh"

#include "ecm_helper.hh"

using namespace ignition;
using namespace gazebo;
using namespace systems;
Expand Down Expand Up @@ -91,7 +89,7 @@ class LaserRotatePlugin : public System, public ISystemConfigure, public ISystem
}
}

auto& jointPosition = ComponentDefault<components::JointPosition>(_ecm, this->joint)->Data().at(0);
auto& jointPosition = _ecm.ComponentDefault<components::JointPosition>(this->joint)->Data().at(0);

if (this->rotationVelocitySigned == 0.0)
{
Expand Down

0 comments on commit b33cb5e

Please sign in to comment.