YARP
Yet Another Robot Platform
PoseStampedRosPublisher.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_POSEROSPUBLISHER_H
8 #define YARP_DEV_POSEROSPUBLISHER_H
9 
12 
29 class PoseStampedRosPublisher : public GenericSensorRosPublisher<yarp::rosmsg::geometry_msgs::PoseStamped>
30 {
31  // Interface of the wrapped device
32  yarp::dev::IOrientationSensors* m_iOrientationSensors{ nullptr };
33  yarp::dev::IPositionSensors* m_iPositionSensors {nullptr};
34 
35 public:
37 
40 
43 
44  /* PeriodicRateThread methods */
45  void run() override;
46 
47 protected:
48  bool viewInterfaces() override;
49 };
50 
51 #endif
This abstract template needs to be specialized in a ROS Publisher, for a specific ROS mesagge/sensor ...
PoseStampedRosPublisher: This wrapper connects to a device and publishes a ROS topic of type geometry...
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.