From 2882b5f734b848664152ae7aaf228d4e43837189 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20Genesio=20=28=E4=BA=8C=E3=82=B3=E3=82=B2?= =?UTF-8?q?=E3=83=8D=29?= Date: Fri, 5 Apr 2024 16:48:17 +0200 Subject: [PATCH] Fix emotion interface set mask command This is a bug reported by the community: - https://github.com/orgs/robotology/discussions/694 --- src/core/emotionInterface/emotionInterfaceModule.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/emotionInterface/emotionInterfaceModule.cpp b/src/core/emotionInterface/emotionInterfaceModule.cpp index a1ac3cd14c..cdaa04458c 100644 --- a/src/core/emotionInterface/emotionInterfaceModule.cpp +++ b/src/core/emotionInterface/emotionInterfaceModule.cpp @@ -234,7 +234,7 @@ bool EmotionInterfaceModule::configure(ResourceFinder& config){ if(_mouthmaskemotions) { std::string id; - for(size_t index=0; index<_eyebrowmaskemotions; index++){ + for(size_t index=0; index<_mouthmaskemotions; index++){ id = "BM_M"+std::to_string(index); Bottle& bot = config.findGroup(id); auto hexCode = getHexCode(bot);