9 #ifndef YARP_DEV_RGBDSENSORWRAPPER_RGBDSENSORWRAPPER_H
10 #define YARP_DEV_RGBDSENSORWRAPPER_RGBDSENSORWRAPPER_H
56 #define DEFAULT_THREAD_PERIOD 0.03
61 #define RGBD_WRAPPER_PROTOCOL_VERSION_MAJOR 1
62 #define RGBD_WRAPPER_PROTOCOL_VERSION_MINOR 0
137 typedef unsigned int UInt;
139 enum SensorType{COLOR_SENSOR, DEPTH_SENSOR};
144 param(T& inVar, std::string inName)
153 std::string colorFrame_StreamingPort_Name;
154 std::string depthFrame_StreamingPort_Name;
160 std::string rpcPort_Name;
166 std::string nodeName;
167 std::string depthTopicName;
168 std::string colorTopicName;
169 std::string dInfoTopicName;
170 std::string cInfoTopicName;
171 std::string rosFrameId;
187 std::string sensorId;
205 bool isSubdeviceOwned;
219 const std::string& frame_id,
225 const std::string& frame_id,
230 const std::string& frame_id,
232 const SensorType& sensorType);
234 static std::string yarp2RosPixelCode(
int code);
246 bool close()
override;
248 void setId(
const std::string &
id);
constexpr yarp::conf::vocab32_t VOCAB_PROTOCOL_VERSION
contains the definition of a Vector type
bool configure(yarp::dev::IRGBDSensor *interface)
bool respond(const yarp::os::Bottle &cmd, yarp::os::Bottle &response) override
Respond to a message.
~RGBDSensorParser() override=default
bool detach() override
Detach the object (you must have first called attach).
bool attachAll(const yarp::dev::PolyDriverList &p) override
Specify which sensor this thread has to read from.
~RGBDSensorWrapper() override
RGBDSensorWrapper & operator=(const RGBDSensorWrapper &)=delete
bool close() override
Close the DeviceDriver.
RGBDSensorWrapper & operator=(RGBDSensorWrapper &&)=delete
bool fromConfig(yarp::os::Searchable ¶ms)
void run() override
Loop function.
RGBDSensorWrapper(RGBDSensorWrapper &&)=delete
RGBDSensorWrapper(const RGBDSensorWrapper &)=delete
bool threadInit() override
Initialization method.
bool open(yarp::os::Searchable ¶ms) override
Device driver interface.
void setId(const std::string &id)
void threadRelease() override
Release method.
bool detachAll() override
Detach the object (you must have first called attach).
bool attach(yarp::dev::PolyDriver *poly) override
Attach to another object.
Interface implemented by all device drivers.
A cheap and cheerful framework for human readable/writable forms of messages to devices.
An interface for retrieving intrinsic parameter from a depth camera.
Control interface for frame grabber devices.
Interface for an object that can wrap/attach to to another.
A generic interface for cameras that have both color camera as well as depth camera sensor,...
An interface for retrieving intrinsic parameter from a rgb camera.
Interface for an object that can wrap/or "attach" to another.
A container for a device driver.
A simple collection of objects that can be described and transmitted in a portable way.
An interface for reading from a network connection.
An abstraction for a periodic thread.
A mini-server for network communication.
A class for storing options and configuration information.
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
constexpr yarp::conf::vocab32_t createVocab(char a, char b=0, char c=0, char d=0)