YARP
Yet Another Robot Platform
yarp::os::TypedReader< T > Class Template Referenceabstract

A base class for sources of typed data. More...

#include <yarp/os/TypedReader.h>

+ Inheritance diagram for yarp::os::TypedReader< T >:

Public Member Functions

virtual void setStrict (bool strict=true)=0
 Call this to strictly keep all messages, or allow old ones to be quietly dropped. More...
 
virtual T * read (bool shouldWait=true)=0
 Read an available object from the port. More...
 
virtual void interrupt ()=0
 Abort any read operation currently in progress. More...
 
virtual T * lastRead ()=0
 Get the last data returned by read() More...
 
virtual bool isClosed ()=0
 Returns whether the port associated with this reader has been closed. More...
 
virtual void useCallback (TypedReaderCallback< T > &callback)=0
 Set an object whose onRead method will be called when data is available. More...
 
virtual void disableCallback ()=0
 Remove a callback set up with useCallback() More...
 
virtual int getPendingReads ()=0
 Check how many messages are waiting to be read. More...
 
virtual ~TypedReader ()=default
 Destructor. More...
 
virtual std::string getName () const =0
 Get name of port being read from. More...
 
virtual void setReplier (PortReader &reader)=0
 If a message is received that requires a reply, use this handler. More...
 
virtual void * acquire ()=0
 Take control of the last object read. More...
 
virtual void release (void *handle)=0
 Return control to YARP of an object previously taken control of with the acquire() method. More...
 
virtual void setTargetPeriod (double period)=0
 Try to provide data periodically. More...
 

Detailed Description

template<class T>
class yarp::os::TypedReader< T >

A base class for sources of typed data.

This could be a BufferedPort or a PortReaderBuffer.

Definition at line 25 of file TypedReader.h.

Constructor & Destructor Documentation

◆ ~TypedReader()

template<class T >
virtual yarp::os::TypedReader< T >::~TypedReader ( )
virtualdefault

Destructor.

Member Function Documentation

◆ acquire()

template<class T >
virtual void* yarp::os::TypedReader< T >::acquire ( )
pure virtual

Take control of the last object read.

YARP will not reuse that object until it is explicitly released by the user. Be careful - if you acquire objects without releasing, YARP will keep making new ones to store incoming messages. So you need to release all objects you acquire eventually to avoid running out of memory.

Returns
the handle to call release() with in order to give YARP back control of the last object read.

Implemented in yarp::os::PortReaderBuffer< T >, yarp::os::PortReaderBuffer< yarp::rosmsg::sensor_msgs::Temperature >, yarp::os::PortReaderBuffer< yarp::rosmsg::geometry_msgs::WrenchStamped >, yarp::os::PortReaderBuffer< yarp::sig::Vector >, yarp::os::PortReaderBuffer< ImageType >, yarp::os::PortReaderBuffer< yarp::sig::VectorOf >, yarp::os::PortReaderBuffer< yarp::dev::impl::jointData >, yarp::os::PortReaderBuffer< SensorStreamingData >, yarp::os::PortReaderBuffer< yarp::sig::ImageOf< yarp::sig::PixelFloat > >, yarp::os::PortReaderBuffer< yarp::os::Bottle >, yarp::os::PortReaderBuffer< ROS_MSG >, yarp::os::PortReaderBuffer< yarp::os::PortablePair >, yarp::os::PortReaderBuffer< JoyData >, yarp::os::PortReaderBuffer< yarp::rosmsg::visualization_msgs::MarkerArray >, yarp::os::PortReaderBuffer< yarp::rosmsg::tf2_msgs::TFMessage >, yarp::os::PortReaderBuffer< yarp::sig::ImageOf< yarp::sig::PixelRgb > >, yarp::os::PortReaderBuffer< yarp::rosmsg::sensor_msgs::CameraInfo >, yarp::os::PortReaderBuffer< yarp::dev::Nav2D::Map2DLocation >, yarp::os::PortReaderBuffer< yarp::rosmsg::nav_msgs::OccupancyGrid >, yarp::os::PortReaderBuffer< yarp::rosmsg::geometry_msgs::PoseStamped >, yarp::os::PortReaderBuffer< yarp::rosmsg::nav_msgs::Odometry >, yarp::os::PortReaderBuffer< yarp::rosmsg::nav_msgs::MapMetaData >, yarp::os::PortReaderBuffer< yarp::dev::LaserScan2D >, yarp::os::PortReaderBuffer< yarp::sig::FlexImage >, yarp::os::PortReaderBuffer< yarp::rosmsg::sensor_msgs::JointState >, yarp::os::PortReaderBuffer< yarp::dev::OdometryData >, yarp::os::PortReaderBuffer< yarp::rosmsg::sensor_msgs::LaserScan >, yarp::os::PortReaderBuffer< DepthImage >, yarp::os::PortReaderBuffer< yarp::rosmsg::sensor_msgs::Image >, yarp::os::PortReaderBuffer< yarp::rosmsg::sensor_msgs::MagneticField >, yarp::os::PortReaderBuffer< yarp::rosmsg::sensor_msgs::Imu >, yarp::os::PortReaderBuffer< yarp::sig::Sound >, yarp::os::BufferedPort< T >, yarp::os::BufferedPort< yarp::rosmsg::sensor_msgs::Temperature >, yarp::os::BufferedPort< yarp::rosmsg::geometry_msgs::WrenchStamped >, yarp::os::BufferedPort< yarp::sig::Vector >, yarp::os::BufferedPort< ImageType >, yarp::os::BufferedPort< yarp::sig::VectorOf >, yarp::os::BufferedPort< yarp::dev::impl::jointData >, yarp::os::BufferedPort< SensorStreamingData >, yarp::os::BufferedPort< yarp::sig::ImageOf< yarp::sig::PixelFloat > >, yarp::os::BufferedPort< yarp::os::Bottle >, yarp::os::BufferedPort< ROS_MSG >, yarp::os::BufferedPort< yarp::os::PortablePair >, yarp::os::BufferedPort< JoyData >, yarp::os::BufferedPort< yarp::rosmsg::visualization_msgs::MarkerArray >, yarp::os::BufferedPort< yarp::rosmsg::tf2_msgs::TFMessage >, yarp::os::BufferedPort< yarp::rosmsg::sensor_msgs::CameraInfo >, yarp::os::BufferedPort< yarp::dev::Nav2D::Map2DLocation >, yarp::os::BufferedPort< yarp::rosmsg::nav_msgs::OccupancyGrid >, yarp::os::BufferedPort< yarp::rosmsg::geometry_msgs::PoseStamped >, yarp::os::BufferedPort< yarp::rosmsg::nav_msgs::Odometry >, yarp::os::BufferedPort< yarp::rosmsg::nav_msgs::MapMetaData >, yarp::os::BufferedPort< yarp::dev::LaserScan2D >, yarp::os::BufferedPort< yarp::sig::FlexImage >, yarp::os::BufferedPort< yarp::rosmsg::sensor_msgs::JointState >, yarp::os::BufferedPort< yarp::dev::OdometryData >, yarp::os::BufferedPort< yarp::rosmsg::sensor_msgs::LaserScan >, yarp::os::BufferedPort< DepthImage >, yarp::os::BufferedPort< yarp::rosmsg::sensor_msgs::Image >, yarp::os::BufferedPort< yarp::rosmsg::sensor_msgs::MagneticField >, yarp::os::BufferedPort< yarp::rosmsg::sensor_msgs::Imu >, and yarp::os::BufferedPort< yarp::sig::Sound >.

◆ disableCallback()

template<class T >
virtual void yarp::os::TypedReader< T >::disableCallback ( )
pure virtual

Remove a callback set up with useCallback()

