Get data values from depth image
I'm using a turtlebot (Create base) with a kinect. I need to save images automatically (RGB and depth images) when the turtlebot is in front of a object that is less than 1 meter away. Therefore, i need to get access to the data values of depth image, and convert the numbers to get the distance. How can i do that ? And what's the appropriate topic to get what i need ?
For sure i'll have a code running, and since i'm new to ros i still have some silly doubts: - My goal is to use the images on opencv. Is it necessary to install again or the one who come with ros hydro is enough ? - When saving depth images from /camera/depth/image topic manually, i get a .jpg completely black. Anyone knows why ? - What's the best way to get start with opencv ? How to save a image thought a C++ code and etc.
Thanks!
My project is kind of similar with yours, but the time I see it, it is 2016 lol. I met the same problem just as you do.