From 3d3c89158059bce19de0d04bc815cf92e012badd Mon Sep 17 00:00:00 2001 From: ipa-nhg Date: Wed, 16 Oct 2019 09:18:00 +0200 Subject: [PATCH] fix the definition of constants for the autogeneration of communication objects models --- tools/generate_messages_model_helper.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/generate_messages_model_helper.sh b/tools/generate_messages_model_helper.sh index 3e527b2c9..54a0c6c74 100755 --- a/tools/generate_messages_model_helper.sh +++ b/tools/generate_messages_model_helper.sh @@ -41,6 +41,7 @@ do cout_msg=$((cout_msg-1)) message=${i/$p\//} message_show=$(rosmsg show -r $i | sed '/^#/ d' | awk -F'#' '{print $1}') + message_show="$(echo $message_show | sed -e 's/\s=\s/=/g')" final_desc=$(parserToRosModel "$message_show") echo -n ' TopicSpec '$message'{ message { '$final_desc' }}' if (("$cout_msg" >= "1" || "$cout_srv" >= "1" ))