Implemented in yarp::os::PortReaderBuffer< T >, yarp::os::PortReaderBuffer< yarp::rosmsg::sensor_msgs::Temperature >, yarp::os::PortReaderBuffer< yarp::rosmsg::geometry_msgs::WrenchStamped >, yarp::os::PortReaderBuffer< yarp::sig::Vector >, yarp::os::PortReaderBuffer< ImageType >, yarp::os::PortReaderBuffer< yarp::sig::VectorOf >, yarp::os::PortReaderBuffer< yarp::dev::impl::jointData >, yarp::os::PortReaderBuffer< SensorStreamingData >, yarp::os::PortReaderBuffer< yarp::sig::ImageOf< yarp::sig::PixelFloat > >, yarp::os::PortReaderBuffer< yarp::os::Bottle >, yarp::os::PortReaderBuffer< ROS_MSG >, yarp::os::PortReaderBuffer< yarp::os::PortablePair >, yarp::os::PortReaderBuffer< JoyData >, yarp::os::PortReaderBuffer< yarp::rosmsg::visualization_msgs::MarkerArray >, yarp::os::PortReaderBuffer< yarp::rosmsg::tf2_msgs::TFMessage >, yarp::os::PortReaderBuffer< yarp::sig::ImageOf< yarp::sig::PixelRgb > >, yarp::os::PortReaderBuffer< yarp::rosmsg::sensor_msgs::CameraInfo >, yarp::os::PortReaderBuffer< yarp::dev::Nav2D::Map2DLocation >, yarp::os::PortReaderBuffer< yarp::rosmsg::nav_msgs::OccupancyGrid >, yarp::os::PortReaderBuffer< yarp::rosmsg::geometry_msgs::PoseStamped >, yarp::os::PortReaderBuffer< yarp::rosmsg::nav_msgs::Odometry >, yarp::os::PortReaderBuffer< yarp::rosmsg::nav_msgs::MapMetaData >, yarp::os::PortReaderBuffer< yarp::dev::LaserScan2D >, yarp::os::PortReaderBuffer< yarp::sig::FlexImage >, yarp::os::PortReaderBuffer< yarp::rosmsg::sensor_msgs::JointState >, yarp::os::PortReaderBuffer< yarp::dev::OdometryData >, yarp::os::PortReaderBuffer< yarp::rosmsg::sensor_msgs::LaserScan >, yarp::os::PortReaderBuffer< DepthImage >, yarp::os::PortReaderBuffer< yarp::rosmsg::sensor_msgs::Image >, yarp::os::PortReaderBuffer< yarp::rosmsg::sensor_msgs::MagneticField >, yarp::os::PortReaderBuffer< yarp::rosmsg::sensor_msgs::Imu >, yarp::os::PortReaderBuffer< yarp::sig::Sound >, yarp::os::BufferedPort< T >, yarp::os::BufferedPort< yarp::rosmsg::sensor_msgs::Temperature >, yarp::os::BufferedPort< yarp::rosmsg::geometry_msgs::WrenchStamped >, yarp::os::BufferedPort< yarp::sig::Vector >, yarp::os::BufferedPort< ImageType >, yarp::os::BufferedPort< yarp::sig::VectorOf >, yarp::os::BufferedPort< yarp::dev::impl::jointData >, yarp::os::BufferedPort< SensorStreamingData >, yarp::os::BufferedPort< yarp::sig::ImageOf< yarp::sig::PixelFloat > >, yarp::os::BufferedPort< yarp::os::Bottle >, yarp::os::BufferedPort< ROS_MSG >, yarp::os::BufferedPort< yarp::os::PortablePair >, yarp::os::BufferedPort< JoyData >, yarp::os::BufferedPort< yarp::rosmsg::visualization_msgs::MarkerArray >, yarp::os::BufferedPort< yarp::rosmsg::tf2_msgs::TFMessage >, yarp::os::BufferedPort< yarp::rosmsg::sensor_msgs::CameraInfo >, yarp::os::BufferedPort< yarp::dev::Nav2D::Map2DLocation >, yarp::os::BufferedPort< yarp::rosmsg::nav_msgs::OccupancyGrid >, yarp::os::BufferedPort< yarp::rosmsg::geometry_msgs::PoseStamped >, yarp::os::BufferedPort< yarp::rosmsg::nav_msgs::Odometry >, yarp::os::BufferedPort< yarp::rosmsg::nav_msgs::MapMetaData >, yarp::os::BufferedPort< yarp::dev::LaserScan2D >, yarp::os::BufferedPort< yarp::sig::FlexImage >, yarp::os::BufferedPort< yarp::rosmsg::sensor_msgs::JointState >, yarp::os::BufferedPort< yarp::dev::OdometryData >, yarp::os::BufferedPort< yarp::rosmsg::sensor_msgs::LaserScan >, yarp::os::BufferedPort< DepthImage >, yarp::os::BufferedPort< yarp::rosmsg::sensor_msgs::Image >, yarp::os::BufferedPort< yarp::rosmsg::sensor_msgs::MagneticField >, yarp::os::BufferedPort< yarp::rosmsg::sensor_msgs::Imu >, and yarp::os::BufferedPort< yarp::sig::Sound >.

◆ getName()

template<class T >
virtual std::string yarp::os::TypedReader< T >::getName ( ) const
pure virtual

Get name of port being read from.

Returns
name of port

Implemented in yarp::os::PortReaderBuffer< T >, yarp::os::PortReaderBuffer< yarp::rosmsg::sensor_msgs::Temperature >, yarp::os::PortReaderBuffer< yarp::rosmsg::geometry_msgs::WrenchStamped >, yarp::os::PortReaderBuffer< yarp::sig::Vector >, yarp::os::PortReaderBuffer< ImageType >, yarp::os::PortReaderBuffer< yarp::sig::VectorOf >, yarp::os::PortReaderBuffer< yarp::dev::impl::jointData >, yarp::os::PortReaderBuffer< SensorStreamingData >, yarp::os::PortReaderBuffer< yarp::sig::ImageOf< yarp::sig::PixelFloat > >, yarp::os::PortReaderBuffer< yarp::os::Bottle >, yarp::os::PortReaderBuffer< ROS_MSG >, yarp::os::PortReaderBuffer< yarp::os::PortablePair >, yarp::os::PortReaderBuffer< JoyData >, yarp::os::PortReaderBuffer< yarp::rosmsg::visualization_msgs::MarkerArray >, yarp::os::PortReaderBuffer< yarp::rosmsg::tf2_msgs::TFMessage >, yarp::os::PortReaderBuffer< yarp::sig::ImageOf< yarp::sig::PixelRgb > >, yarp::os::PortReaderBuffer< yarp::rosmsg::sensor_msgs::CameraInfo >, yarp::os::PortReaderBuffer< yarp::dev::Nav2D::Map2DLocation >, yarp::os::PortReaderBuffer< yarp::rosmsg::nav_msgs::OccupancyGrid >, yarp::os::PortReaderBuffer< yarp::rosmsg::geometry_msgs::PoseStamped >, yarp::os::PortReaderBuffer< yarp::rosmsg::nav_msgs::Odometry >, yarp::os::PortReaderBuffer< yarp::rosmsg::nav_msgs::MapMetaData >, yarp::os::PortReaderBuffer< yarp::dev::LaserScan2D >, yarp::os::PortReaderBuffer< yarp::sig::FlexImage >, yarp::os::PortReaderBuffer< yarp::rosmsg::sensor_msgs::JointState >, yarp::os::PortReaderBuffer< yarp::dev::OdometryData >, yarp::os::PortReaderBuffer< yarp::rosmsg::sensor_msgs::LaserScan >, yarp::os::PortReaderBuffer< DepthImage >, yarp::os::PortReaderBuffer< yarp::rosmsg::sensor_msgs::Image >, yarp::os::PortReaderBuffer< yarp::rosmsg::sensor_msgs::MagneticField >, yarp::os::PortReaderBuffer< yarp::rosmsg::sensor_msgs::Imu >, yarp::os::PortReaderBuffer< yarp::sig::Sound >, yarp::os::BufferedPort< T >, yarp::os::BufferedPort< yarp::rosmsg::sensor_msgs::Temperature >, yarp::os::BufferedPort< yarp::rosmsg::geometry_msgs::WrenchStamped >, yarp::os::BufferedPort< yarp::sig::Vector >, yarp::os::BufferedPort< ImageType >, yarp::os::BufferedPort< yarp::sig::VectorOf >, yarp::os::BufferedPort< yarp::dev::impl::jointData >, yarp::os::BufferedPort< SensorStreamingData >, yarp::os::BufferedPort< yarp::sig::ImageOf< yarp::sig::PixelFloat > >, yarp::os::BufferedPort< yarp::os::Bottle >, yarp::os::BufferedPort< ROS_MSG >, yarp::os::BufferedPort< yarp::os::PortablePair >, yarp::os::BufferedPort< JoyData >, yarp::os::BufferedPort< yarp::rosmsg::visualization_msgs::MarkerArray >, yarp::os::BufferedPort< yarp::rosmsg::tf2_msgs::TFMessage >, yarp::os::BufferedPort< yarp::rosmsg::sensor_msgs::CameraInfo >, yarp::os::BufferedPort< yarp::dev::Nav2D::Map2DLocation >, yarp::os::BufferedPort< yarp::rosmsg::nav_msgs::OccupancyGrid >, yarp::os::BufferedPort< yarp::rosmsg::geometry_msgs::PoseStamped >, yarp::os::BufferedPort< yarp::rosmsg::nav_msgs::Odometry >, yarp::os::BufferedPort< yarp::rosmsg::nav_msgs::MapMetaData >, yarp::os::BufferedPort< yarp::dev::LaserScan2D >, yarp::os::BufferedPort< yarp::sig::FlexImage >, yarp::os::BufferedPort< yarp::rosmsg::sensor_msgs::JointState >, yarp::os::BufferedPort< yarp::dev::OdometryData >, yarp::os::BufferedPort< yarp::rosmsg::sensor_msgs::LaserScan >, yarp::os::BufferedPort< DepthImage >, yarp::os::BufferedPort< yarp::rosmsg::sensor_msgs::Image >, yarp::os::BufferedPort< yarp::rosmsg::sensor_msgs::MagneticField >, yarp::os::BufferedPort< yarp::rosmsg::sensor_msgs::Imu >, and yarp::os::BufferedPort< yarp::sig::Sound >.

