6#ifndef RGBD_ROS_UTILS_H
7#define RGBD_ROS_UTILS_H
21#include <yarp/rosmsg/sensor_msgs/CameraInfo.h>
22#include <yarp/rosmsg/sensor_msgs/Image.h>
24#include <yarp/rosmsg/impl/yarpRosHelper.h>
51 virtual void onRead(yarp::rosmsg::sensor_msgs::Image& v)
override;
56 bool getFOV(
double& horizontalFov,
double& verticalFov)
const;
65 yarp::rosmsg::sensor_msgs::Image& dest,
66 const std::string& frame_id,
67 const yarp::rosmsg::TickTime& timeStamp,
68 const unsigned int& seq);
71 yarp::rosmsg::sensor_msgs::Image& dest,
72 const std::string& frame_id,
73 const yarp::rosmsg::TickTime& timeStamp,
74 const unsigned int& seq);
contains the definition of a Matrix type
yarp::sig::ImageOf< yarp::sig::PixelFloat > DepthImage
bool getFOV(double &horizontalFov, double &verticalFov) const
std::string m_camerainfo_topic_name
virtual void onRead(yarp::rosmsg::sensor_msgs::Image &v) override
DepthImage m_lastDepthImage
bool m_contains_depth_data
yarp::os::Stamp m_lastStamp
bool getLastDepthData(yarp::sig::ImageOf< yarp::sig::PixelFloat > &data, yarp::os::Stamp &stmp)
std::string m_cameradata_topic_name
yarp::rosmsg::sensor_msgs::CameraInfo m_lastCameraInfo
bool getIntrinsicParam(yarp::os::Property &intrinsic) const
bool getLastRGBData(yarp::sig::FlexImage &data, yarp::os::Stamp &stmp)
yarp::os::Subscriber< yarp::rosmsg::sensor_msgs::CameraInfo > m_subscriber_camera_info
virtual ~commonImageProcessor()
yarp::sig::FlexImage m_lastRGBImage
A mini-server for performing network communication in the background.
A class for storing options and configuration information.
An abstraction for a time stamp and/or sequence number.
A port specialized for reading data of a constant type published on a topic.
Image class with user control of representation details.
void shallowCopyImages(const yarp::sig::FlexImage &src, yarp::sig::FlexImage &dest)
void deepCopyImages(const yarp::sig::FlexImage &src, yarp::rosmsg::sensor_msgs::Image &dest, const std::string &frame_id, const yarp::rosmsg::TickTime &timeStamp, const unsigned int &seq)