Class robot_interfaces::SensorFrontend¶
-
template<typename ObservationType, typename InfoType = None>
class SensorFrontend¶ Communication link between SensorData and the user.
Exposes the sensor data to the user to enable the user to get observations, timestamps, and timeindices from the timeseries.
- Template Parameters:
ObservationType –
Public Types
-
typedef std::shared_ptr<SensorFrontend<ObservationType, InfoType>> Ptr¶
-
typedef std::shared_ptr<const SensorFrontend<ObservationType, InfoType>> ConstPtr¶
-
typedef time_series::Timestamp TimeStamp¶
-
typedef time_series::Index TimeIndex¶
-
template<typename Type>
using Timeseries = time_series::TimeSeries<Type>
-
typedef std::shared_ptr<SensorFrontend<ObservationType, InfoType>> Ptr
-
typedef std::shared_ptr<const SensorFrontend<ObservationType, InfoType>> ConstPtr
-
typedef time_series::Timestamp TimeStamp
-
typedef time_series::Index TimeIndex
Public Functions
-
inline ObservationType get_observation(const TimeIndex t) const¶
-
inline ObservationType get_latest_observation() const¶
-
inline SensorFrontend(std::shared_ptr<SensorData<ObservationType, InfoType>> sensor_data)
-
inline InfoType get_sensor_info() const
-
inline ObservationType get_observation(const TimeIndex t) const
-
inline ObservationType get_latest_observation() const
-
inline TimeIndex get_current_timeindex() const