-
Notifications
You must be signed in to change notification settings - Fork 277
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
Added additional pose offset for the performer detector #236
Conversation
Signed-off-by: Nate Koenig <[email protected]>
Codecov Report
@@ Coverage Diff @@
## ign-gazebo2 #236 +/- ##
===============================================
+ Coverage 62.14% 62.34% +0.19%
===============================================
Files 123 123
Lines 6102 6102
===============================================
+ Hits 3792 3804 +12
+ Misses 2310 2298 -12
Continue to review full report at Codecov.
|
Co-authored-by: iche033 <[email protected]>
Signed-off-by: Nate Koenig <[email protected]>
…/ign-gazebo into performer_detector_pose
Signed-off-by: Nate Koenig <[email protected]>
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.
LGTM! My only concern with this PR is that the nesting example you gave, even with this PR, leads to unexpected results. i.e, with parent model:
<sdf version="1.6">
<model name="cave_starting_area">
<static>true</static>
<include>
<uri>https://fuel.ignitionrobotics.org/1.0/OpenRobotics/models/Cave Staging Exit Detector</uri>
<pose>0 0 10 0 0 0</pose>
</include>
....
</model>
</sdf>
And the included Cave Staging Exit Detector
.
<sdf version="1.6">
<model name="cave_staging_exit_detector">
<static>true</static>
<pose>13.5 0 0 0 0 0</pose>
<plugin filename="libignition-gazebo-performer-detector-system.so" name="ignition::gazebo::systems::PerformerDetector">
<topic>/subt_performer_detector</topic>
<geometry>
<box>
<size>4 30 20</size>
</box>
</geometry>
</plugin>
</model>
The expected pose of the detector's box in world frame is 13.5 0 10 0 0 0
, but the result will still be 0 0 0 0 0 0
.
Yup, thi
Yup, that is not intuitive, but I don't know how to fix that right now. |
Signed-off-by: Nate Koenig <[email protected]>
It's currently not possible to set the pose of an
<include>
ed performer detector relative to the parent model.For example, consider this parent model:
And the included
Cave Staging Exit Detector
.The
<pose>
inCave Staging Exit Detector
is not used by the plugin, because of the<include>
process. You also cannot set the<pose>
in the<include>
statement for the same reason.This means the plugin is always located at
0 0 0 0 0 0
in the parent model.This PR adds an optional
<pose>
to the plugin to address this situation.Signed-off-by: Nate Koenig [email protected]