18 #include <opencv/highgui.h> 21 #include <sensor_msgs/Image.h> 24 #include <mrpt/version.h> 25 #if MRPT_VERSION >= 0x199 26 using namespace mrpt::img;
44 if (!frame1)
return false;
45 IplImage ipl = frame1->
image;
56 sensor_msgs::Image& msg)
59 #if MRPT_VERSION>=0x199 60 Mat cvImg = temp_img.asCvMatRef();
62 Mat cvImg = cv::cvarrToMat(temp_img.
getAs<IplImage>());
70 msg.encoding =
"bgr8";
71 msg.header = msg_header;
bool mrpt2ros(const CObservationGPS &obj, const std_msgs::Header &msg_header, sensor_msgs::NavSatFix &msg)
void loadFromIplImage(void *iplImage)
File includes methods for converting CNetworkOfPoses*DInf <=> NetworkOfPoses message types...
typedef int(WINAPI *PFNWGLRELEASEPBUFFERDCARBPROC)(HPBUFFERARB hPbuffer
CvImagePtr toCvCopy(const sensor_msgs::ImageConstPtr &source, const std::string &encoding=std::string())
GLenum GLsizei GLenum GLenum const GLvoid * image
size_t getWidth() const MRPT_OVERRIDE
mrpt::utils::CImage image
sensor_msgs::ImagePtr toImageMsg() const
size_t getHeight() const MRPT_OVERRIDE
bool ros2mrpt(const sensor_msgs::NavSatFix &msg, CObservationGPS &obj)