YARP
Yet Another Robot Platform
MagneticFieldRosPublisher.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT)
3  * SPDX-License-Identifier: BSD-3-Clause
4  */
5 
6 
7 #ifndef YARP_DEV_MAGFIELDROSPUBLISHER_H
8 #define YARP_DEV_MAGFIELDROSPUBLISHER_H
9 
12 
29 class MagneticFieldRosPublisher : public GenericSensorRosPublisher< yarp::rosmsg::sensor_msgs::MagneticField>
30 {
31 protected:
32  // Interface of the wrapped device
34 
35 public:
37 
40 
43 
44  /* PeriodicRateThread methods */
45  void run() override;
46 
47 protected:
48  virtual bool viewInterfaces() override;
49 };
50 
51 #endif
This abstract template needs to be specialized in a ROS Publisher, for a specific ROS mesagge/sensor ...
MagneticFieldRosPublisher: This wrapper connects to a device and publishes a ROS topic of type sensor...
virtual bool viewInterfaces() override
yarp::dev::IThreeAxisMagnetometers * m_iThreeAxisMagnetometers
void run() override
Loop function.
Device interface to one or multiple three axis magnetometers.