C++ Process replay improvements - Part 1 (#20828)

* C++ Process replay improvements

* revert that change

* create publisher before subscribers

* dont block forever, print warning

* add comment

* create sockets after process init

* try once more to receive the message

* SIMULATION env variable

* print message num when no response
This commit is contained in:
Willem Melching
2021-05-05 17:14:29 +02:00
committed by GitHub
parent 33edb62967
commit d96edb6817
4 changed files with 17 additions and 10 deletions
+1 -1
View File
@@ -340,8 +340,8 @@ kj::ArrayPtr<capnp::byte> Localizer::get_message_bytes(MessageBuilder& msg_build
int Localizer::locationd_thread() {
const std::initializer_list<const char *> service_list =
{ "gpsLocationExternal", "sensorEvents", "cameraOdometry", "liveCalibration", "carState" };
SubMaster sm(service_list, nullptr, { "gpsLocationExternal" });
PubMaster pm({ "liveLocationKalman" });
SubMaster sm(service_list, nullptr, { "gpsLocationExternal" });
Params params;