Skip to content

Commit aee6c8d

Browse files
soblinsaka1-s
authored andcommitted
chore(duplicate_node_checker): print duplication name (autowarefoundation#6488)
Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp>
1 parent 44b619a commit aee6c8d

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
/**:
22
ros__parameters:
33
update_rate: 10.0
4-
add_duplicated_node_names_to_msg: false # if true, duplicated node names are added to msg
4+
add_duplicated_node_names_to_msg: true # if true, duplicated node names are added to msg

system/duplicated_node_checker/package.xml

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<description>A package to find out nodes with common names</description>
77
<maintainer email="shumpei.wakabayashi@tier4.jp">Shumpei Wakabayashi</maintainer>
88
<maintainer email="uken.ryu@tier4.jp">yliuhb</maintainer>
9+
<maintainer email="mamoru.sobue@tier4.jp">Mamoru Sobue</maintainer>
910
<license>Apache 2.0</license>
1011

1112
<buildtool_depend>ament_cmake</buildtool_depend>

system/duplicated_node_checker/src/duplicated_node_checker_core.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ void DuplicatedNodeChecker::produceDiagnostics(diagnostic_updater::DiagnosticSta
6969
if (add_duplicated_node_names_to_msg_) {
7070
std::set<std::string> unique_identical_names(identical_names.begin(), identical_names.end());
7171
for (const auto & name : unique_identical_names) {
72-
msg += " " + name;
72+
msg += "[" + name + "], ";
7373
}
7474
}
7575
for (auto name : identical_names) {

0 commit comments

Comments
 (0)