- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I am using the RealSense D435 camera. I want to obtain the x y z coordinates from the /camera/depth/image_rect_raw topic for each frame. How do I do this?
The message format of the topic gives me a parameter Data[] which gives me depth values from 0 to 255 for each pixel but I want the x y z coordinates.
The RealSense SDK can create a pointcloud, is it possible to get the coordinates from each point in the pointcloud?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I tried the link where it says that I should launch rs_rgbd.launch and then I should get the information from pointcloud2. But when I try this I can't find a topic named "pointcloud2".
I then tried the second answer, which I think works. I use the x and y position from the Data[] array and the corresponding z value (between 0-255). This way I can get x,y,z but I was not sure this was the correct way to tackle this problem, but from the second answer I guess it is. So I don't think I need furter assistance. Thank you!
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I tried the link where it says that I should launch rs_rgbd.launch and then I should get the information from pointcloud2. But when I try this I can't find a topic named "pointcloud2".
I then tried the second answer, which I think works. I use the x and y position from the Data[] array and the corresponding z value (between 0-255). This way I can get x,y,z but I was not sure this was the correct way to tackle this problem, but from the second answer I guess it is. So I don't think I need furter assistance. Thank you!

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page