35 auto&
module = static_cast<ModuleType&>(*this);
36 std::cout <<
"[" <<
module.config_.name << "] command_loop started\n";
38 while (module.running_) {
41 auto visitor = [&module](
auto&& tims_msg) {
43 auto& msg = tims_msg.payload;
44 using MsgType = std::decay_t<
decltype(msg)>;
46 std::cout <<
"[" <<
module.config_.name << "] Received command in command_loop\n";
49 module.handle_user_command(msg);
53 module.cmd_mailbox().receive_any(visitor);
56 std::cout <<
"[" <<
module.config_.name << "] command_loop ended\n";