mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-31 02:51:36 +08:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user