◆ getPendingReads()

template<class T >
virtual int yarp::os::TypedReader< T >::getPendingReads ( )
pure virtual

Check how many messages are waiting to be read.

Returns
number of pending messages

Implemented in yarp::os::PortReaderBuffer< T >, yarp::os::PortReaderBuffer< yarp::rosmsg::sensor_msgs::Temperature >, yarp::os::PortReaderBuffer< yarp::rosmsg::geometry_msgs::WrenchStamped >, yarp::os::PortReaderBuffer< yarp::sig::Vector >, yarp::os::PortReaderBuffer< ImageType >, yarp::os::PortReaderBuffer< yarp::sig::VectorOf >, yarp::os::PortReaderBuffer< yarp::dev::impl::jointData >, yarp::os::PortReaderBuffer< SensorStreamingData >, yarp::os::PortReaderBuffer< yarp::sig::ImageOf< yarp::sig::PixelFloat > >, yarp::os::PortReaderBuffer< yarp::os::Bottle >, yarp::os::PortReaderBuffer< ROS_MSG >, yarp::os::PortReaderBuffer< yarp::os::PortablePair >, yarp::os::PortReaderBuffer< JoyData >, yarp::os::PortReaderBuffer< yarp::rosmsg::visualization_msgs::MarkerArray >, yarp::os::PortReaderBuffer< yarp::rosmsg::tf2_msgs::TFMessage >, yarp::os::PortReaderBuffer< yarp::sig::ImageOf< yarp::sig::PixelRgb > >, yarp::os::PortReaderBuffer< yarp::rosmsg::sensor_msgs::CameraInfo >, yarp::os::PortReaderBuffer< yarp::dev::Nav2D::Map2DLocation >, yarp::os::PortReaderBuffer< yarp::rosmsg::nav_msgs::OccupancyGrid >, yarp::os::PortReaderBuffer< yarp::rosmsg::geometry_msgs::PoseStamped >, yarp::os::PortReaderBuffer< yarp::rosmsg::nav_msgs::Odometry >, yarp::os::PortReaderBuffer< yarp::rosmsg::nav_msgs::MapMetaData >, yarp::os::PortReaderBuffer< yarp::dev::LaserScan2D >, yarp::os::PortReaderBuffer< yarp::sig::FlexImage >, yarp::os::PortReaderBuffer< yarp::rosmsg::sensor_msgs::JointState >, yarp::os::PortReaderBuffer< yarp::dev::OdometryData >, yarp::os::PortReaderBuffer< yarp::rosmsg::sensor_msgs::LaserScan >, yarp::os::PortReaderBuffer< DepthImage >, yarp::os::PortReaderBuffer< yarp::rosmsg::sensor_msgs::Image >, yarp::os::PortReaderBuffer< yarp::rosmsg::sensor_msgs::MagneticField >, yarp::os::PortReaderBuffer< yarp::rosmsg::sensor_msgs::Imu >, yarp::os::PortReaderBuffer< yarp::sig::Sound >, yarp::os::BufferedPort< T >, yarp::os::BufferedPort< yarp::rosmsg::sensor_msgs::Temperature >, yarp::os::BufferedPort< yarp::rosmsg::geometry_msgs::WrenchStamped >, yarp::os::BufferedPort< yarp::sig::Vector >, yarp::os::BufferedPort< ImageType >, yarp::os::BufferedPort< yarp::sig::VectorOf >, yarp::os::BufferedPort< yarp::dev::impl::jointData >, yarp::os::BufferedPort< SensorStreamingData >, yarp::os::BufferedPort< yarp::sig::ImageOf< yarp::sig::PixelFloat > >, yarp::os::BufferedPort< yarp::os::Bottle >, yarp::os::BufferedPort< ROS_MSG >, yarp::os::BufferedPort< yarp::os::PortablePair >, yarp::os::BufferedPort< JoyData >, yarp::os::BufferedPort< yarp::rosmsg::visualization_msgs::MarkerArray >, yarp::os::BufferedPort< yarp::rosmsg::tf2_msgs::TFMessage >, yarp::os::BufferedPort< yarp::rosmsg::sensor_msgs::CameraInfo >, yarp::os::BufferedPort< yarp::dev::Nav2D::Map2DLocation >, yarp::os::BufferedPort< yarp::rosmsg::nav_msgs::OccupancyGrid >, yarp::os::BufferedPort< yarp::rosmsg::geometry_msgs::PoseStamped >, yarp::os::BufferedPort< yarp::rosmsg::nav_msgs::Odometry >, yarp::os::BufferedPort< yarp::rosmsg::nav_msgs::MapMetaData >, yarp::os::BufferedPort< yarp::dev::LaserScan2D >, yarp::os::BufferedPort< yarp::sig::FlexImage >, yarp::os::BufferedPort< yarp::rosmsg::sensor_msgs::JointState >, yarp::os::BufferedPort< yarp::dev::OdometryData >, yarp::os::BufferedPort< yarp::rosmsg::sensor_msgs::LaserScan >, yarp::os::BufferedPort< DepthImage >, yarp::os::BufferedPort< yarp::rosmsg::sensor_msgs::Image >, yarp::os::BufferedPort< yarp::rosmsg::sensor_msgs::MagneticField >, yarp::os::BufferedPort< yarp::rosmsg::sensor_msgs::Imu >, and yarp::os::BufferedPort< yarp::sig::Sound >.

◆ interrupt()

template<class T >
virtual void yarp::os::TypedReader< T >::interrupt ( )
pure virtual

Abort any read operation currently in progress.

