Skip to content

Commit

Permalink
change error messages to warnings, specify retrying
Browse files Browse the repository at this point in the history
  • Loading branch information
dakejahl committed Jan 15, 2025
1 parent 70d9d18 commit 2467418
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/modules/simulation/gz_bridge/GZBridge.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ int GZBridge::init()

// If Gazebo has not been called, wait 2 seconds and try again.
else {
PX4_WARN("Service call timed out as Gazebo has not been detected.");
PX4_WARN("Service call timed out as Gazebo has not been detected. Retrying...");
system_usleep(2000000);
}
}
Expand All @@ -159,7 +159,7 @@ int GZBridge::init()

while (scene_created == false) {
if (!callSceneInfoMsgService(scene_info_service)) {
PX4_WARN("Service call timed out as Gazebo has not been detected.");
PX4_WARN("Service call timed out as Gazebo has not been detected." Retrying...);
system_usleep(2000000);

} else {
Expand Down Expand Up @@ -919,7 +919,7 @@ bool GZBridge::callEntityFactoryService(const std::string &service, const gz::ms
}

} else {
PX4_ERR("Service call timed out. Check GZ_SIM_RESOURCE_PATH is set correctly.");
PX4_WARN("Service call timed out. Check GZ_SIM_RESOURCE_PATH is set correctly.");
return false;
}

Expand All @@ -942,7 +942,7 @@ bool GZBridge::callSceneInfoMsgService(const std::string &service)
}

} else {
PX4_ERR("Service call timed out. Check GZ_SIM_RESOURCE_PATH is set correctly.");
PX4_WARN("Service call timed out. Check GZ_SIM_RESOURCE_PATH is set correctly.");
return false;
}

Expand All @@ -964,7 +964,7 @@ bool GZBridge::callStringMsgService(const std::string &service, const gz::msgs::
}

else {
PX4_ERR("Service call timed out: %s", service.c_str());
PX4_WARN("Service call timed out: %s", service.c_str());
return false;
}

Expand All @@ -986,7 +986,7 @@ bool GZBridge::callVector3dService(const std::string &service, const gz::msgs::V
}

else {
PX4_ERR("Service call timed out: %s", service.c_str());
PX4_WARN("Service call timed out: %s", service.c_str());
return false;
}

Expand Down

0 comments on commit 2467418

Please sign in to comment.