YARP
Yet Another Robot Platform
IMURosPublisher.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_IMUROSPUBLISHER_H
11 #define YARP_DEV_IMUROSPUBLISHER_H
12 
14 
15  // Thrift-generated classes
17 
34 class IMURosPublisher : public GenericSensorRosPublisher<yarp::rosmsg::sensor_msgs::Imu>
35 {
36  // Interface of the wrapped device
37  yarp::dev::IThreeAxisLinearAccelerometers* m_iThreeAxisLinearAccelerometers{ nullptr };
38  yarp::dev::IThreeAxisGyroscopes* m_iThreeAxisGyroscopes{ nullptr };
39  yarp::dev::IOrientationSensors* m_iOrientationSensors{ nullptr };
40  yarp::dev::IThreeAxisMagnetometers* m_iThreeAxisMagnetometers{ nullptr };
41 
42 public:
44 
49 
50  /* PeriodicRateThread methods */
51  void run() override;
52 
53 protected:
54  bool viewInterfaces() override;
55 };
56 
57 #endif
GenericSensorRosPublisher.h
yarp::dev::IThreeAxisMagnetometers
Device interface to one or multiple three axis magnetometers.
Definition: MultipleAnalogSensorsInterfaces.h:165
yarp::dev::IThreeAxisGyroscopes
Device interface to one or multiple three axis gyroscopes.
Definition: MultipleAnalogSensorsInterfaces.h:64
yarp::dev::IOrientationSensors
Device interface to one or multiple orientation sensors, such as IMUs with on board estimation algori...
Definition: MultipleAnalogSensorsInterfaces.h:274
Imu.h
GenericSensorRosPublisher
This abstract template needs to be specialized in a ROS Publisher, for a specific ROS mesagge/sensor ...
Definition: GenericSensorRosPublisher.h:50
yarp::dev::IThreeAxisLinearAccelerometers
Device interface to one or multiple three axis linear accelerometers.
Definition: MultipleAnalogSensorsInterfaces.h:118
IMURosPublisher
IMURosPublisher: This wrapper connects to a device and publishes a ROS topic of type sensor_msgs::Imu...
Definition: IMURosPublisher.h:35
IMURosPublisher::viewInterfaces
bool viewInterfaces() override
Definition: IMURosPublisher.cpp:17
IMURosPublisher::run
void run() override
Loop function.
Definition: IMURosPublisher.cpp:29