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 
15 
32 class MagneticFieldRosPublisher : public GenericSensorRosPublisher< yarp::rosmsg::sensor_msgs::MagneticField>
33 {
34 protected:
35  // Interface of the wrapped device
37 
38 public:
40 
43 
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