16 bool ok = m_poly->
view(m_iFTsens);
17 m_iFTsens->getSixAxisForceTorqueSensorFrameName(m_sens_index, m_framename);
28 wrench_ros_data.
clear();
const yarp::os::LogComponent & GENERICSENSORROSPUBLISHER()
yarp::os::Publisher< yarp::rosmsg::geometry_msgs::WrenchStamped > m_publisher
const size_t m_sens_index
This wrapper connects to a device and publishes a ROS topic of type geometry_msgs::WrenchStamped.
void run() override
Loop function.
bool view(T *&x)
Get an interface to the device driver.
virtual bool getSixAxisForceTorqueSensorMeasure(size_t sens_index, yarp::sig::Vector &out, double ×tamp) const =0
Get the last reading of the specified sensor.
bool isOpen() const
Check if the port has been opened.
T & prepare()
Access the object which will be transmitted by the next call to yarp::os::Publisher::write.
void write(bool forceStrict=false)
Write the current object being returned by Publisher::prepare.
Port & asPort() override
Get the concrete Port being used for communication.
yarp::rosmsg::geometry_msgs::Wrench wrench
yarp::rosmsg::std_msgs::Header header
yarp::rosmsg::geometry_msgs::Vector3 torque
yarp::rosmsg::geometry_msgs::Vector3 force
#define YARP_LOG_COMPONENT(name,...)