YARP
Yet Another Robot Platform
WrenchStampedRosPublisher.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_WRENCHROSPUBLISHER_H
11 #define YARP_DEV_WRENCHROSPUBLISHER_H
12 
15 
32 class WrenchStampedRosPublisher : public GenericSensorRosPublisher<yarp::rosmsg::geometry_msgs::WrenchStamped>
33 {
34  // Interface of the wrapped device
35  yarp::dev::ISixAxisForceTorqueSensors* m_iFTsens{ nullptr };
36 
37 public:
39 
44 
45  /* PeriodicRateThread methods */
46  void run() override;
47 
48 protected:
49  bool viewInterfaces() override;
50 };
51 
52 #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::WrenchStamped.
void run() override
Loop function.
Device interface to one or multiple six axis force torque sensor.