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
29class MagneticFieldRosPublisher : public GenericSensorRosPublisher< yarp::rosmsg::sensor_msgs::MagneticField>
30{
31protected:
32 // Interface of the wrapped device
34
35public:
37
40
43
44 /* PeriodicRateThread methods */
45 void run() override;
46
47protected:
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.
yarp::rosmsg::sensor_msgs::MagneticField MagneticField
Definition: MagneticField.h:21