|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
93 yCWarning(RGBD_ROS_TOPIC) <<
"getRgbSupportedConfigurations not implemented yet";
112 yCWarning(RGBD_ROS_TOPIC) <<
"setDepthResolution not supported";
118 yCWarning(RGBD_ROS_TOPIC) <<
"setRgbResolution not supported";
125 yCWarning(RGBD_ROS_TOPIC) <<
"setRgbFOV not supported";
131 yCWarning(RGBD_ROS_TOPIC) <<
"setDepthFOV not supported";
137 yCWarning(RGBD_ROS_TOPIC) <<
"setDepthAccuracy not supported";
154 yCWarning(RGBD_ROS_TOPIC) <<
"Mirroring not supported";
160 yCWarning(RGBD_ROS_TOPIC) <<
"Mirroring not supported";
215 yCWarning(RGBD_ROS_TOPIC) <<
"getDepthAccuracy not supported";
221 yCWarning(RGBD_ROS_TOPIC) <<
"getDepthClipPlanes not supported";
227 yCWarning(RGBD_ROS_TOPIC) <<
"setDepthClipPlanes not supported";
233 yCWarning(RGBD_ROS_TOPIC) <<
"getDepthMirroring not supported";
239 yCWarning(RGBD_ROS_TOPIC) <<
"setDepthMirroring not supported";
245 yCWarning(RGBD_ROS_TOPIC) <<
"getExtrinsicParam not supported";
251 std::lock_guard<std::mutex> guard(
m_mutex);
260 std::lock_guard<std::mutex> guard(
m_mutex);
261 bool depth_ok =
false;
270 bool depth_ok =
false;
271 std::lock_guard<std::mutex> guard(
m_mutex);
276 return (rgb_ok && depth_ok);
std::string getLastErrorMsg(Stamp *timeStamp=NULL) override
Return an error message in case of error.
int getRgbWidth() override
Return the width of each frame.
bool close() override
Close the DeviceDriver.
A base class for nested structures that can be searched.
bool getRgbResolution(int &width, int &height) override
Get the resolution of the rgb image from the camera.
int getDepthWidth() override
Return the height of each frame.
int getDepthHeight() override
Return the height of each frame.
#define yCWarning(component,...)
bool getExtrinsicParam(yarp::sig::Matrix &extrinsic) override
Get the extrinsic parameters from the device.
bool setDepthResolution(int width, int height) override
Set the resolution of the depth image from the camera.
yarp::os::Node * m_ros_node
#define YARP_LOG_COMPONENT(name,...)
bool getDepthMirroring(bool &mirror) override
Get the mirroring setting of the sensor.
bool getDepthFOV(double &horizontalFov, double &verticalFov) override
Get the field of view (FOV) of the depth camera.
yarp::dev::RGBDRosConversionUtils::commonImageProcessor * m_rgb_input_processor
std::string m_rgb_data_topic_name
int getRgbHeight() override
Return the height of each frame.
bool setRgbResolution(int width, int height) override
Set the resolution of the rgb image from the camera.
std::string m_depth_data_topic_name
bool getRgbImage(FlexImage &rgbImage, Stamp *timeStamp=nullptr) override
Get the rgb frame from the device.
An interface for the device drivers.
bool getRgbMirroring(bool &mirror) override
Get the mirroring setting of the sensor.
bool open(yarp::os::Searchable &config) override
Open the DeviceDriver.
std::string m_depth_info_topic_name
bool setRgbFOV(double horizontalFov, double verticalFov) override
Set the field of view (FOV) of the rgb camera.
Image class with user control of representation details.
std::string m_rgb_info_topic_name
bool getDepthIntrinsicParam(Property &intrinsic) override
Get the intrinsic parameters of the depth camera.
virtual std::string asString() const
Get string value.
virtual bool check(const std::string &key) const =0
Check if there exists a property of the given name.
virtual Value & find(const std::string &key) const =0
Gets a value corresponding to a given keyword.
yarp::dev::RGBDRosConversionUtils::commonImageProcessor * m_depth_input_processor
bool getLastDepthData(yarp::sig::ImageOf< yarp::sig::PixelFloat > &data, yarp::os::Stamp &stmp)
bool getRgbFOV(double &horizontalFov, double &verticalFov) override
Get the field of view (FOV) of the rgb camera.
bool setDepthFOV(double horizontalFov, double verticalFov) override
Set the field of view (FOV) of the depth camera.
void clear()
Remove all associations.
bool getRgbIntrinsicParam(Property &intrinsic) override
Get the intrinsic parameters of the rgb camera.
bool setDepthAccuracy(double accuracy) override
Set the minimum detectable variation in distance [meter] when possible.
An abstraction for a time stamp and/or sequence number.
bool getDepthImage(depthImage &depthImage, Stamp *timeStamp=nullptr) override
An interface to the operating system, including Port based communication.
bool setDepthClipPlanes(double nearPlane, double farPlane) override
Set the clipping planes of the sensor.
bool getRgbSupportedConfigurations(yarp::sig::VectorOf< yarp::dev::CameraConfig > &configurations) override
Get the possible configurations of the camera.
bool getFOV(double &horizontalFov, double &verticalFov) const
RGBDSensor_status getSensorStatus() override
Get the surrent status of the sensor, using enum type.
bool getDepthClipPlanes(double &nearPlane, double &farPlane) override
Get the clipping planes of the sensor.
void useCallback(TypedReaderCallback< T > &callback)
bool getLastRGBData(yarp::sig::FlexImage &data, yarp::os::Stamp &stmp)
bool setRgbMirroring(bool mirror) override
Set the mirroring setting of the sensor.
bool getIntrinsicParam(yarp::os::Property &intrinsic) const
bool setDepthMirroring(bool mirror) override
Set the mirroring setting of the sensor.
double getDepthAccuracy() override
Get the minimum detectable variation in distance [meter].
A class for storing options and configuration information.
bool getImages(FlexImage &colorFrame, depthImage &depthFrame, Stamp *colorStamp=NULL, Stamp *depthStamp=NULL) override