YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
WrenchStamped_nws_ros2.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2023 Istituto Italiano di Tecnologia (IIT)
3 * SPDX-License-Identifier: BSD-3-Clause
4 */
5
6#ifndef YARP_DEV_WRENCHSTAMPED_NWS_ROS2_H
7#define YARP_DEV_WRENCHSTAMPED_NWS_ROS2_H
8
10#include <geometry_msgs/msg/wrench_stamped.hpp>
11
24class WrenchStamped_nws_ros2 : public GenericSensor_nws_ros2<geometry_msgs::msg::WrenchStamped>
25{
26 // Interface of the wrapped device
27 yarp::dev::ISixAxisForceTorqueSensors* m_iFTsens{ nullptr };
28
29public:
30 using GenericSensor_nws_ros2<geometry_msgs::msg::WrenchStamped>::GenericSensor_nws_ros2;
31
32 using GenericSensor_nws_ros2<geometry_msgs::msg::WrenchStamped>::open;
33 using GenericSensor_nws_ros2<geometry_msgs::msg::WrenchStamped>::close;
34 using GenericSensor_nws_ros2<geometry_msgs::msg::WrenchStamped>::attachAll;
35 using GenericSensor_nws_ros2<geometry_msgs::msg::WrenchStamped>::detachAll;
36
37 /* PeriodicRateThread methods */
38 void run() override;
39
40protected:
41 bool viewInterfaces() override;
42};
43
44#endif
This abstract template needs to be specialized in a ROS Publisher, for a specific ROS mesagge/sensor ...
bool attachAll(const yarp::dev::PolyDriverList &p) override
WrenchStamped_nws_ros2: 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 six axis force torque sensor.