YARP
Yet Another Robot Platform
MagneticFieldRosPublisher.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_MAGFIELDROSPUBLISHER_H
11
#define YARP_DEV_MAGFIELDROSPUBLISHER_H
12
13
#include "
GenericSensorRosPublisher.h
"
14
#include <
yarp/rosmsg/sensor_msgs/MagneticField.h
>
15
32
class
MagneticFieldRosPublisher
:
public
GenericSensorRosPublisher
< yarp::rosmsg::sensor_msgs::MagneticField>
33
{
34
protected
:
35
// Interface of the wrapped device
36
yarp::dev::IThreeAxisMagnetometers
*
m_iThreeAxisMagnetometers
{
nullptr
};
37
38
public
:
39
using
GenericSensorRosPublisher<yarp::rosmsg::sensor_msgs::MagneticField>::GenericSensorRosPublisher
;
40
41
using
GenericSensorRosPublisher<yarp::rosmsg::sensor_msgs::MagneticField>::open
;
42
using
GenericSensorRosPublisher<yarp::rosmsg::sensor_msgs::MagneticField>::close
;
43
44
using
GenericSensorRosPublisher<yarp::rosmsg::sensor_msgs::MagneticField>::attachAll
;
45
using
GenericSensorRosPublisher<yarp::rosmsg::sensor_msgs::MagneticField>::detachAll
;
46
47
/* PeriodicRateThread methods */
48
void
run
()
override
;
49
50
protected
:
51
virtual
bool
viewInterfaces
()
override
;
52
};
53
54
#endif
MagneticFieldRosPublisher::viewInterfaces
virtual bool viewInterfaces() override
Definition:
MagneticFieldRosPublisher.cpp:13
GenericSensorRosPublisher.h
yarp::dev::IThreeAxisMagnetometers
Device interface to one or multiple three axis magnetometers.
Definition:
MultipleAnalogSensorsInterfaces.h:165
MagneticField.h
GenericSensorRosPublisher
This abstract template needs to be specialized in a ROS Publisher, for a specific ROS mesagge/sensor ...
Definition:
GenericSensorRosPublisher.h:50
MagneticFieldRosPublisher::run
void run() override
Loop function.
Definition:
MagneticFieldRosPublisher.cpp:22
MagneticFieldRosPublisher::m_iThreeAxisMagnetometers
yarp::dev::IThreeAxisMagnetometers * m_iThreeAxisMagnetometers
Definition:
MagneticFieldRosPublisher.h:36
MagneticFieldRosPublisher
MagneticFieldRosPublisher: This wrapper connects to a device and publishes a ROS topic of type sensor...
Definition:
MagneticFieldRosPublisher.h:33
YARP
3.4.100+20201223.2+gitb8ea4d712
src
devices
multipleAnalogSensorsRosPublishers
MagneticFieldRosPublisher.h
Generated on Sun Jan 3 2021 02:46:23 for YARP by
1.8.20