Skip to content

Commit

Permalink
Removed unused computation of CoG (#737)
Browse files Browse the repository at this point in the history
* Removed unused computation of CoG
In the lift drag plugin there were a few lines of code used to compute the center of gravity of the respective link. Since the variables themselfes are unused I propose to remove them.

* Revert "Removed unused computation of CoG"

This reverts commit 97378945e26c16ce3341090c4b453731b2aeadd9.

Reverted changes to undo the formatting.

* Removed unused computation of CoG
In the lift drag plugin there were a few lines of code used to compute the center of gravity of the respective link. Since the variables themselfes are unused I propose to remove them.
  • Loading branch information
manumerous authored Apr 10, 2021
1 parent 5761bd6 commit 05e2cd9
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/liftdrag_plugin/liftdrag_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -381,12 +381,6 @@ void LiftDragPlugin::OnUpdate()
// compute moment (torque) at cp
ignition::math::Vector3d moment = cm * q * this->area * momentDirection;

#if GAZEBO_MAJOR_VERSION >= 9
ignition::math::Vector3d cog = this->link->GetInertial()->CoG();
#else
ignition::math::Vector3d cog = ignitionFromGazeboMath(this->link->GetInertial()->GetCoG());
#endif

// force about cg in inertial frame
ignition::math::Vector3d force = lift + drag;

Expand Down

0 comments on commit 05e2cd9

Please sign in to comment.