Browse Source

fix: in c++ ros2 example, too few ticks to ensure everything work correctly

tags/v0.3.12-fix
drindr 6 months ago
parent
commit
37ea05439a
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      examples/c++-ros2-dataflow/node-rust-api/main.cc

+ 1
- 1
examples/c++-ros2-dataflow/node-rust-api/main.cc View File

@@ -73,7 +73,7 @@ int main()
std::cerr << "Unknown event type " << static_cast<int>(ty) << std::endl;
}

if (received_ticks > 20)
if (received_ticks > 20 && responses_received > 0)
{
break;
}


Loading…
Cancel
Save