From bfcd60628a75519b9f59864c12e742f0e24184d6 Mon Sep 17 00:00:00 2001 From: Jack Zender <109549970+jack-slip@users.noreply.github.com> Date: Wed, 29 Mar 2023 19:53:06 -0400 Subject: [PATCH] fix extra comma that gives annoying build warnings with -Wall and -Wpedantic with g++-9 and assuming most other compilers (#550) --- tf2/include/tf2/impl/utils.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tf2/include/tf2/impl/utils.h b/tf2/include/tf2/impl/utils.h index 5b545e54b..7f3b1a7d4 100644 --- a/tf2/include/tf2/impl/utils.h +++ b/tf2/include/tf2/impl/utils.h @@ -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 @@ -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; -}; +} } }