MCPcopy Create free account
hub / github.com/AimRT/AimRT / Initialize

Method Initialize

src/examples/cpp/executor/module/timer_module/timer_module.cc:11–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9namespace aimrt::examples::cpp::executor::timer_module {
10
11bool TimerModule::Initialize(aimrt::CoreRef core) {
12 core_ = core;
13
14 timer_executor_ = core_.GetExecutorManager().GetExecutor("timer_executor");
15 AIMRT_CHECK_ERROR_THROW(timer_executor_, "Can not get timer_executor");
16 AIMRT_CHECK_ERROR_THROW(timer_executor_.SupportTimerSchedule(),
17 "timer_executor does not support timer schedule");
18
19 return true;
20}
21
22bool TimerModule::Start() {
23 using namespace std::chrono_literals;

Callers

nothing calls this directly

Calls 3

GetExecutorManagerMethod · 0.80
GetExecutorMethod · 0.45
SupportTimerScheduleMethod · 0.45

Tested by

no test coverage detected