Skip to content

Commit

Permalink
Rename function parameter
Browse files Browse the repository at this point in the history
Signed-off-by: Addisu Z. Taddese <[email protected]>
  • Loading branch information
azeey committed Sep 15, 2021
1 parent 32f366e commit 8709364
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
11 changes: 5 additions & 6 deletions include/ignition/physics/Joint.hh
Original file line number Diff line number Diff line change
Expand Up @@ -405,22 +405,21 @@ namespace ignition
public: Wrench GetTransmittedWrench() const;

/// \brief Get the transmitted wrench of this joint at the specified
/// reference frame and expressed at the specified coordinate frame.
/// reference frame and expressed in the specified coordinate frame.
///
/// The transmitted wrench is the force and torque applied by the parent
/// link on the child link, transmitted through the joint. It is the sum
/// of constraint forces from the joint, applied joint force (set by the
/// user using the Joint::SetForce API) as well as forces due to joint
/// friction, damping, and spring stiffness.
/// \param[in] _referenceFrame Reference frame in which the wrench is
/// expressed. Note that the wrench is updated such that linear force
/// component is applied at the origin of this reference frame.
/// \param[in] _relativeTo Reference frame whose origin specifies the
/// location where the linear force of the wrench is applied.
/// \param[in] _inCoordinatesOf Coordinate frame in which the wrench is
/// expressed. Unlike _referenceFrame, the coordinate frame is only used
/// expressed. Unlike _relativeTo, the coordinate frame is only used
/// to apply a rotation to the individual vectors in the wrench. It does
/// not move the point where the force is applied.
public: Wrench GetTransmittedWrench(
const FrameID &_referenceFrame,
const FrameID &_relativeTo,
const FrameID &_inCoordinatesOf) const;
};

Expand Down
4 changes: 2 additions & 2 deletions include/ignition/physics/detail/Joint.hh
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ namespace ignition
/////////////////////////////////////////////////
template <typename PolicyT, typename FeaturesT>
auto GetJointTransmittedWrench::Joint<PolicyT, FeaturesT>::
GetTransmittedWrench(const FrameID &_referenceFrame,
GetTransmittedWrench(const FrameID &_relativeTo,
const FrameID &_inCoordinatesOf) const -> Wrench
{
using RelativeWrench =
Expand All @@ -189,7 +189,7 @@ namespace ignition
return detail::Resolve(
*this->template Interface<FrameSemantics>(),
RelativeWrench(this->GetFrameID(), this->GetTransmittedWrench()),
_referenceFrame, _inCoordinatesOf);
_relativeTo, _inCoordinatesOf);
}
}
}
Expand Down

0 comments on commit 8709364

Please sign in to comment.