From 46db77b645a1a60c9a188dffb04fad42a14f8789 Mon Sep 17 00:00:00 2001 From: Shohei Fujii Date: Tue, 20 Dec 2016 13:28:56 +0900 Subject: [PATCH] follow tf2 name convention --- src/stageros.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/stageros.cpp b/src/stageros.cpp index b6a58699..01b333fc 100644 --- a/src/stageros.cpp +++ b/src/stageros.cpp @@ -182,11 +182,11 @@ StageNode::mapName(const char *name, size_t robotID, Stg::Model* mod) const if ((found==std::string::npos) && umn) { - snprintf(buf, sizeof(buf), "/%s/%s", ((Stg::Ancestor *) mod)->Token(), name); + snprintf(buf, sizeof(buf), "%s/%s", ((Stg::Ancestor *) mod)->Token(), name); } else { - snprintf(buf, sizeof(buf), "/robot_%u/%s", (unsigned int)robotID, name); + snprintf(buf, sizeof(buf), "robot_%u/%s", (unsigned int)robotID, name); } return buf; @@ -208,11 +208,11 @@ StageNode::mapName(const char *name, size_t robotID, size_t deviceID, Stg::Model if ((found==std::string::npos) && umn) { - snprintf(buf, sizeof(buf), "/%s/%s_%u", ((Stg::Ancestor *) mod)->Token(), name, (unsigned int)deviceID); + snprintf(buf, sizeof(buf), "%s/%s_%u", ((Stg::Ancestor *) mod)->Token(), name, (unsigned int)deviceID); } else { - snprintf(buf, sizeof(buf), "/robot_%u/%s_%u", (unsigned int)robotID, name, (unsigned int)deviceID); + snprintf(buf, sizeof(buf), "robot_%u/%s_%u", (unsigned int)robotID, name, (unsigned int)deviceID); } return buf;