YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
WrenchStampedRosPublisher.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_WRENCHROSPUBLISHER_H
8#define YARP_DEV_WRENCHROSPUBLISHER_H
9
11#include <yarp/rosmsg/geometry_msgs/WrenchStamped.h>
12
29class WrenchStampedRosPublisher : public GenericSensorRosPublisher<yarp::rosmsg::geometry_msgs::WrenchStamped>
30{
31 // Interface of the wrapped device
32 yarp::dev::ISixAxisForceTorqueSensors* m_iFTsens{ nullptr };
33
34public:
35 using GenericSensorRosPublisher<yarp::rosmsg::geometry_msgs::WrenchStamped>::GenericSensorRosPublisher;
36
37 using GenericSensorRosPublisher<yarp::rosmsg::geometry_msgs::WrenchStamped>::open;
38 using GenericSensorRosPublisher<yarp::rosmsg::geometry_msgs::WrenchStamped>::close;
39 using GenericSensorRosPublisher<yarp::rosmsg::geometry_msgs::WrenchStamped>::attachAll;
40 using GenericSensorRosPublisher<yarp::rosmsg::geometry_msgs::WrenchStamped>::detachAll;
41
42 /* PeriodicRateThread methods */
43 void run() override;
44
45protected:
46 bool viewInterfaces() override;
47};
48
49#endif
This abstract template needs to be specialized in a ROS Publisher, for a specific ROS mesagge/sensor ...
WrenchStampedRosPublisher: This wrapper connects to a device and publishes a ROS topic of type geomet...
void run() override
Loop function.
Device interface to one or multiple six axis force torque sensor.