-
Notifications
You must be signed in to change notification settings - Fork 276
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 support for specifying log record period #1636
Conversation
Signed-off-by: Ian Chen <[email protected]>
Signed-off-by: Ian Chen <[email protected]>
Signed-off-by: Ian Chen <[email protected]>
Codecov Report
@@ Coverage Diff @@
## ign-gazebo6 #1636 +/- ##
===============================================
+ Coverage 64.40% 64.48% +0.07%
===============================================
Files 320 320
Lines 25892 25935 +43
===============================================
+ Hits 16677 16723 +46
+ Misses 9215 9212 -3
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.
Just for testing I tried 0.1
and 1
record-periods. I was expecting very choppy results but I think the playback stops for a lot of time. Not sure if there's something going on.
I can reproduce the issue. Just dumping my findings here: Found that it's to do with the Unthrottling the scene_broadcaster makes it work but I haven't found a good fix yet |
Signed-off-by: Ian Chen <[email protected]>
playback scene broadcaster issue should be fixed in f4728cc. Now if no periodic changes are available when scene broadcaster is publishing, I force it to do an offcycle state update the next time it sees periodic changes. This should ensure all changed states from log playback are published to the GUI. |
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.
Works for me now with 0.1
and 1
.
Signed-off-by: Ian Chen [email protected]
🎉 New feature
Summary
Current log recorder records states on every update. By specifying the log record period, the user is able to control how often the simulator records states. A new command line arg
--record-period
is added (gazebo-classic also has the same arg name)Test it
Run the
INTEGRATION_log_system
test.You can also try enabling log recording through the command line, e.g.
# record at 10ms instead of the default 1ms and save the log file in a `log_test` dir ign gazebo -v 4 -r --record --record-path ./log_test --record-period 0.01 pendulum_links.sdf
then playback the log file:
You should see that the playback is now choppy due to reduced recording rate.
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.