Implemented in yarp::os::PortReaderBuffer< T >, yarp::os::PortReaderBuffer< yarp::rosmsg::sensor_msgs::Temperature >, yarp::os::PortReaderBuffer< yarp::rosmsg::geometry_msgs::WrenchStamped >, yarp::os::PortReaderBuffer< yarp::sig::Vector >, yarp::os::PortReaderBuffer< ImageType >, yarp::os::PortReaderBuffer< yarp::sig::VectorOf >, yarp::os::PortReaderBuffer< yarp::dev::impl::jointData >, yarp::os::PortReaderBuffer< SensorStreamingData >, yarp::os::PortReaderBuffer< yarp::sig::ImageOf< yarp::sig::PixelFloat > >, yarp::os::PortReaderBuffer< yarp::os::Bottle >, yarp::os::PortReaderBuffer< ROS_MSG >, yarp::os::PortReaderBuffer< yarp::os::PortablePair >, yarp::os::PortReaderBuffer< JoyData >, yarp::os::PortReaderBuffer< yarp::rosmsg::visualization_msgs::MarkerArray >, yarp::os::PortReaderBuffer< yarp::rosmsg::tf2_msgs::TFMessage >, yarp::os::PortReaderBuffer< yarp::sig::ImageOf< yarp::sig::PixelRgb > >, yarp::os::PortReaderBuffer< yarp::rosmsg::sensor_msgs::CameraInfo >, yarp::os::PortReaderBuffer< yarp::dev::Nav2D::Map2DLocation >, yarp::os::PortReaderBuffer< yarp::rosmsg::nav_msgs::OccupancyGrid >, yarp::os::PortReaderBuffer< yarp::rosmsg::geometry_msgs::PoseStamped >, yarp::os::PortReaderBuffer< yarp::rosmsg::nav_msgs::Odometry >, yarp::os::PortReaderBuffer< yarp::rosmsg::nav_msgs::MapMetaData >, yarp::os::PortReaderBuffer< yarp::dev::LaserScan2D >, yarp::os::PortReaderBuffer< yarp::sig::FlexImage >, yarp::os::PortReaderBuffer< yarp::rosmsg::sensor_msgs::JointState >, yarp::os::PortReaderBuffer< yarp::dev::OdometryData >, yarp::os::PortReaderBuffer< yarp::rosmsg::sensor_msgs::LaserScan >, yarp::os::PortReaderBuffer< DepthImage >, yarp::os::PortReaderBuffer< yarp::rosmsg::sensor_msgs::Image >, yarp::os::PortReaderBuffer< yarp::rosmsg::sensor_msgs::MagneticField >, yarp::os::PortReaderBuffer< yarp::rosmsg::sensor_msgs::Imu >, yarp::os::PortReaderBuffer< yarp::sig::Sound >, yarp::os::BufferedPort< T >, yarp::os::BufferedPort< yarp::rosmsg::sensor_msgs::Temperature >, yarp::os::BufferedPort< yarp::rosmsg::geometry_msgs::WrenchStamped >, yarp::os::BufferedPort< yarp::sig::Vector >, yarp::os::BufferedPort< ImageType >, yarp::os::BufferedPort< yarp::sig::VectorOf >, yarp::os::BufferedPort< yarp::dev::impl::jointData >, yarp::os::BufferedPort< SensorStreamingData >, yarp::os::BufferedPort< yarp::sig::ImageOf< yarp::sig::PixelFloat > >, yarp::os::BufferedPort< yarp::os::Bottle >, yarp::os::BufferedPort< ROS_MSG >, yarp::os::BufferedPort< yarp::os::PortablePair >, yarp::os::BufferedPort< JoyData >, yarp::os::BufferedPort< yarp::rosmsg::visualization_msgs::MarkerArray >, yarp::os::BufferedPort< yarp::rosmsg::tf2_msgs::TFMessage >, yarp::os::BufferedPort< yarp::rosmsg::sensor_msgs::CameraInfo >, yarp::os::BufferedPort< yarp::dev::Nav2D::Map2DLocation >, yarp::os::BufferedPort< yarp::rosmsg::nav_msgs::OccupancyGrid >, yarp::os::BufferedPort< yarp::rosmsg::geometry_msgs::PoseStamped >, yarp::os::BufferedPort< yarp::rosmsg::nav_msgs::Odometry >, yarp::os::BufferedPort< yarp::rosmsg::nav_msgs::MapMetaData >, yarp::os::BufferedPort< yarp::dev::LaserScan2D >, yarp::os::BufferedPort< yarp::sig::FlexImage >, yarp::os::BufferedPort< yarp::rosmsg::sensor_msgs::JointState >, yarp::os::BufferedPort< yarp::dev::OdometryData >, yarp::os::BufferedPort< yarp::rosmsg::sensor_msgs::LaserScan >, yarp::os::BufferedPort< DepthImage >, yarp::os::BufferedPort< yarp::rosmsg::sensor_msgs::Image >, yarp::os::BufferedPort< yarp::rosmsg::sensor_msgs::MagneticField >, yarp::os::BufferedPort< yarp::rosmsg::sensor_msgs::Imu >, and yarp::os::BufferedPort< yarp::sig::Sound >.

◆ isClosed()

template<class T >
virtual bool yarp::os::TypedReader< T >::isClosed ( )
pure virtual

Returns whether the port associated with this reader has been closed.

Returns
true if Port associated with this reader has been closed

Implemented in yarp::os::PortReaderBuffer< T >, yarp::os::PortReaderBuffer< yarp::rosmsg::sensor_msgs::Temperature >, yarp::os::PortReaderBuffer< yarp::rosmsg::geometry_msgs::WrenchStamped >, yarp::os::PortReaderBuffer< yarp::sig::Vector >, yarp::os::PortReaderBuffer< ImageType >, yarp::os::PortReaderBuffer< yarp::sig::VectorOf >, yarp::os::PortReaderBuffer< yarp::dev::impl::jointData >, yarp::os::PortReaderBuffer< SensorStreamingData >, yarp::os::PortReaderBuffer< yarp::sig::ImageOf< yarp::sig::PixelFloat > >, yarp::os::PortReaderBuffer< yarp::os::Bottle >, yarp::os::PortReaderBuffer< ROS_MSG >, yarp::os::PortReaderBuffer< yarp::os::PortablePair >, yarp::os::PortReaderBuffer< JoyData >, yarp::os::PortReaderBuffer< yarp::rosmsg::visualization_msgs::MarkerArray >, yarp::os::PortReaderBuffer< yarp::rosmsg::tf2_msgs::TFMessage >, yarp::os::PortReaderBuffer< yarp::sig::ImageOf< yarp::sig::PixelRgb > >, yarp::os::PortReaderBuffer< yarp::rosmsg::sensor_msgs::CameraInfo >, yarp::os::PortReaderBuffer< yarp::dev::Nav2D::Map2DLocation >, yarp::os::PortReaderBuffer< yarp::rosmsg::nav_msgs::OccupancyGrid >, yarp::os::PortReaderBuffer< yarp::rosmsg::geometry_msgs::PoseStamped >, yarp::os::PortReaderBuffer< yarp::rosmsg::nav_msgs::Odometry >, yarp::os::PortReaderBuffer< yarp::rosmsg::nav_msgs::MapMetaData >, yarp::os::PortReaderBuffer< yarp::dev::LaserScan2D >, yarp::os::PortReaderBuffer< yarp::sig::FlexImage >, yarp::os::PortReaderBuffer< yarp::rosmsg::sensor_msgs::JointState >, yarp::os::PortReaderBuffer< yarp::dev::OdometryData >, yarp::os::PortReaderBuffer< yarp::rosmsg::sensor_msgs::LaserScan >, yarp::os::PortReaderBuffer< DepthImage >, yarp::os::PortReaderBuffer< yarp::rosmsg::sensor_msgs::Image >, yarp::os::PortReaderBuffer< yarp::rosmsg::sensor_msgs::MagneticField >, yarp::os::PortReaderBuffer< yarp::rosmsg::sensor_msgs::Imu >, yarp::os::PortReaderBuffer< yarp::sig::Sound >, yarp::os::BufferedPort< T >, yarp::os::BufferedPort< yarp::rosmsg::sensor_msgs::Temperature >, yarp::os::BufferedPort< yarp::rosmsg::geometry_msgs::WrenchStamped >, yarp::os::BufferedPort< yarp::sig::Vector >, yarp::os::BufferedPort< ImageType >, yarp::os::BufferedPort< yarp::sig::VectorOf >, yarp::os::BufferedPort< yarp::dev::impl::jointData >, yarp::os::BufferedPort< SensorStreamingData >, yarp::os::BufferedPort< yarp::sig::ImageOf< yarp::sig::PixelFloat > >, yarp::os::BufferedPort< yarp::os::Bottle >, yarp::os::BufferedPort< ROS_MSG >, yarp::os::BufferedPort< yarp::os::PortablePair >, yarp::os::BufferedPort< JoyData >, yarp::os::BufferedPort< yarp::rosmsg::visualization_msgs::MarkerArray >, yarp::os::BufferedPort< yarp::rosmsg::tf2_msgs::TFMessage >, yarp::os::BufferedPort< yarp::rosmsg::sensor_msgs::CameraInfo >, yarp::os::BufferedPort< yarp::dev::Nav2D::Map2DLocation >, yarp::os::BufferedPort< yarp::rosmsg::nav_msgs::OccupancyGrid >, yarp::os::BufferedPort< yarp::rosmsg::geometry_msgs::PoseStamped >, yarp::os::BufferedPort< yarp::rosmsg::nav_msgs::Odometry >, yarp::os::BufferedPort< yarp::rosmsg::nav_msgs::MapMetaData >, yarp::os::BufferedPort< yarp::dev::LaserScan2D >, yarp::os::BufferedPort< yarp::sig::FlexImage >, yarp::os::BufferedPort< yarp::rosmsg::sensor_msgs::JointState >, yarp::os::BufferedPort< yarp::dev::OdometryData >, yarp::os::BufferedPort< yarp::rosmsg::sensor_msgs::LaserScan >, yarp::os::BufferedPort< DepthImage >, yarp::os::BufferedPort< yarp::rosmsg::sensor_msgs::Image >, yarp::os::BufferedPort< yarp::rosmsg::sensor_msgs::MagneticField >, yarp::os::BufferedPort< yarp::rosmsg::sensor_msgs::Imu >, and yarp::os::BufferedPort< yarp::sig::Sound >.

