-
Notifications
You must be signed in to change notification settings - Fork 70
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
Adapt Node to custom depth image #176
Comments
Yes, Is your switching |
I'm just using the same approach as the original: matrix_depth(c, r) = img_depth_.at(r,c); |
I guess by "the original" you mean this loop? As you can see, the image dimensions were hard-coded there. Is your stereo image also 640x480? If not, did you adapt the loop conditions? Anyways, if you can compile in debug mode and run in GDB, that would give a backtrace of the crash and we could do more. As-is, I can't reproduce, so I can't help more than that. |
Yes! It's that loop. I will try to run the code in debug mode and give you more info. Thanks! |
So I checked Debug: upper_body_detector: /home/followinspiration/catkin_ws/src/spencer_people_tracking/detection/rgbd_detectors/rwth_upper_body_detector/include/Matrix.h:307: T& Matrix::operator()(int, int) [with T = double]: Assertion `x < x_size_ && y < y_size_ && x >= 0 && y >= 0' failed. I guess my depth or camera information are not well suited to this node. Or I can be the freespace parameters... |
Something else we noticed while trying to get the UBD running on a different robot, if the ground plane is not correct, it dies without any intelligible output. If you use the ground plane estimation, this shouldn't be a problem. If the fixed one is used, it has to be transformed according to the tilt angle of the camera. Not sure if this is related but it caused the UBD to die in a matter of seconds as soon as the camera was tilted. I think this is also related to #156 |
I think the assertion is pretty clear in that there's out-of-bounds access to the matrix somewhere. Now we just need a backtrace to see where that happens. Also, this may or may not be the cause of the crash. |
So I've tried to change the values of the config file .inp. Something like : freespace_minX = -9; With this the program does not crash but also does not produce any detection. I still need to verify my depth map. I'm using really_fixed ground plane with 1.4 m of the floor. |
huh, I still think investigating above assertion failure, or attaching gdb and getting a back-trace of the crash, are the only ways forward. |
Oh yeah, sorry about that. Is there any visual feedback about the projection of point cloud on the occupation map? |
Is there any option to manually find the fixed normals and distance to the floor? Because the ground plane estimation is not working properly with my depth map produced from a stereo rig. |
I don't know the answer to both of these, sorry. |
As far as I remember, the used VO is fovis. This is designed for rgbd
|
Sorry, VO stands for what? @lucasb-eyer I will try to examinate the output of occupation map. I feel that will be there the key to this problem. Actually the projection on floor coordinates is critical in this procedure and not so straight forward to some configurations. |
VO strands for Visual Odometry, but after thinking about it again, I might On Wed, Oct 7, 2015 at 3:49 PM, filipetrocadoferreira <
|
Oh I got it. In my case the pointcloud produced from stereo does not have a good represantation of the floor plane, (it does not appear in almost all the frames) |
So I achieve to start getting detections (still not with the desire accuracy but good results) . Important things to change while using depth from disparity: |
A correctly estimated ground plane is crucial to the approach. If you On Thu, Oct 8, 2015 at 4:40 PM, filipetrocadoferreira <
|
I'm producing a depth image from stereo cameras and publishing it as 16uint with distance in mm.
What kind of data is this node expecting? 32F in meters right?
When I try to convert it with:
matrix_depth(c, r) = ((double)(img_depth_.at<uint16_t>(r,c)))/1000.0;
I usually get this error : [upper_body_detector-3] process has died [pid 7837, exit code -11, cmd /home/followinspiration/catkin_ws/devel/lib/rwth_upper_body_detector/upper_body_detector __name:=upper_body_detector __log:=/home/followinspiration/.ros/log/37c20038-6c48-11e5-9658-08606edac62c/upper_body_detector-3.log].
The text was updated successfully, but these errors were encountered: