Skip to content

Commit

Permalink
gz: increase timeout for service request
Browse files Browse the repository at this point in the history
  • Loading branch information
dakejahl committed Jan 17, 2025
1 parent 1eb9434 commit 57dd4da
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/modules/simulation/gz_bridge/GZBridge.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -932,7 +932,7 @@ bool GZBridge::callSceneInfoMsgService(const std::string &service)
gz::msgs::Empty req;
gz::msgs::Scene rep;

if (_node.Request(service, req, 1000, rep, result)) {
if (_node.Request(service, req, 3000, rep, result)) {
if (!result) {
PX4_ERR("Scene Info service call failed.");
return false;
Expand All @@ -955,7 +955,7 @@ bool GZBridge::callStringMsgService(const std::string &service, const gz::msgs::

gz::msgs::Boolean rep;

if (_node.Request(service, req, 1000, rep, result)) {
if (_node.Request(service, req, 3000, rep, result)) {
if (!rep.data() || !result) {
PX4_ERR("String service call failed");
return false;
Expand All @@ -977,7 +977,7 @@ bool GZBridge::callVector3dService(const std::string &service, const gz::msgs::V

gz::msgs::Boolean rep;

if (_node.Request(service, req, 1000, rep, result)) {
if (_node.Request(service, req, 3000, rep, result)) {
if (!rep.data() || !result) {
PX4_ERR("String service call failed");
return false;
Expand Down

0 comments on commit 57dd4da

Please sign in to comment.