|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
9 #ifndef YARP_DEV_RGBDSENSORWRAPPER_RGBDSENSORWRAPPER_H
10 #define YARP_DEV_RGBDSENSORWRAPPER_RGBDSENSORWRAPPER_H
56 #define DEFAULT_THREAD_PERIOD 0.03 // s
61 #define RGBD_WRAPPER_PROTOCOL_VERSION_MAJOR 1
62 #define RGBD_WRAPPER_PROTOCOL_VERSION_MINOR 0
139 typedef unsigned int UInt;
141 enum SensorType{COLOR_SENSOR, DEPTH_SENSOR};
146 param(T& inVar, std::string inName)
155 std::string colorFrame_StreamingPort_Name;
156 std::string depthFrame_StreamingPort_Name;
162 std::string rpcPort_Name;
168 std::string nodeName;
169 std::string depthTopicName;
170 std::string colorTopicName;
171 std::string dInfoTopicName;
172 std::string cInfoTopicName;
173 std::string rosFrameId;
189 std::string sensorId;
207 bool isSubdeviceOwned;
218 const std::string& frame_id,
220 const SensorType& sensorType);
222 static std::string yarp2RosPixelCode(
int code);
234 bool close()
override;
236 void setId(
const std::string &
id);
254 #endif // YARP_DEV_RGBDSENSORWRAPPER_RGBDSENSORWRAPPER_H
A simple collection of objects that can be described and transmitted in a portable way.
void setId(const std::string &id)
constexpr yarp::conf::vocab32_t createVocab(char a, char b=0, char c=0, char d=0)
A base class for nested structures that can be searched.
contains the definition of a Vector type
const std::string depthInfoTopicName_param
RGBDSensorWrapper & operator=(RGBDSensorWrapper &&)=delete
bool threadInit() override
Initialization method.
const std::string colorInfoTopicName_param
const std::string frameId_param
Interface implemented by all device drivers.
bool close() override
Close the DeviceDriver.
const std::string depthTopicName_param
bool attachAll(const yarp::dev::PolyDriverList &p) override
Specify which sensor this thread has to read from.
~RGBDSensorWrapper() override
bool respond(const yarp::os::Bottle &cmd, yarp::os::Bottle &response) override
Respond to a message.
RGBDSensorWrapper & operator=(const RGBDSensorWrapper &)=delete
bool configure(yarp::dev::IRGBDSensor *interface)
bool attach(yarp::dev::PolyDriver *poly) override
Attach to another object.
A mini-server for network communication.
constexpr yarp::conf::vocab32_t VOCAB_PROTOCOL_VERSION
const std::string nodeName_param
RGBDSensorWrapper(const RGBDSensorWrapper &)=delete
Image class with user control of representation details.
bool detachAll() override
Detach the object (you must have first called attach).
RGBDSensorWrapper: A Network grabber for kinect-like devices.
A container for a device driver.
Interface for an object that can wrap/or "attach" to another.
bool open(yarp::os::Searchable ¶ms) override
Device driver interface.
void threadRelease() override
Release method.
A generic interface for cameras that have both color camera as well as depth camera sensor,...
Control interface for frame grabber devices.
An abstraction for a periodic thread.
An interface for reading from a network connection.
An abstraction for a time stamp and/or sequence number.
A cheap and cheerful framework for human readable/writable forms of messages to devices.
An interface for retrieving intrinsic parameter from a rgb camera.
bool detach() override
Detach the object (you must have first called attach).
void run() override
Loop function.
~RGBDSensorParser() override=default
Interface for an object that can wrap/attach to to another.
const std::string colorTopicName_param
An interface for retrieving intrinsic parameter from a depth camera.
bool fromConfig(yarp::os::Searchable ¶ms)
RGBDSensorWrapper(RGBDSensorWrapper &&)=delete
A class for storing options and configuration information.