◆ lastRead()

template<class T >
virtual T* yarp::os::TypedReader< T >::lastRead ( )
pure virtual

Get the last data returned by read()

Returns
pointer to last data returned by read(), or nullptr on failure.

Implemented in yarp::os::PortReaderBuffer< T >, yarp::os::PortReaderBuffer< yarp::rosmsg::sensor_msgs::Temperature >, yarp::os::PortReaderBuffer< yarp::rosmsg::geometry_msgs::WrenchStamped >, yarp::os::PortReaderBuffer< yarp::sig::Vector >, yarp::os::PortReaderBuffer< ImageType >, yarp::os::PortReaderBuffer< yarp::sig::VectorOf >, yarp::os::PortReaderBuffer< yarp::dev::impl::jointData >, yarp::os::PortReaderBuffer< SensorStreamingData >, yarp::os::PortReaderBuffer< yarp::sig::ImageOf< yarp::sig::PixelFloat > >, yarp::os::PortReaderBuffer< yarp::os::Bottle >, yarp::os::PortReaderBuffer< ROS_MSG >, yarp::os::PortReaderBuffer< yarp::os::PortablePair >, yarp::os::PortReaderBuffer< JoyData >, yarp::os::PortReaderBuffer< yarp::rosmsg::visualization_msgs::MarkerArray >, yarp::os::PortReaderBuffer< yarp::rosmsg::tf2_msgs::TFMessage >, yarp::os::PortReaderBuffer< yarp::sig::ImageOf< yarp::sig::PixelRgb > >, yarp::os::PortReaderBuffer< yarp::rosmsg::sensor_msgs::CameraInfo >, yarp::os::PortReaderBuffer< yarp::dev::Nav2D::Map2DLocation >, yarp::os::PortReaderBuffer< yarp::rosmsg::nav_msgs::OccupancyGrid >, yarp::os::PortReaderBuffer< yarp::rosmsg::geometry_msgs::PoseStamped >, yarp::os::PortReaderBuffer< yarp::rosmsg::nav_msgs::Odometry >, yarp::os::PortReaderBuffer< yarp::rosmsg::nav_msgs::MapMetaData >, yarp::os::PortReaderBuffer< yarp::dev::LaserScan2D >, yarp::os::PortReaderBuffer< yarp::sig::FlexImage >, yarp::os::PortReaderBuffer< yarp::rosmsg::sensor_msgs::JointState >, yarp::os::PortReaderBuffer< yarp::dev::OdometryData >, yarp::os::PortReaderBuffer< yarp::rosmsg::sensor_msgs::LaserScan >, yarp::os::PortReaderBuffer< DepthImage >, yarp::os::PortReaderBuffer< yarp::rosmsg::sensor_msgs::Image >, yarp::os::PortReaderBuffer< yarp::rosmsg::sensor_msgs::MagneticField >, yarp::os::PortReaderBuffer< yarp::rosmsg::sensor_msgs::Imu >, yarp::os::PortReaderBuffer< yarp::sig::Sound >, yarp::os::BufferedPort< T >, yarp::os::BufferedPort< yarp::rosmsg::sensor_msgs::Temperature >, yarp::os::BufferedPort< yarp::rosmsg::geometry_msgs::WrenchStamped >, yarp::os::BufferedPort< yarp::sig::Vector >, yarp::os::BufferedPort< ImageType >, yarp::os::BufferedPort< yarp::sig::VectorOf >, yarp::os::BufferedPort< yarp::dev::impl::jointData >, yarp::os::BufferedPort< SensorStreamingData >, yarp::os::BufferedPort< yarp::sig::ImageOf< yarp::sig::PixelFloat > >, yarp::os::BufferedPort< yarp::os::Bottle >, yarp::os::BufferedPort< ROS_MSG >, yarp::os::BufferedPort< yarp::os::PortablePair >, yarp::os::BufferedPort< JoyData >, yarp::os::BufferedPort< yarp::rosmsg::visualization_msgs::MarkerArray >, yarp::os::BufferedPort< yarp::rosmsg::tf2_msgs::TFMessage >, yarp::os::BufferedPort< yarp::rosmsg::sensor_msgs::CameraInfo >, yarp::os::BufferedPort< yarp::dev::Nav2D::Map2DLocation >, yarp::os::BufferedPort< yarp::rosmsg::nav_msgs::OccupancyGrid >, yarp::os::BufferedPort< yarp::rosmsg::geometry_msgs::PoseStamped >, yarp::os::BufferedPort< yarp::rosmsg::nav_msgs::Odometry >, yarp::os::BufferedPort< yarp::rosmsg::nav_msgs::MapMetaData >, yarp::os::BufferedPort< yarp::dev::LaserScan2D >, yarp::os::BufferedPort< yarp::sig::FlexImage >, yarp::os::BufferedPort< yarp::rosmsg::sensor_msgs::JointState >, yarp::os::BufferedPort< yarp::dev::OdometryData >, yarp::os::BufferedPort< yarp::rosmsg::sensor_msgs::LaserScan >, yarp::os::BufferedPort< DepthImage >, yarp::os::BufferedPort< yarp::rosmsg::sensor_msgs::Image >, yarp::os::BufferedPort< yarp::rosmsg::sensor_msgs::MagneticField >, yarp::os::BufferedPort< yarp::rosmsg::sensor_msgs::Imu >, and yarp::os::BufferedPort< yarp::sig::Sound >.

◆ read()

template<class T >
virtual T* yarp::os::TypedReader< T >::read ( bool  shouldWait = true)
pure virtual

Read an available object from the port.

Parameters
shouldWaittrue if the method should wait until an object is available, false if the call should return immediately if no message is available
Returns
A pointer to an object read from the port, or nullptr if none is available and waiting was not requested. This object is owned by the communication system and should not be deleted by the user. The object is available to the user until the next call to one of the read methods, after which it should not be accessed again.

