From 3973f129b95e671fa0c0eb925529a1a35687106c Mon Sep 17 00:00:00 2001 From: Fabian Reister <fabian.reister@kit.edu> Date: Mon, 23 Dec 2024 12:17:22 +0100 Subject: [PATCH] fix: explicit template argument to avoid compile errors on GCC 13 / Ubuntu 24 --- .../ethercat/common/sanity_checking/AbsRelEncoderChecker.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/devices/ethercat/common/sanity_checking/AbsRelEncoderChecker.cpp b/source/devices/ethercat/common/sanity_checking/AbsRelEncoderChecker.cpp index 375e8859..73fbe10d 100644 --- a/source/devices/ethercat/common/sanity_checking/AbsRelEncoderChecker.cpp +++ b/source/devices/ethercat/common/sanity_checking/AbsRelEncoderChecker.cpp @@ -25,7 +25,7 @@ namespace devices::ethercat::common::sanity_checking const float absPosError = std::abs(posError); const float sanitizedAbsPosError = - params_.isRotationalJoint ? simox::math::periodic_clamp(absPosError, -M_PIf32, M_PIf32) + params_.isRotationalJoint ? simox::math::periodic_clamp<float>(absPosError, -M_PIf32, M_PIf32) : absPosError; return Status{.encoderError = posError, -- GitLab