-
Notifications
You must be signed in to change notification settings - Fork 51
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
Bounding Box Camera #334
Bounding Box Camera #334
Conversation
Signed-off-by: AmrElsersy <amrelsersay@gmail.com>
Signed-off-by: AmrElsersy <amrelsersay@gmail.com>
Signed-off-by: AmrElsersy <amrelsersay@gmail.com>
Signed-off-by: AmrElsersy <amrelsersay@gmail.com>
Signed-off-by: AmrElsersy <amrelsersay@gmail.com>
Signed-off-by: AmrElsersy <amrelsersay@gmail.com>
@AmrElsersy here are some ideas for integration testing:
Also, a note about checking the validity of bounding box coordinates: you can see if a bounding box's corner pixel coordinates are close enough to a "baseline" pixel coordinate by using |
Signed-off-by: AmrElsersy <amrelsersay@gmail.com>
Signed-off-by: AmrElsersy <amrelsersay@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The example looks super cool!
Can you comment on what's the intended use case? I see the sensor outputs the bounding box coordinates, as well as an RGB image with the boxes drawn. I'm wondering if we need the RGB image too, or if this could be a simpler sensor that just provides the BBs. That would make the sensor more similar to GpuRays
than to a camera.
Another thing that came to mind is that this camera is providing the 2D bounding boxes, but 3D bounding boxes are also widely used in ML datasets. Are there plans to add 3D boxes too?
Signed-off-by: AmrElsersy <amrelsersay@gmail.com>
Signed-off-by: AmrElsersy <amrelsersay@gmail.com>
It sounds like you have two rotations:
You should be able to multiply these two quaternions to get the rotation from body to camera, but you may need to invert one first. So |
by the way, the ViewMatrix() call does additional conversion from y to z up. Not sure if you need that. Otherwise, you can just call |
It is working now, thanks :D @iche033 @mjcarroll |
Signed-off-by: AmrElsersy <amrelsersay@gmail.com>
Signed-off-by: AmrElsersy <amrelsersay@gmail.com>
Codecov Report
@@ Coverage Diff @@
## ign-rendering6 #334 +/- ##
==================================================
+ Coverage 54.51% 54.96% +0.44%
==================================================
Files 198 202 +4
Lines 20270 21069 +799
==================================================
+ Hits 11051 11581 +530
- Misses 9219 9488 +269
Continue to review full report at Codecov.
|
Signed-off-by: Louise Poubel <louise@openrobotics.org>
Signed-off-by: Louise Poubel <louise@openrobotics.org>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is working for me, except for the 2d_full
box type. On the example, it crashes after I orbit with the mouse for a bit. It also happens on gz-sim
. I'm not being able to get an informative backtrace though.
@chapulina I will try to solve that :D |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix out of bounds error when creating lines for 2D_full
Signed-off-by: Louise Poubel <louise@openrobotics.org> Co-authored-by: William Lew <WilliamMilesLew@gmail.com>
Signed-off-by: Louise Poubel <louise@openrobotics.org>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All 3 camera types are working on the examples, tutorial, and downstream! Thanks to all the folks who got this across the finish line: @AmrElsersy @adlarkin @WilliamLewww ! 🏁
Signed-off-by: Louise Poubel <louise@openrobotics.org>
Signed-off-by: Louise Poubel <louise@openrobotics.org>
Signed-off-by: Louise Poubel <louise@openrobotics.org>
Signed-off-by: Louise Poubel <louise@openrobotics.org>
Signed-off-by: Louise Poubel <louise@openrobotics.org>
🎉 New feature
related to #135
Summary
Bounding boxes camera to extract labeled item's bounding boxes from the scene using OGRE 2.1
Visible Bounding Boxes
Full Bounding Boxes
Features: