-
Notifications
You must be signed in to change notification settings - Fork 103
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
Add segmentation and bounding box sensor types #592
Conversation
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.
Looks good so far, but we should do a few more things before merging this:
- Can you update
test/integration/link_dom.cc
to test the code path from XML to C++ for the new sensor types? Here's an example you can follow: https://github.com/osrf/sdformat/blob/sdformat11_11.1.0/test/integration/link_dom.cc#L337-L346 - Can you update the sensors unit test? You'll need to add the new types here: https://github.com/osrf/sdformat/blob/sdformat11_11.1.0/src/Sensor_TEST.cc#L243-L285
- Can you update the sensor documentation to include these new types? You'll want to update
sdf/1.9/sensor.sdf
: https://github.com/osrf/sdformat/blob/1a779837277034ec45f67cc9f1ea9a47bf4bfd9a/sdf/1.9/sensor.sdf#L11-L32 - Can you change the name of the PR to say something like "add segmentation and bounding box sensor types"? The current PR name is generic, and doesn't really give any information about the changes being made.
I noticed that the bounding box camera implementation in gazebosim/gz-rendering#334 accepts some configuration: visible / full. Do we want users to be able to configure that through SDF? Are there any other configurations we may want to add here for either sensor? |
I think it's likely that we will want users to configure |
@chapulina @adlarkin std::string type = sdfElement->Get<std::string>("segmentation_type"); is that a bad way to do that ? :D |
Signed-off-by: AmrElsersy <amrelsersay@gmail.com>
I think what you're doing in So, we may need to add files like
|
Just looking at the existing files, your suggestions look good |
I will add the sdf examples in the ign-sensors repo, as we discussed ashton, so I think this PR should be ready to review. |
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.
Can you also address the changes mentioned in #592 (comment)?
Signed-off-by: AmrElsersy <amrelsersay@gmail.com>
Signed-off-by: AmrElsersy <amrelsersay@gmail.com>
Tests in CI are failing, @AmrElsersy can you address the failures? |
Signed-off-by: AmrElsersy <amrelsersay@gmail.com>
Codecov Report
@@ Coverage Diff @@
## main #592 +/- ##
==========================================
+ Coverage 87.94% 87.98% +0.03%
==========================================
Files 72 72
Lines 10893 10929 +36
==========================================
+ Hits 9580 9616 +36
Misses 1313 1313
Continue to review full report at Codecov.
|
Signed-off-by: AmrElsersy <amrelsersay@gmail.com>
Signed-off-by: AmrElsersy <amrelsersay@gmail.com>
Signed-off-by: Ashton Larkin <ashton@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.
Nice work!
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.
Looks good! Just a couple nits.
This pull request has been mentioned on Gazebo Community. There might be relevant details there: https://community.gazebosim.org/t/gsoc-2021-machine-learning-extension-to-ignition-gazebo/1070/1 |
🎉 New feature
related to #134 #135
Summary
Added new types for SDF::Sensor to support Segmentation & BoundingBox Sensors
Checklist
sh tools/code_check.sh
)