ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I've been using this formula and it works alright

cv_bridge::CvImageConstPtr cv_ptr

float pixel_depth = static_cast<float>(cv_ptr->image.at<unsigned short>(x, y));