ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
hello there, I'm using different image(the rgb and depth),but I can't get the z correctly,it always 1. and the x, y from rgb and depth to 3d is not the same.
cv::Point2d pixel_point(98, 296);
cout << "pixel_point (2D) = " << pixel_point << endl << endl;
cv::Point3d xyz = cam_model_.projectPixelTo3dRay(pixel_point);
cout << "point (3D) = " << xyz << endl << endl;