-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
Groundbased_rgbd_people_detector #116
Comments
Hi Alex, sorry for the late reply. Try to click on the ground plane where the point cloud is more dense and be sure that there are no obstacles near there (maybe zooming on the ground plane could help). Cheers, |
Hi Alex, I just updated my code with the latest trunk and I experienced the same error you reported! Do you think that Nizar can understand what could be the cause? Cheers, |
The code is working (the coordinate of the points is correct), but the visualization of the Kinect point cloud or of the clicked points is wrong (z coordinate is inverted). From the image below, it seems that Kinect point cloud is wrongly visualized (points have negative z value). It seems to be caused by a change to the visualizer, but I do not know how to fix it and I do not think I should change my code. |
I agree with the explanation given above by mmunaro seems kinect point clouds are flipped. |
Hi Nizar, Cheers, |
Hi Alex and Nizar, Merge pull request #92 from nfioraio/master The last good and bad commits were: What was meant to be introduced with this commit? Cheers, |
Hi Matteo, it doesn't really make sense to identify the merge as the broken commit. Is there some easy test, so I can try it as well? |
Well, I was using git bisect, but I found some not compiling versions of the code, thus it could not finish...
|
Hi, based on Matteos tests I've found that it would be enough ti remove this and the next line to fix this: https://github.com/PointCloudLibrary/pcl/blob/master/visualization/include/pcl/visualization/impl/pcl_visualizer.hpp#L1247. On the other hand, this is part of a bigger change to support the sensor origin fields, so maybe adding an appropriate one would help as well. @nfioraio what's your opinion on this? Can you come up with a solution? |
In my opinion, here, the normals are correctly drawn, but the point cloud is flipped. |
i had same issue in the people detector point cloud flipped. did anyone solve this issue ? (*_^) |
Sounds like #92 needs some more work. I'm reverting it for now. Please report back if this fixes all problems. |
Ok, I will let you know tomorrow, because I cannot test it now. |
Such a big error in the conversion would be really bad. I would rather guess that some of the point clouds we are trying to visualize don't have the right viewpoint, or no viewpoint at all. Nicola, could you have a look into this? I would really like to have your #92 back in. Thanks! |
Ok, here I am! I'm not sure I got the problem.
Can you better explain how do you turn the viewer? Do you move it by hands (ie using the mouse) or do you call some function? The sensor origin/orientation is simply copied, but I don't know what exactly happens under the hood. Also, can you check that the sensor origin/orientation are set to some value (no NaN, no e-32 etc.)? Thx! |
Hi Nicola, I mean rotating by hand, moving the mouse. Apart from the fact that the point cloud changed orientation in the visualizer with that commit, the problem is that it is no more consistent with the PointPickingEvent and the points and rectangles that I plot afterwards. I am currently recompiling in order to see if the commit reversal solved the problem. |
Ok, I confirm that reverting the commit solved the visualization issue. |
Thank you for reporting the issue. I'm working on this! |
I found the same error running the openni_viewer. However, it seems that vtk correctly applied the transformation because the sensor_orientation_ field IS NOT SET TO IDENTITY ROTATION but to (1,0,0,0) instead. See here: https://github.com/PointCloudLibrary/pcl/blob/master/io/src/openni_grabber.cpp#L618 |
Good find Nicola! Is that the only place we have this problem? Can you prepare a pull request to fix this? @rbrusu you wrote the line in question, is there any problem with changing it? |
I commented out those lines and the visualization works fine now. I'll make a pull request for removing those lines, then @mmunaro and @mamoto please try to apply pull #92 and check if everything is fine. By the way, pointclouds acquired and saved with that orientation should be fixed to be visualized in the right way. |
I believe that is the correct orientation for Kinect data (1,0,0,0). Also, it must have been set by Suat not me. |
What is pcl_people_debug.lib for? Are you using Windows? |
Yes, I use windows 8 with visual studio 12 |
Maybe you should build in debug mode for generating that kind of file? |
Yes. I always build type debug. All libraries create automatically without people. I checked properties build setting, it's ok. At the moment, I make it manually. Change dynamic dll to static library and .dll to. Lib |
The only difference in the CMakeLists.txt with respect to the other modules is the target_link_libraries line. |
@mmunaro I did as your guide then recompiled it, but still didn't produce a library file. I have been compared with other modules and didn't found differently. it is difficult to understand. |
I really don't understand why we need an extra rotation for kinect data. A reference frame is just a convention and if you say that the kinect points should be rotated, then the user should use such rotated points, instead of the original ones, when using the cloud with others coming from different sources, otherwise, ie you use the original points, the sensor_pose_ would have no meaning. |
@mamoto: are you following this tutorial? http://pointclouds.org/documentation/tutorials/compiling_pcl_windows.php However, I am not familiar with PCL compilation in Windows. |
Yes, I have followed the steps in the tutorial and create a new build. I think the problem lies in the file hog.cpp, maybe I need to reconsider. please add #define _USE_MATH_DEFINES at line 43 (#include < math.h >) in hog.h file |
I confirm that the visualization problems have gone away with the latest trunk. Closing this as the discussion went off-topic. @mamoto , please open another issue if you are still having trouble. |
@nizar-sallem , @mmunaro
I am playing with the people detector, and the plane selection is really messed up. I click on some points, and get completely random points in the scene. They seem to be rolled around the z-axis by 180 degrees (see the screenshot). But I cannot seem to find the problem in the code. Nizar, can you have a look, the code is super short in apps/main_ground_base_rbgd_people_detector.cpp ?
Thanks guys!
The text was updated successfully, but these errors were encountered: