YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
PoseStampedRosPublisher.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_POSEROSPUBLISHER_H
8#define YARP_DEV_POSEROSPUBLISHER_H
9
11#include <yarp/rosmsg/geometry_msgs/PoseStamped.h>
12
29class 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
35public:
36 using GenericSensorRosPublisher<yarp::rosmsg::geometry_msgs::PoseStamped>::GenericSensorRosPublisher;
37
38 using GenericSensorRosPublisher<yarp::rosmsg::geometry_msgs::PoseStamped>::open;
39 using GenericSensorRosPublisher<yarp::rosmsg::geometry_msgs::PoseStamped>::close;
40
41 using GenericSensorRosPublisher<yarp::rosmsg::geometry_msgs::PoseStamped>::attachAll;
42 using GenericSensorRosPublisher<yarp::rosmsg::geometry_msgs::PoseStamped>::detachAll;
43
44 /* PeriodicRateThread methods */
45 void run() override;
46
47protected:
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.