-
Notifications
You must be signed in to change notification settings - Fork 373
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generating point cloud from depth & image values #316
Comments
@MartinBischoff, could you expand upon this? I'm currently trying to do the same thing without much luck. I elected not to use opencv library to uncompress the data and instead just subscribed directly to the raw_image. This very well might be the source of my problem: did you run opencv on the Ubuntu side and then transfer the uncompressed images over? Or did you somehow run opencv within Unity? Also, could you clarify this line?
What would depthImage[u,v] be? depthImage.data[u*v]? Finally, where would one find / calculate the focal variable? Thank you so much for your help--pulling my hair out trying to get this to work. |
I managed to sucessfully send point cloud through RosSharp to RViz, but it was very slow, it took like 20 seconds. But it was HD pointcloud, mind that, and I had to use BSON serialization since JSON itself doesn't support NaN values. |
@Bradyk27 Here is what worked for me to use OpenCV to decompress images coming from an Asus Xtion Pro on a Turtlebot2. C++ side: https://pastebin.com/Ah7qL5yE C# side: I created a script to eventually merge the 2D images, but right now it only decompresses (should be helpful for your question about decompressing though): RGBDMerger.cs. This script uses the DLL Import that I linked above. The decompression takes between ~5-10ms for each type of image. You'll need to manually set the width, height, and msg fields of your images based on your camera+robot. Hope this helps. |
@Bradyk27 To get the focal length of your camera, check for |
Hi @NishanthJKumar ! Thanks for sharing this info about your project here!
I am looking forward to see the videos and images!
We did not publish our code for the turtlebot application open source. It would be too much effort to to make the code readable, document, fix bugs and administrated it properly. I hope you understand.
For the 3D point cloud we proceeded as follows:
Originally posted by @MartinBischoff in What are you using ROS# for? #20 (comment)
The text was updated successfully, but these errors were encountered: