YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
MagneticFieldRosPublisher.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2006-2023 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
11#include <yarp/rosmsg/sensor_msgs/MagneticField.h>
12
29class MagneticFieldRosPublisher : public GenericSensorRosPublisher< yarp::rosmsg::sensor_msgs::MagneticField>
30{
31protected:
32 // Interface of the wrapped device
34
35public:
36 using GenericSensorRosPublisher<yarp::rosmsg::sensor_msgs::MagneticField>::GenericSensorRosPublisher;
37
38 using GenericSensorRosPublisher<yarp::rosmsg::sensor_msgs::MagneticField>::open;
39 using GenericSensorRosPublisher<yarp::rosmsg::sensor_msgs::MagneticField>::close;
40
41 using GenericSensorRosPublisher<yarp::rosmsg::sensor_msgs::MagneticField>::attachAll;
42 using GenericSensorRosPublisher<yarp::rosmsg::sensor_msgs::MagneticField>::detachAll;
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.