17 #ifndef CYBER_COMPONENT_TIMER_COMPONENT_H_ 18 #define CYBER_COMPONENT_TIMER_COMPONENT_H_ 47 bool Initialize(
const TimerComponentConfig& config)
override;
48 void Clear()
override;
58 virtual bool Proc() = 0;
60 uint64_t interval_ = 0;
61 std::unique_ptr<Timer> timer_;
67 #endif // CYBER_COMPONENT_TIMER_COMPONENT_H_
uint64_t GetInterval() const
TimerComponent is a timer component. Your component can inherit from Component, and implement Init() ...
Definition: timer_component.h:35
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
~TimerComponent() override
Definition: component_base.h:41
bool Initialize(const TimerComponentConfig &config) override
init the component by protobuf object.