YARP
Yet Another Robot Platform
TemperatureRosPublisher.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2006-2020 Istituto Italiano di Tecnologia (IIT)
3  * All rights reserved.
4  *
5  * This software may be modified and distributed under the terms of the
6  * BSD-3-Clause license. See the accompanying LICENSE file for details.
7  */
8 
9 
10 #ifndef YARP_DEV_TEMPERATUREROSPUBLISHER_H
11 #define YARP_DEV_TEMPERATUREROSPUBLISHER_H
12 
15 
32 class TemperatureRosPublisher : public GenericSensorRosPublisher<yarp::rosmsg::sensor_msgs::Temperature>
33 {
34  // Interface of the wrapped device
35  yarp::dev::ITemperatureSensors* m_ITemperature{ nullptr };
36 
37 public:
39 
42 
45 
46  /* PeriodicRateThread methods */
47  void run() override;
48 
49  bool viewInterfaces() override;
50 };
51 
52 #endif
TemperatureRosPublisher::run
void run() override
Loop function.
Definition: TemperatureRosPublisher.cpp:22
GenericSensorRosPublisher.h
GenericSensorRosPublisher
This abstract template needs to be specialized in a ROS Publisher, for a specific ROS mesagge/sensor ...
Definition: GenericSensorRosPublisher.h:50
TemperatureRosPublisher::viewInterfaces
bool viewInterfaces() override
Definition: TemperatureRosPublisher.cpp:13
Temperature.h
yarp::dev::ITemperatureSensors
Device interface to one or multiple temperature sensors.
Definition: MultipleAnalogSensorsInterfaces.h:365
TemperatureRosPublisher
TemperatureRosPublisher: This wrapper connects to a device and publishes a ROS topic of type sensor_m...
Definition: TemperatureRosPublisher.h:33