From 02bc15d8abbc0f070a0b97c941fce9f1d48de3d9 Mon Sep 17 00:00:00 2001 From: antoniomarangi Date: Fri, 17 Mar 2023 16:27:28 +0100 Subject: [PATCH] Added str cast to parse int --- nav2_common/nav2_common/launch/rewritten_yaml.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nav2_common/nav2_common/launch/rewritten_yaml.py b/nav2_common/nav2_common/launch/rewritten_yaml.py index 63d3905d5e..3b29fdda59 100644 --- a/nav2_common/nav2_common/launch/rewritten_yaml.py +++ b/nav2_common/nav2_common/launch/rewritten_yaml.py @@ -161,7 +161,7 @@ def pathify(self, d, p=None, paths=None, joinchar='.'): if isinstance(d, dict): for k in d: v = d[k] - self.pathify(v, pn + k, paths, joinchar=joinchar) + self.pathify(v, str(pn) + str(k), paths, joinchar=joinchar) elif isinstance(d, list): for idx, e in enumerate(d): self.pathify(e, pn + str(idx), paths, joinchar=joinchar)