| 164 | } |
| 165 | |
| 166 | void Ros2Plugin::SetExecutorThreadSchedOption() { |
| 167 | try { |
| 168 | aimrt::runtime::core::util::SetNameForCurrentThread(options_.executor_name); |
| 169 | aimrt::runtime::core::util::BindCpuForCurrentThread(options_.executor_bind_cpus); |
| 170 | aimrt::runtime::core::util::SetCpuSchedForCurrentThread(options_.executor_sched_policy); |
| 171 | } catch (const aimrt::common::util::AimRTException& e) { |
| 172 | AIMRT_WARN("Set thread policy for ros2 executor '{}' get exception, {}", |
| 173 | Name(), e.what()); |
| 174 | } |
| 175 | } |
| 176 | |
| 177 | void Ros2Plugin::SetPluginLogger() { |
| 178 | SetLogger(aimrt::logger::LoggerRef( |
nothing calls this directly
no test coverage detected