| 32 | } |
| 33 | |
| 34 | bool ParameterModule::Start() { |
| 35 | try { |
| 36 | work_executor_.Execute(std::bind(&ParameterModule::SetParameterLoop, this)); |
| 37 | work_executor_.Execute(std::bind(&ParameterModule::GetParameterLoop, this)); |
| 38 | } catch (const std::exception& e) { |
| 39 | AIMRT_ERROR("Start failed, {}", e.what()); |
| 40 | return false; |
| 41 | } |
| 42 | |
| 43 | AIMRT_INFO("Start succeeded."); |
| 44 | return true; |
| 45 | } |
| 46 | |
| 47 | void ParameterModule::Shutdown() { |
| 48 | try { |