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>
chapulina
left a comment
There was a problem hiding this comment.
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>
Signed-off-by: AmrElsersy <amrelsersay@gmail.com>
| enum class BoundingBoxType { | ||
|
|
||
| /// FullBox2D: 2D box that shows the full box of occluded objects |
There was a problem hiding this comment.
| enum class BoundingBoxType { | |
| /// FullBox2D: 2D box that shows the full box of occluded objects | |
| enum class BoundingBoxType { | |
| /// FullBox2D: 2D box that shows the full box of occluded objects |
nit: remove blank line
There was a problem hiding this comment.
It will not be readable here if it becomes uppercase :D
I see that notation is also used .. https://github.com/ignitionrobotics/ign-gazebo/blob/ign-gazebo5/include/ignition/gazebo/Types.hh#L63
can we keep that also :D
There was a problem hiding this comment.
let's make these uppercase for consistency within ign-rendering. It should also have a prefix, i.e. BBT_FULLBOX2D
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>
chapulina
left a comment
There was a problem hiding this comment.
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 |
WilliamLewww
left a comment
There was a problem hiding this comment.
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.
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: