microRTPS: by default, when FastDDS >= 2.0, enable Shared Memory transport for the agent participants when the localhost network is enabled

This commit is contained in:
TSC21
2021-06-21 16:36:44 +02:00
committed by Nuno Marques
parent 320b414511
commit f2fad6d966
3 changed files with 44 additions and 21 deletions
+2 -2
View File
@@ -237,10 +237,10 @@ int main(int argc, char **argv)
printf("\033[0;37m--- MicroRTPS Agent ---\033[0m\n");
printf("[ micrortps_agent ]\tStarting link...\n");
const char *localhost_only = std::getenv("ROS_LOCALHOST_ONLY");
const char* localhost_only = std::getenv("ROS_LOCALHOST_ONLY");
if (localhost_only && strcmp(localhost_only, "1") == 0) {
printf("[ micrortps_agent ]\tUsing only the localhost network for data sharing...\n");
printf("[ micrortps_agent ]\tUsing only the localhost network...\n");
}
switch (_options.transport) {