-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable arm64 build, add R,W tags to listed locators (#1)
- Loading branch information
1 parent
b6b7d0a
commit 2078c91
Showing
4 changed files
with
54 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,6 @@ | |
.github/ | ||
.git/ | ||
.github/ | ||
fognav_msgs/.git/ | ||
fognav_msgs/.github/ | ||
.vscode/ | ||
.dockerignore | ||
.gitignore | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
diff --git a/src/cpp/StatisticsBackend.cpp b/src/cpp/StatisticsBackend.cpp | ||
index d0a041b..f3eef37 100644 | ||
--- a/src/cpp/StatisticsBackend.cpp | ||
+++ b/src/cpp/StatisticsBackend.cpp | ||
@@ -531,7 +531,7 @@ Info StatisticsBackend::get_info( | ||
info[QOS_INFO_TAG] = participant->qos; | ||
|
||
// Locators associated to endpoints | ||
- std::set<std::string> locator_set; | ||
+ std::map<std::string, std::set<std::string>> locator_map; | ||
|
||
// Writers registered in the participant | ||
for (const auto& writer : participant->data_writers) | ||
@@ -539,7 +539,7 @@ Info StatisticsBackend::get_info( | ||
// Locators associated to each writer | ||
for (const auto& locator : writer.second.get()->locators) | ||
{ | ||
- locator_set.insert(locator.second.get()->name); | ||
+ locator_map[locator.second.get()->name].insert("W"); | ||
} | ||
} | ||
|
||
@@ -549,14 +549,18 @@ Info StatisticsBackend::get_info( | ||
// Locators associated to each reader | ||
for (const auto& locator : reader.second.get()->locators) | ||
{ | ||
- locator_set.insert(locator.second.get()->name); | ||
+ locator_map[locator.second.get()->name].insert("R"); | ||
} | ||
} | ||
|
||
DatabaseDump locators = DatabaseDump::array(); | ||
- for (const auto& locator : locator_set) | ||
+ for (const auto& locator : locator_map) | ||
{ | ||
- locators.push_back(locator); | ||
+ std::string sources = std::accumulate(std::next(locator.second.begin()), locator.second.end(), *locator.second.begin(), | ||
+ [](std::string a, std::string b) { | ||
+ return a + ',' + b; | ||
+ }); | ||
+ locators.push_back(locator.first + " [" + sources + "]"); | ||
} | ||
info[LOCATOR_CONTAINER_TAG] = locators; | ||
break; |