YARP
Yet Another Robot Platform
TemperatureRosPublisher.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT)
3  * SPDX-License-Identifier: BSD-3-Clause
4  */
5 
6 
7 #ifndef YARP_DEV_TEMPERATUREROSPUBLISHER_H
8 #define YARP_DEV_TEMPERATUREROSPUBLISHER_H
9 
12 
29 class TemperatureRosPublisher : public GenericSensorRosPublisher<yarp::rosmsg::sensor_msgs::Temperature>
30 {
31  // Interface of the wrapped device
32  yarp::dev::ITemperatureSensors* m_ITemperature{ nullptr };
33 
34 public:
36 
39 
42 
43  /* PeriodicRateThread methods */
44  void run() override;
45 
46  bool viewInterfaces() override;
47 };
48 
49 #endif
This abstract template needs to be specialized in a ROS Publisher, for a specific ROS mesagge/sensor ...
TemperatureRosPublisher: This wrapper connects to a device and publishes a ROS topic of type sensor_m...
void run() override
Loop function.
Device interface to one or multiple temperature sensors.