-
Notifications
You must be signed in to change notification settings - Fork 44
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
Apply low-pass filter to RTF display #529
Conversation
Signed-off-by: Addisu Z. Taddese <addisu@openrobotics.org>
@iche033 I've made the filter less aggressive than what I had gazebosim/gz-sim#1942 so that it is responsive to changes like the image display being removed while still providing a stable RTF reading. |
Codecov Report
@@ Coverage Diff @@
## gz-gui7 #529 +/- ##
===========================================
+ Coverage 69.13% 69.19% +0.05%
===========================================
Files 44 44
Lines 4921 4937 +16
===========================================
+ Hits 3402 3416 +14
- Misses 1519 1521 +2
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
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, looks good to me. Just minor comment about doc
@@ -57,6 +57,9 @@ namespace plugins | |||
|
|||
/// \brief Holds iterations | |||
public: QString iterations; | |||
|
|||
public: std::optional<double> simTimeDelayed; | |||
public: std::optional<double> realTimeDelayed; |
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.
add doxy comments?
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.
Done in 09fd320
Signed-off-by: Addisu Z. Taddese <addisu@openrobotics.org>
🎉 New feature
Follow-up from gazebosim/gz-sim#1942
Summary
This adds a more aggressive low-pass filter than what was in gz-sim such that the RTF display is more stable and reflects the RTF of a longer window of time.
Test it
Run
gz sim camera_sensor.sdf
. The RTF will display is much more stable than before. After a while, remove the image display and watch the RTF increase.Checklist
codecheck
passed (See contributing)Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining
Signed-off-by
messages.