Skip to content

Commit

Permalink
chore(duplicate_node_checker): print duplication name (autowarefounda…
Browse files Browse the repository at this point in the history
…tion#6488) (#1180)

Signed-off-by: Mamoru Sobue <[email protected]>
Co-authored-by: Mamoru Sobue <[email protected]>
  • Loading branch information
saka1-s and soblin authored Mar 8, 2024
1 parent c5a5436 commit 2c3156f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**:
ros__parameters:
update_rate: 10.0
add_duplicated_node_names_to_msg: false # if true, duplicated node names are added to msg
add_duplicated_node_names_to_msg: true # if true, duplicated node names are added to msg
1 change: 1 addition & 0 deletions system/duplicated_node_checker/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<description>A package to find out nodes with common names</description>
<maintainer email="[email protected]">Shumpei Wakabayashi</maintainer>
<maintainer email="[email protected]">yliuhb</maintainer>
<maintainer email="[email protected]">Mamoru Sobue</maintainer>
<license>Apache 2.0</license>

<buildtool_depend>ament_cmake</buildtool_depend>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ void DuplicatedNodeChecker::produceDiagnostics(diagnostic_updater::DiagnosticSta
if (add_duplicated_node_names_to_msg_) {
std::set<std::string> unique_identical_names(identical_names.begin(), identical_names.end());
for (const auto & name : unique_identical_names) {
msg += " " + name;
msg += "[" + name + "], ";
}
}
for (auto name : identical_names) {
Expand Down

0 comments on commit 2c3156f

Please sign in to comment.