Skip to content

Commit

Permalink
fix extra comma that gives annoying build warnings with -Wall and -Wp…
Browse files Browse the repository at this point in the history
…edantic with g++-9 and assuming most other compilers (#550)
  • Loading branch information
jack-slip committed Mar 29, 2023
1 parent c92cd9a commit bfcd606
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tf2/include/tf2/impl/utils.h
Expand Up @@ -111,7 +111,7 @@ void getEulerYPR(const tf2::Quaternion& q, double &yaw, double &pitch, double &r
roll = atan2(2 * (q.y()*q.z() + q.w()*q.x()), sqw - sqx - sqy + sqz);
yaw = atan2(2 * (q.x()*q.y() + q.w()*q.z()), sqw + sqx - sqy - sqz);
}
};
}

/** The code below is a simplified version of getEulerRPY that only
* returns the yaw. It is mostly useful in navigation where only yaw
Expand Down Expand Up @@ -145,7 +145,7 @@ double getYaw(const tf2::Quaternion& q)
yaw = atan2(2 * (q.x()*q.y() + q.w()*q.z()), sqw + sqx - sqy - sqz);
}
return yaw;
};
}

}
}
Expand Down

0 comments on commit bfcd606

Please sign in to comment.