|
using | SourceBaseType = SensorEventSource< EventT, EventHandlerT, EventArgs... > |
|
using | SourceCallbackType = AZStd::function< void(EventArgs...)> |
|
using | AdaptedCallbackType = AZStd::function< void(float, EventArgs...)> |
|
using | SourceEventType = EventT< EventArgs... > |
|
using | SourceEventHandlerType = EventHandlerT< EventArgs... > |
|
using | AdaptedEventType = EventT< float, EventArgs... > |
|
using | AdaptedEventHandlerType = EventHandlerT< float, EventArgs... > |
|
template<template< typename... > class EventT, template< typename... > class EventHandlerT, typename... EventArgs>
class ROS2::SensorEventSource< EventT, EventHandlerT, EventArgs >
Base class template for sensor event sources (based e.g. on TickBus or engine physics callback). Developer that wants to implement new event source should derive from this class and signal m_sensorEvent based on chosen approach. Derived classes can be used directly as unconstrained source of frequency - e.g. TickBasedSource, when synchronization with draw calls is necessary. However, in most common case they will be used as source of events for sensors, through EventSourceAdapter object, where their m_sensorEvent will be additionally adapted to some sensor-specific frequency.
- See also
- ROS2::EventSourceAdapter
-
ROS2::TickBasedSource
-
ROS2::PhysicsBasedSource