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
13
#include "
GenericSensorRosPublisher.h
"
14
#include <
yarp/rosmsg/sensor_msgs/Temperature.h
>
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
:
38
using
GenericSensorRosPublisher<yarp::rosmsg::sensor_msgs::Temperature>::GenericSensorRosPublisher
;
39
40
using
GenericSensorRosPublisher<yarp::rosmsg::sensor_msgs::Temperature>::open
;
41
using
GenericSensorRosPublisher<yarp::rosmsg::sensor_msgs::Temperature>::close
;
42
43
using
GenericSensorRosPublisher<yarp::rosmsg::sensor_msgs::Temperature>::attachAll
;
44
using
GenericSensorRosPublisher<yarp::rosmsg::sensor_msgs::Temperature>::detachAll
;
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
YARP
3.4.100+20201223.2+gitb8ea4d712
src
devices
multipleAnalogSensorsRosPublishers
TemperatureRosPublisher.h
Generated on Sun Jan 3 2021 02:46:23 for YARP by
1.8.20