14 ok = m_poly->
view(m_ITemperature);
20 ok = m_ITemperature->getTemperatureSensorFrameName(0,m_framename);
32 temp_ros_data.clear();
36 temp_ros_data.temperature = temperature;
37 temp_ros_data.variance = 0;
const yarp::os::LogComponent & GENERICSENSORROSPUBLISHER()
yarp::os::Publisher< yarp::rosmsg::sensor_msgs::Temperature > m_publisher
TemperatureRosPublisher: This wrapper connects to a device and publishes a ROS topic of type sensor_m...
void run() override
Loop function.
bool view(T *&x)
Get an interface to the device driver.
virtual bool getTemperatureSensorMeasure(size_t sens_index, double &out, double ×tamp) const =0
Get the last reading of the specified sensor.
bool isOpen() const
Check if the port has been opened.
Port & asPort() override
Get the concrete Port being used for communication.
void write(bool forceStrict=false)
Write the current object being returned by Publisher::prepare.
T & prepare()
Access the object which will be transmitted by the next call to yarp::os::Publisher::write.
#define yCError(component,...)
#define YARP_LOG_COMPONENT(name,...)