6#ifndef YARP_DEV_RGBDSENSOR_NWS_ROS_H
7#define YARP_DEV_RGBDSENSOR_NWS_ROS_H
32#include <yarp/rosmsg/TickTime.h>
33#include <yarp/rosmsg/sensor_msgs/CameraInfo.h>
34#include <yarp/rosmsg/sensor_msgs/Image.h>
36#define DEFAULT_THREAD_PERIOD 0.03
96 typedef unsigned int UInt;
98 enum SensorType{COLOR_SENSOR, DEPTH_SENSOR};
103 param(T& inVar, std::string inName)
117 std::string nodeName;
118 std::string m_color_frame_id;
119 std::string m_depth_frame_id;
127 std::string sensorId;
140 bool setCamInfo(yarp::rosmsg::sensor_msgs::CameraInfo& cameraInfo,
141 const std::string& frame_id,
143 const SensorType& sensorType);
154 bool close()
override;
contains the definition of a Vector type
rgbdSensor_nws_ros: A Network grabber for kinect-like devices. This device will produce two streams o...
~RgbdSensor_nws_ros() override
bool close() override
Close the DeviceDriver.
void threadRelease() override
Release method.
RgbdSensor_nws_ros & operator=(const RgbdSensor_nws_ros &)=delete
RgbdSensor_nws_ros(RgbdSensor_nws_ros &&)=delete
bool attach(yarp::dev::PolyDriver *poly) override
Specify which sensor this thread has to read from.
RgbdSensor_nws_ros & operator=(RgbdSensor_nws_ros &&)=delete
bool open(yarp::os::Searchable ¶ms) override
Device driver interface.
RgbdSensor_nws_ros(const RgbdSensor_nws_ros &)=delete
bool threadInit() override
Initialization method.
void run() override
Loop function.
bool detach() override
WrapperSingle interface.
Interface implemented by all device drivers.
Control interface for frame grabber devices.
A generic interface for cameras that have both color camera as well as depth camera sensor,...
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.
Image class with user control of representation details.
const std::string depthInfoTopicName_param
const std::string depthTopicName_param
const std::string colorTopicName_param
const std::string nodeName_param
const std::string frameId_param
const std::string colorInfoTopicName_param