How to use depth value from /camera/depth/image?
I am using this code
topic is: /camera/depth/image
type: /sensor_msgs/Image
According to the code, (msg->data[0])
is providing the value of Top-Left Corner.
I wanted to ask:
- How can I get the value of the Top-Right Corner, Centre, etc.
- How can I get the normal depth value that can tell me the distance from the object? Do I need to do some mathematical work or is there a method?
Your reference code helped, thanks