Skip to content

Commit

Permalink
Add mixing errors to GetElement and typo fix
Browse files Browse the repository at this point in the history
Signed-off-by: Marco A. Gutierrez <marco@openrobotics.org>
  • Loading branch information
Marco A. Gutierrez committed Mar 28, 2023
1 parent 67b5ed4 commit 96a6865
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/JointAxis.cc
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ Errors JointAxis::Load(ElementPtr _sdf)
// Load limit values
if (_sdf->HasElement("limit"))
{
sdf::ElementPtr limitElement = _sdf->GetElement("limit");
sdf::ElementPtr limitElement = _sdf->GetElement("limit", errors);

this->dataPtr->lower = limitElement->Get<double>(errors, "lower",
this->dataPtr->lower).first;
Expand Down Expand Up @@ -375,6 +375,7 @@ sdf::ElementPtr JointAxis::Element() const
return this->dataPtr->sdf;
}

/////////////////////////////////////////////////
sdf::ElementPtr JointAxis::ToElement(unsigned int _index) const
{
sdf::Errors errors;
Expand Down

0 comments on commit 96a6865

Please sign in to comment.