Implemented in yarp::os::PortReaderBuffer< T >, yarp::os::PortReaderBuffer< yarp::rosmsg::sensor_msgs::Temperature >, yarp::os::PortReaderBuffer< yarp::rosmsg::geometry_msgs::WrenchStamped >, yarp::os::PortReaderBuffer< yarp::sig::Vector >, yarp::os::PortReaderBuffer< ImageType >, yarp::os::PortReaderBuffer< yarp::sig::VectorOf >, yarp::os::PortReaderBuffer< yarp::dev::impl::jointData >, yarp::os::PortReaderBuffer< SensorStreamingData >, yarp::os::PortReaderBuffer< yarp::sig::ImageOf< yarp::sig::PixelFloat > >, yarp::os::PortReaderBuffer< yarp::os::Bottle >, yarp::os::PortReaderBuffer< ROS_MSG >, yarp::os::PortReaderBuffer< yarp::os::PortablePair >, yarp::os::PortReaderBuffer< JoyData >, yarp::os::PortReaderBuffer< yarp::rosmsg::visualization_msgs::MarkerArray >, yarp::os::PortReaderBuffer< yarp::rosmsg::tf2_msgs::TFMessage >, yarp::os::PortReaderBuffer< yarp::sig::ImageOf< yarp::sig::PixelRgb > >, yarp::os::PortReaderBuffer< yarp::rosmsg::sensor_msgs::CameraInfo >, yarp::os::PortReaderBuffer< yarp::dev::Nav2D::Map2DLocation >, yarp::os::PortReaderBuffer< yarp::rosmsg::nav_msgs::OccupancyGrid >, yarp::os::PortReaderBuffer< yarp::rosmsg::geometry_msgs::PoseStamped >, yarp::os::PortReaderBuffer< yarp::rosmsg::nav_msgs::Odometry >, yarp::os::PortReaderBuffer< yarp::rosmsg::nav_msgs::MapMetaData >, yarp::os::PortReaderBuffer< yarp::dev::LaserScan2D >, yarp::os::PortReaderBuffer< yarp::sig::FlexImage >, yarp::os::PortReaderBuffer< yarp::rosmsg::sensor_msgs::JointState >, yarp::os::PortReaderBuffer< yarp::dev::OdometryData >, yarp::os::PortReaderBuffer< yarp::rosmsg::sensor_msgs::LaserScan >, yarp::os::PortReaderBuffer< DepthImage >, yarp::os::PortReaderBuffer< yarp::rosmsg::sensor_msgs::Image >, yarp::os::PortReaderBuffer< yarp::rosmsg::sensor_msgs::MagneticField >, yarp::os::PortReaderBuffer< yarp::rosmsg::sensor_msgs::Imu >, yarp::os::PortReaderBuffer< yarp::sig::Sound >, yarp::os::BufferedPort< T >, yarp::os::BufferedPort< yarp::rosmsg::sensor_msgs::Temperature >, yarp::os::BufferedPort< yarp::rosmsg::geometry_msgs::WrenchStamped >, yarp::os::BufferedPort< yarp::sig::Vector >, yarp::os::BufferedPort< ImageType >, yarp::os::BufferedPort< yarp::sig::VectorOf >, yarp::os::BufferedPort< yarp::dev::impl::jointData >, yarp::os::BufferedPort< SensorStreamingData >, yarp::os::BufferedPort< yarp::sig::ImageOf< yarp::sig::PixelFloat > >, yarp::os::BufferedPort< yarp::os::Bottle >, yarp::os::BufferedPort< ROS_MSG >, yarp::os::BufferedPort< yarp::os::PortablePair >, yarp::os::BufferedPort< JoyData >, yarp::os::BufferedPort< yarp::rosmsg::visualization_msgs::MarkerArray >, yarp::os::BufferedPort< yarp::rosmsg::tf2_msgs::TFMessage >, yarp::os::BufferedPort< yarp::rosmsg::sensor_msgs::CameraInfo >, yarp::os::BufferedPort< yarp::dev::Nav2D::Map2DLocation >, yarp::os::BufferedPort< yarp::rosmsg::nav_msgs::OccupancyGrid >, yarp::os::BufferedPort< yarp::rosmsg::geometry_msgs::PoseStamped >, yarp::os::BufferedPort< yarp::rosmsg::nav_msgs::Odometry >, yarp::os::BufferedPort< yarp::rosmsg::nav_msgs::MapMetaData >, yarp::os::BufferedPort< yarp::dev::LaserScan2D >, yarp::os::BufferedPort< yarp::sig::FlexImage >, yarp::os::BufferedPort< yarp::rosmsg::sensor_msgs::JointState >, yarp::os::BufferedPort< yarp::dev::OdometryData >, yarp::os::BufferedPort< yarp::rosmsg::sensor_msgs::LaserScan >, yarp::os::BufferedPort< DepthImage >, yarp::os::BufferedPort< yarp::rosmsg::sensor_msgs::Image >, yarp::os::BufferedPort< yarp::rosmsg::sensor_msgs::MagneticField >, yarp::os::BufferedPort< yarp::rosmsg::sensor_msgs::Imu >, and yarp::os::BufferedPort< yarp::sig::Sound >.

◆ release()

template<class T >
virtual void yarp::os::TypedReader< T >::release ( void *  handle)
pure virtual

Return control to YARP of an object previously taken control of with the acquire() method.

Parameters
handlethe pointer returned by acquire() when control of the object was taken by the user.

Implemented in yarp::os::PortReaderBuffer< T >, yarp::os::PortReaderBuffer< yarp::rosmsg::sensor_msgs::Temperature >, yarp::os::PortReaderBuffer< yarp::rosmsg::geometry_msgs::WrenchStamped >, yarp::os::PortReaderBuffer< yarp::sig::Vector >, yarp::os::PortReaderBuffer< ImageType >, yarp::os::PortReaderBuffer< yarp::sig::VectorOf >, yarp::os::PortReaderBuffer< yarp::dev::impl::jointData >, yarp::os::PortReaderBuffer< SensorStreamingData >, yarp::os::PortReaderBuffer< yarp::sig::ImageOf< yarp::sig::PixelFloat > >, yarp::os::PortReaderBuffer< yarp::os::Bottle >, yarp::os::PortReaderBuffer< ROS_MSG >, yarp::os::PortReaderBuffer< yarp::os::PortablePair >, yarp::os::PortReaderBuffer< JoyData >, yarp::os::PortReaderBuffer< yarp::rosmsg::visualization_msgs::MarkerArray >, yarp::os::PortReaderBuffer< yarp::rosmsg::tf2_msgs::TFMessage >, yarp::os::PortReaderBuffer< yarp::sig::ImageOf< yarp::sig::PixelRgb > >, yarp::os::PortReaderBuffer< yarp::rosmsg::sensor_msgs::CameraInfo >, yarp::os::PortReaderBuffer< yarp::dev::Nav2D::Map2DLocation >, yarp::os::PortReaderBuffer< yarp::rosmsg::nav_msgs::OccupancyGrid >, yarp::os::PortReaderBuffer< yarp::rosmsg::geometry_msgs::PoseStamped >, yarp::os::PortReaderBuffer< yarp::rosmsg::nav_msgs::Odometry >, yarp::os::PortReaderBuffer< yarp::rosmsg::nav_msgs::MapMetaData >, yarp::os::PortReaderBuffer< yarp::dev::LaserScan2D >, yarp::os::PortReaderBuffer< yarp::sig::FlexImage >, yarp::os::PortReaderBuffer< yarp::rosmsg::sensor_msgs::JointState >, yarp::os::PortReaderBuffer< yarp::dev::OdometryData >, yarp::os::PortReaderBuffer< yarp::rosmsg::sensor_msgs::LaserScan >, yarp::os::PortReaderBuffer< DepthImage >, yarp::os::PortReaderBuffer< yarp::rosmsg::sensor_msgs::Image >, yarp::os::PortReaderBuffer< yarp::rosmsg::sensor_msgs::MagneticField >, yarp::os::PortReaderBuffer< yarp::rosmsg::sensor_msgs::Imu >, yarp::os::PortReaderBuffer< yarp::sig::Sound >, yarp::os::BufferedPort< T >, yarp::os::BufferedPort< yarp::rosmsg::sensor_msgs::Temperature >, yarp::os::BufferedPort< yarp::rosmsg::geometry_msgs::WrenchStamped >, yarp::os::BufferedPort< yarp::sig::Vector >, yarp::os::BufferedPort< ImageType >, yarp::os::BufferedPort< yarp::sig::VectorOf >, yarp::os::BufferedPort< yarp::dev::impl::jointData >, yarp::os::BufferedPort< SensorStreamingData >, yarp::os::BufferedPort< yarp::sig::ImageOf< yarp::sig::PixelFloat > >, yarp::os::BufferedPort< yarp::os::Bottle >, yarp::os::BufferedPort< ROS_MSG >, yarp::os::BufferedPort< yarp::os::PortablePair >, yarp::os::BufferedPort< JoyData >, yarp::os::BufferedPort< yarp::rosmsg::visualization_msgs::MarkerArray >, yarp::os::BufferedPort< yarp::rosmsg::tf2_msgs::TFMessage >, yarp::os::BufferedPort< yarp::rosmsg::sensor_msgs::CameraInfo >, yarp::os::BufferedPort< yarp::dev::Nav2D::Map2DLocation >, yarp::os::BufferedPort< yarp::rosmsg::nav_msgs::OccupancyGrid >, yarp::os::BufferedPort< yarp::rosmsg::geometry_msgs::PoseStamped >, yarp::os::BufferedPort< yarp::rosmsg::nav_msgs::Odometry >, yarp::os::BufferedPort< yarp::rosmsg::nav_msgs::MapMetaData >, yarp::os::BufferedPort< yarp::dev::LaserScan2D >, yarp::os::BufferedPort< yarp::sig::FlexImage >, yarp::os::BufferedPort< yarp::rosmsg::sensor_msgs::JointState >, yarp::os::BufferedPort< yarp::dev::OdometryData >, yarp::os::BufferedPort< yarp::rosmsg::sensor_msgs::LaserScan >, yarp::os::BufferedPort< DepthImage >, yarp::os::BufferedPort< yarp::rosmsg::sensor_msgs::Image >, yarp::os::BufferedPort< yarp::rosmsg::sensor_msgs::MagneticField >, yarp::os::BufferedPort< yarp::rosmsg::sensor_msgs::Imu >, and yarp::os::BufferedPort< yarp::sig::Sound >.

