Please select Into the mobile phone version | Continue to access the computer ver.
Close
You need to log in before you can reply       Login | Register now

[Manifold] Read cam node on Manifold

Author: giuseppe.riggio 2017-5-2 23:04
1 161
Hi everybody,

I am using ROS Indigo on the Manifold in order to control a Matrice 100 by Image Servoing. I'm using the ROS node dji_sdk_read_cam to get the video streaming from a Zenmuse X3 in a ROS topic.

The problem is that the topic /image_raw is published with a frequency of 12-13 Hz

It is possible to speed up the publishing frequency of the topic?

Thanks,

Giuseppe
Reply
Replies
giuseppe.riggio
I solved the problem. I changed the function NV12toRGB in the node with using opencv libraries:

#include <opencv2/opencv.hpp>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>

unsigned char* NV12ToRGB(unsigned char* src, unsigned char* rgb, int width, int height)

cv::Mat myuv(height + height/2, width, CV_8UC1, src);
cv::Mat mrgb(height, widthm CV_8UC3, rgb)
cv::cvtColor(myuv, mrgb, CV_YUV2BGR_NV12);

return rgb;
2017-5-4 18:44
You need to log in before you can reply Login | Register now

Quick Reply Back to top Back to list
Quick Reply Back to top Back to list