YARP
Yet Another Robot Platform
PoseStampedRosPublisher.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_POSEROSPUBLISHER_H
11 #define YARP_DEV_POSEROSPUBLISHER_H
12 
15 
32 class PoseStampedRosPublisher : public GenericSensorRosPublisher<yarp::rosmsg::geometry_msgs::PoseStamped>
33 {
34  // Interface of the wrapped device
35  yarp::dev::IOrientationSensors* m_iOrientationSensors{ nullptr };
36  yarp::dev::IPositionSensors* m_iPositionSensors {nullptr};
37 
38 public:
40 
43 
46 
47  /* PeriodicRateThread methods */
48  void run() override;
49 
50 protected:
51  bool viewInterfaces() override;
52 };
53 
54 #endif
This abstract template needs to be specialized in a ROS Publisher, for a specific ROS mesagge/sensor ...
This wrapper connects to a device and publishes a ROS topic of type geometry_msgs::PoseStamped.
void run() override
Loop function.
Device interface to one or multiple orientation sensors, such as IMUs with on board estimation algori...
Device interface to one or multiple position sensors, such as UWB localization sensors.