◆ setReplier()

template<class T >
virtual void yarp::os::TypedReader< T >::setReplier ( PortReader reader)
pure virtual

If a message is received that requires a reply, use this handler.

No buffering happens.

Parameters
readerthe handler to use

Implemented in yarp::os::PortReaderBuffer< T >, yarp::os::PortReaderBuffer< yarp::rosmsg::sensor_msgs::Temperature >, yarp::os::PortReaderBuffer< yarp::rosmsg::geometry_msgs::WrenchStamped >, yarp::os::PortReaderBuffer< yarp::sig::Vector >, yarp::os::PortReaderBuffer< ImageType >, yarp::os::PortReaderBuffer< yarp::sig::VectorOf >, yarp::os::PortReaderBuffer< yarp::dev::impl::jointData >, yarp::os::PortReaderBuffer< SensorStreamingData >, yarp::os::PortReaderBuffer< yarp::sig::ImageOf< yarp::sig::PixelFloat > >, yarp::os::PortReaderBuffer< yarp::os::Bottle >, yarp::os::PortReaderBuffer< ROS_MSG >, yarp::os::PortReaderBuffer< yarp::os::PortablePair >, yarp::os::PortReaderBuffer< JoyData >, yarp::os::PortReaderBuffer< yarp::rosmsg::visualization_msgs::MarkerArray >, yarp::os::PortReaderBuffer< yarp::rosmsg::tf2_msgs::TFMessage >, yarp::os::PortReaderBuffer< yarp::sig::ImageOf< yarp::sig::PixelRgb > >, yarp::os::PortReaderBuffer< yarp::rosmsg::sensor_msgs::CameraInfo >, yarp::os::PortReaderBuffer< yarp::dev::Nav2D::Map2DLocation >, yarp::os::PortReaderBuffer< yarp::rosmsg::nav_msgs::OccupancyGrid >, yarp::os::PortReaderBuffer< yarp::rosmsg::geometry_msgs::PoseStamped >, yarp::os::PortReaderBuffer< yarp::rosmsg::nav_msgs::Odometry >, yarp::os::PortReaderBuffer< yarp::rosmsg::nav_msgs::MapMetaData >, yarp::os::PortReaderBuffer< yarp::dev::LaserScan2D >, yarp::os::PortReaderBuffer< yarp::sig::FlexImage >, yarp::os::PortReaderBuffer< yarp::rosmsg::sensor_msgs::JointState >, yarp::os::PortReaderBuffer< yarp::dev::OdometryData >, yarp::os::PortReaderBuffer< yarp::rosmsg::sensor_msgs::LaserScan >, yarp::os::PortReaderBuffer< DepthImage >, yarp::os::PortReaderBuffer< yarp::rosmsg::sensor_msgs::Image >, yarp::os::PortReaderBuffer< yarp::rosmsg::sensor_msgs::MagneticField >, yarp::os::PortReaderBuffer< yarp::rosmsg::sensor_msgs::Imu >, yarp::os::PortReaderBuffer< yarp::sig::Sound >, yarp::os::BufferedPort< T >, yarp::os::BufferedPort< yarp::rosmsg::sensor_msgs::Temperature >, yarp::os::BufferedPort< yarp::rosmsg::geometry_msgs::WrenchStamped >, yarp::os::BufferedPort< yarp::sig::Vector >, yarp::os::BufferedPort< ImageType >, yarp::os::BufferedPort< yarp::sig::VectorOf >, yarp::os::BufferedPort< yarp::dev::impl::jointData >, yarp::os::BufferedPort< SensorStreamingData >, yarp::os::BufferedPort< yarp::sig::ImageOf< yarp::sig::PixelFloat > >, yarp::os::BufferedPort< yarp::os::Bottle >, yarp::os::BufferedPort< ROS_MSG >, yarp::os::BufferedPort< yarp::os::PortablePair >, yarp::os::BufferedPort< JoyData >, yarp::os::BufferedPort< yarp::rosmsg::visualization_msgs::MarkerArray >, yarp::os::BufferedPort< yarp::rosmsg::tf2_msgs::TFMessage >, yarp::os::BufferedPort< yarp::rosmsg::sensor_msgs::CameraInfo >, yarp::os::BufferedPort< yarp::dev::Nav2D::Map2DLocation >, yarp::os::BufferedPort< yarp::rosmsg::nav_msgs::OccupancyGrid >, yarp::os::BufferedPort< yarp::rosmsg::geometry_msgs::PoseStamped >, yarp::os::BufferedPort< yarp::rosmsg::nav_msgs::Odometry >, yarp::os::BufferedPort< yarp::rosmsg::nav_msgs::MapMetaData >, yarp::os::BufferedPort< yarp::dev::LaserScan2D >, yarp::os::BufferedPort< yarp::sig::FlexImage >, yarp::os::BufferedPort< yarp::rosmsg::sensor_msgs::JointState >, yarp::os::BufferedPort< yarp::dev::OdometryData >, yarp::os::BufferedPort< yarp::rosmsg::sensor_msgs::LaserScan >, yarp::os::BufferedPort< DepthImage >, yarp::os::BufferedPort< yarp::rosmsg::sensor_msgs::Image >, yarp::os::BufferedPort< yarp::rosmsg::sensor_msgs::MagneticField >, yarp::os::BufferedPort< yarp::rosmsg::sensor_msgs::Imu >, and yarp::os::BufferedPort< yarp::sig::Sound >.

◆ setStrict()

template<class T >
virtual void yarp::os::TypedReader< T >::setStrict ( bool  strict = true)
pure virtual

Call this to strictly keep all messages, or allow old ones to be quietly dropped.

If you don't call this, old messages will be quietly dropped.

Parameters
strictTrue to keep all messages until they are read, false to drop old messages when a new one comes in.
Warning
If you can't read them as fast as the come in, watch out.

Implemented in yarp::os::PortReaderBuffer< T >, yarp::os::PortReaderBuffer< yarp::rosmsg::sensor_msgs::Temperature >, yarp::os::PortReaderBuffer< yarp::rosmsg::geometry_msgs::WrenchStamped >, yarp::os::PortReaderBuffer< yarp::sig::Vector >, yarp::os::PortReaderBuffer< ImageType >, yarp::os::PortReaderBuffer< yarp::sig::VectorOf >, yarp::os::PortReaderBuffer< yarp::dev::impl::jointData >, yarp::os::PortReaderBuffer< SensorStreamingData >, yarp::os::PortReaderBuffer< yarp::sig::ImageOf< yarp::sig::PixelFloat > >, yarp::os::PortReaderBuffer< yarp::os::Bottle >, yarp::os::PortReaderBuffer< ROS_MSG >, yarp::os::PortReaderBuffer< yarp::os::PortablePair >, yarp::os::PortReaderBuffer< JoyData >, yarp::os::PortReaderBuffer< yarp::rosmsg::visualization_msgs::MarkerArray >, yarp::os::PortReaderBuffer< yarp::rosmsg::tf2_msgs::TFMessage >, yarp::os::PortReaderBuffer< yarp::sig::ImageOf< yarp::sig::PixelRgb > >, yarp::os::PortReaderBuffer< yarp::rosmsg::sensor_msgs::CameraInfo >, yarp::os::PortReaderBuffer< yarp::dev::Nav2D::Map2DLocation >, yarp::os::PortReaderBuffer< yarp::rosmsg::nav_msgs::OccupancyGrid >, yarp::os::PortReaderBuffer< yarp::rosmsg::geometry_msgs::PoseStamped >, yarp::os::PortReaderBuffer< yarp::rosmsg::nav_msgs::Odometry >, yarp::os::PortReaderBuffer< yarp::rosmsg::nav_msgs::MapMetaData >, yarp::os::PortReaderBuffer< yarp::dev::LaserScan2D >, yarp::os::PortReaderBuffer< yarp::sig::FlexImage >, yarp::os::PortReaderBuffer< yarp::rosmsg::sensor_msgs::JointState >, yarp::os::PortReaderBuffer< yarp::dev::OdometryData >, yarp::os::PortReaderBuffer< yarp::rosmsg::sensor_msgs::LaserScan >, yarp::os::PortReaderBuffer< DepthImage >, yarp::os::PortReaderBuffer< yarp::rosmsg::sensor_msgs::Image >, yarp::os::PortReaderBuffer< yarp::rosmsg::sensor_msgs::MagneticField >, yarp::os::PortReaderBuffer< yarp::rosmsg::sensor_msgs::Imu >, yarp::os::PortReaderBuffer< yarp::sig::Sound >, yarp::os::BufferedPort< T >, yarp::os::BufferedPort< yarp::rosmsg::sensor_msgs::Temperature >, yarp::os::BufferedPort< yarp::rosmsg::geometry_msgs::WrenchStamped >, yarp::os::BufferedPort< yarp::sig::Vector >, yarp::os::BufferedPort< ImageType >, yarp::os::BufferedPort< yarp::sig::VectorOf >, yarp::os::BufferedPort< yarp::dev::impl::jointData >, yarp::os::BufferedPort< SensorStreamingData >, yarp::os::BufferedPort< yarp::sig::ImageOf< yarp::sig::PixelFloat > >, yarp::os::BufferedPort< yarp::os::Bottle >, yarp::os::BufferedPort< ROS_MSG >, yarp::os::BufferedPort< yarp::os::PortablePair >, yarp::os::BufferedPort< JoyData >, yarp::os::BufferedPort< yarp::rosmsg::visualization_msgs::MarkerArray >, yarp::os::BufferedPort< yarp::rosmsg::tf2_msgs::TFMessage >, yarp::os::BufferedPort< yarp::rosmsg::sensor_msgs::CameraInfo >, yarp::os::BufferedPort< yarp::dev::Nav2D::Map2DLocation >, yarp::os::BufferedPort< yarp::rosmsg::nav_msgs::OccupancyGrid >, yarp::os::BufferedPort< yarp::rosmsg::geometry_msgs::PoseStamped >, yarp::os::BufferedPort< yarp::rosmsg::nav_msgs::Odometry >, yarp::os::BufferedPort< yarp::rosmsg::nav_msgs::MapMetaData >, yarp::os::BufferedPort< yarp::dev::LaserScan2D >, yarp::os::BufferedPort< yarp::sig::FlexImage >, yarp::os::BufferedPort< yarp::rosmsg::sensor_msgs::JointState >, yarp::os::BufferedPort< yarp::dev::OdometryData >, yarp::os::BufferedPort< yarp::rosmsg::sensor_msgs::LaserScan >, yarp::os::BufferedPort< DepthImage >, yarp::os::BufferedPort< yarp::rosmsg::sensor_msgs::Image >, yarp::os::BufferedPort< yarp::rosmsg::sensor_msgs::MagneticField >, yarp::os::BufferedPort< yarp::rosmsg::sensor_msgs::Imu >, and yarp::os::BufferedPort< yarp::sig::Sound >.

