Template Class EventHandler

Inheritance Relationships

Base Type

Class Documentation

template<typename EventCallbackT, typename ParentHandleT>
class EventHandler : public rclcpp::EventHandlerBase

Public Functions

template<typename InitFuncT, typename EventTypeEnum>
inline EventHandler(const EventCallbackT &callback, InitFuncT init_func, ParentHandleT parent_handle, EventTypeEnum event_type)
inline ~EventHandler()
inline virtual std::shared_ptr<void> take_data() override

Take data so that the callback cannot be scheduled again.

inline std::shared_ptr<void> take_data_by_entity_id([[maybe_unused]] size_t id) override
inline virtual void execute(const std::shared_ptr<void> &data) override

Execute any entities of the Waitable that are ready.