Skip to content

Commit 96f643f

Browse files
committed
fix: bug fix in topic name replace function
Signed-off-by: yoshiri <yoshiyoshidetteiu@gmail.com>
1 parent 10ea99f commit 96f643f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sensing/pointcloud_preprocessor/include/pointcloud_preprocessor/concatenate_data/concatenate_and_time_sync_nodelet.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ inline std::string replace_topic_name_postfix(
9999
return original_topic_name + postfix;
100100
} else {
101101
// replace the last element with the new postfix
102-
return original_topic_name.substr(0, pos) + postfix;
102+
return original_topic_name.substr(0, pos) + "/" + postfix;
103103
}
104104
}
105105

sensing/pointcloud_preprocessor/include/pointcloud_preprocessor/time_synchronizer/time_synchronizer_nodelet.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ inline std::string replace_topic_name_postfix(
9999
return original_topic_name + postfix;
100100
} else {
101101
// replace the last element with the new postfix
102-
return original_topic_name.substr(0, pos) + postfix;
102+
return original_topic_name.substr(0, pos) + '/' + postfix;
103103
}
104104
}
105105
namespace pointcloud_preprocessor

0 commit comments

Comments
 (0)