◆ setTargetPeriod()

template<class T >
virtual void yarp::os::TypedReader< T >::setTargetPeriod ( double  period)
pure virtual

Try to provide data periodically.

If no new data arrives in a given period, repeat the last data received (if any). Similarly, the port should not pass on data more frequently than the given period.

Parameters
periodtarget period in (fractional) seconds.

Implemented in yarp::os::PortReaderBuffer< T >, yarp::os::PortReaderBuffer< yarp::rosmsg::sensor_msgs::Temperature >, yarp::os::PortReaderBuffer< yarp::rosmsg::geometry_msgs::WrenchStamped >, yarp::os::PortReaderBuffer< yarp::sig::Vector >, yarp::os::PortReaderBuffer< ImageType >, yarp::os::PortReaderBuffer< yarp::sig::VectorOf >, yarp::os::PortReaderBuffer< yarp::dev::impl::jointData >, yarp::os::PortReaderBuffer< SensorStreamingData >, yarp::os::PortReaderBuffer< yarp::sig::ImageOf< yarp::sig::PixelFloat > >, yarp::os::PortReaderBuffer< yarp::os::Bottle >, yarp::os::PortReaderBuffer< ROS_MSG >, yarp::os::PortReaderBuffer< yarp::os::PortablePair >, yarp::os::PortReaderBuffer< JoyData >, yarp::os::PortReaderBuffer< yarp::rosmsg::visualization_msgs::MarkerArray >, yarp::os::PortReaderBuffer< yarp::rosmsg::tf2_msgs::TFMessage >, yarp::os::PortReaderBuffer< yarp::sig::ImageOf< yarp::sig::PixelRgb > >, yarp::os::PortReaderBuffer< yarp::rosmsg::sensor_msgs::CameraInfo >, yarp::os::PortReaderBuffer< yarp::dev::Nav2D::Map2DLocation >, yarp::os::PortReaderBuffer< yarp::rosmsg::nav_msgs::OccupancyGrid >, yarp::os::PortReaderBuffer< yarp::rosmsg::geometry_msgs::PoseStamped >, yarp::os::PortReaderBuffer< yarp::rosmsg::nav_msgs::Odometry >, yarp::os::PortReaderBuffer< yarp::rosmsg::nav_msgs::MapMetaData >, yarp::os::PortReaderBuffer< yarp::dev::LaserScan2D >, yarp::os::PortReaderBuffer< yarp::sig::FlexImage >, yarp::os::PortReaderBuffer< yarp::rosmsg::sensor_msgs::JointState >, yarp::os::PortReaderBuffer< yarp::dev::OdometryData >, yarp::os::PortReaderBuffer< yarp::rosmsg::sensor_msgs::LaserScan >, yarp::os::PortReaderBuffer< DepthImage >, yarp::os::PortReaderBuffer< yarp::rosmsg::sensor_msgs::Image >, yarp::os::PortReaderBuffer< yarp::rosmsg::sensor_msgs::MagneticField >, yarp::os::PortReaderBuffer< yarp::rosmsg::sensor_msgs::Imu >, yarp::os::PortReaderBuffer< yarp::sig::Sound >, yarp::os::BufferedPort< T >, yarp::os::BufferedPort< yarp::rosmsg::sensor_msgs::Temperature >, yarp::os::BufferedPort< yarp::rosmsg::geometry_msgs::WrenchStamped >, yarp::os::BufferedPort< yarp::sig::Vector >, yarp::os::BufferedPort< ImageType >, yarp::os::BufferedPort< yarp::sig::VectorOf >, yarp::os::BufferedPort< yarp::dev::impl::jointData >, yarp::os::BufferedPort< SensorStreamingData >, yarp::os::BufferedPort< yarp::sig::ImageOf< yarp::sig::PixelFloat > >, yarp::os::BufferedPort< yarp::os::Bottle >, yarp::os::BufferedPort< ROS_MSG >, yarp::os::BufferedPort< yarp::os::PortablePair >, yarp::os::BufferedPort< JoyData >, yarp::os::BufferedPort< yarp::rosmsg::visualization_msgs::MarkerArray >, yarp::os::BufferedPort< yarp::rosmsg::tf2_msgs::TFMessage >, yarp::os::BufferedPort< yarp::rosmsg::sensor_msgs::CameraInfo >, yarp::os::BufferedPort< yarp::dev::Nav2D::Map2DLocation >, yarp::os::BufferedPort< yarp::rosmsg::nav_msgs::OccupancyGrid >, yarp::os::BufferedPort< yarp::rosmsg::geometry_msgs::PoseStamped >, yarp::os::BufferedPort< yarp::rosmsg::nav_msgs::Odometry >, yarp::os::BufferedPort< yarp::rosmsg::nav_msgs::MapMetaData >, yarp::os::BufferedPort< yarp::dev::LaserScan2D >, yarp::os::BufferedPort< yarp::sig::FlexImage >, yarp::os::BufferedPort< yarp::rosmsg::sensor_msgs::JointState >, yarp::os::BufferedPort< yarp::dev::OdometryData >, yarp::os::BufferedPort< yarp::rosmsg::sensor_msgs::LaserScan >, yarp::os::BufferedPort< DepthImage >, yarp::os::BufferedPort< yarp::rosmsg::sensor_msgs::Image >, yarp::os::BufferedPort< yarp::rosmsg::sensor_msgs::MagneticField >, yarp::os::BufferedPort< yarp::rosmsg::sensor_msgs::Imu >, and yarp::os::BufferedPort< yarp::sig::Sound >.

◆ useCallback()

template<class T >
virtual void yarp::os::TypedReader< T >::useCallback ( TypedReaderCallback< T > &  callback)
pure virtual

Set an object whose onRead method will be called when data is available.

Parameters
callbackthe object whose onRead method will be called with data

Implemented in yarp::os::PortReaderBuffer< T >, and yarp::os::BufferedPort< T >.


The documentation for this class was generated from the following file: