YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
TemperatureRosPublisher.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2006-2023 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
29class TemperatureRosPublisher : public GenericSensorRosPublisher<yarp::rosmsg::sensor_msgs::Temperature>
30{
31 // Interface of the wrapped device
32 yarp::dev::ITemperatureSensors* m_ITemperature{ nullptr };
33
34public:
35 using GenericSensorRosPublisher<yarp::rosmsg::sensor_msgs::Temperature>::GenericSensorRosPublisher;
36
37 using GenericSensorRosPublisher<yarp::rosmsg::sensor_msgs::Temperature>::open;
38 using GenericSensorRosPublisher<yarp::rosmsg::sensor_msgs::Temperature>::close;
39
40 using GenericSensorRosPublisher<yarp::rosmsg::sensor_msgs::Temperature>::attachAll;
41 using GenericSensorRosPublisher<yarp::rosmsg::sensor_msgs::Temperature>::detachAll;
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.