6#ifndef YARP_FRAMEGRABBER_NWS_ROS_H
7#define YARP_FRAMEGRABBER_NWS_ROS_H
23#include <yarp/rosmsg/sensor_msgs/CameraInfo.h>
24#include <yarp/rosmsg/sensor_msgs/Image.h>
65 bool m_active {
false};
67 std::string m_frameId;
70 static constexpr double s_default_period = 0.03;
71 double m_period {s_default_period};
73 bool setCamInfo(yarp::rosmsg::sensor_msgs::CameraInfo& cameraInfo);
84 bool close()
override;
frameGrabber_nws_ros: A ROS NWS for camera devices. Parameters required by this device are:
bool attach(yarp::dev::PolyDriver *poly) override
Attach to another object.
void run() override
Loop function.
FrameGrabber_nws_ros & operator=(const FrameGrabber_nws_ros &)=delete
FrameGrabber_nws_ros(FrameGrabber_nws_ros &&)=delete
bool open(yarp::os::Searchable &config) override
Open the DeviceDriver.
bool detach() override
Detach the object (you must have first called attach).
bool close() override
Close the DeviceDriver.
~FrameGrabber_nws_ros() override
FrameGrabber_nws_ros & operator=(FrameGrabber_nws_ros &&)=delete
bool threadInit() override
Initialization method.
void threadRelease() override
Release method.
FrameGrabber_nws_ros(const FrameGrabber_nws_ros &)=delete
Interface implemented by all device drivers.
An interface for retrieving intrinsic parameter from a rgb camera.
A container for a device driver.
Helper interface for an object that can wrap/or "attach" to a single other device.
A mini-server for performing network communication in the background.
An abstraction for a periodic thread.
A base class for nested structures that can be searched.
An abstraction for a time stamp and/or sequence number.