-
Notifications
You must be signed in to change notification settings - Fork 98
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 laser_retro in Visual #454
Conversation
Codecov Report
@@ Coverage Diff @@
## sdf9 #454 +/- ##
==========================================
- Coverage 86.68% 86.67% -0.02%
==========================================
Files 61 61
Lines 9516 9531 +15
==========================================
+ Hits 8249 8261 +12
- Misses 1267 1270 +3
Continue to review full report at Codecov.
|
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.
Thanks for the PR. Mind adding some tests for the collision too? And also signing the commits for DCO?
include/sdf/Collision.hh
Outdated
|
||
/// \brief Set the lidar reflective intensity. | ||
/// \param[in] _laserRetro The lidar reflective intensity. | ||
public: void SetLaserRetro(double _laserRetro); |
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.
Mind moving the new public functions up with the existing ones?
include/sdf/Collision.hh
Outdated
/// has been specified. | ||
/// \param[in] _laserRetro True if the lidar reflective intensity | ||
/// has been set in the sdf. | ||
public: void SetHasLaserRetro(bool _laserRetro); |
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.
We haven't been consistently adding Has
functions for optional elements. I only see this in Camera.hh
. I'm not sure if that's the direction we want to go in, or if we want to just leave the default value in case it's unset.
Thoughts, @azeey ?
Signed-off-by: Guillaume Doisy <[email protected]>
Signed-off-by: Guillaume Doisy <[email protected]>
Signed-off-by: Guillaume Doisy <[email protected]>
Signed-off-by: Guillaume Doisy <[email protected]>
Signed-off-by: Louise Poubel <[email protected]> Co-authored-by: Steve Peters <[email protected]> Signed-off-by: Guillaume Doisy <[email protected]>
Signed-off-by: Guillaume Doisy <[email protected]>
Signed-off-by: Guillaume Doisy <[email protected]>
1dd0baa
to
f3f81a2
Compare
Signed-off-by: Guillaume Doisy <[email protected]>
Signed-off-by: Guillaume Doisy <[email protected]>
Should be signed now. Removed all Collision modifications (the .hh changes were residual) as I want to implement laser_retro only in Visual for now. More simple as there is no equivalent to https://github.com/osrf/sdformat/blob/32d96a6b3587d518695253fb4d4c70b8404525b0/src/Visual.cc#L75-L83 in Collision yet |
Signed-off-by: Guillaume Doisy <[email protected]>
acb7050
to
39c267f
Compare
I merged the last sdf9 branch into this PR branch, this seems to have fix the diff for now. I ll do a rebase or reset if that's not enough |
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.
Looking good. I still have the request to move the public functions above the private ones before merging. Thanks!
Signed-off-by: Guillaume Doisy <[email protected]>
Signed-off-by: Guillaume Doisy <[email protected]>
First PR needed for laser_retro support as discussed here: gazebosim/gz-rendering#181