-
Notifications
You must be signed in to change notification settings - Fork 295
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 topics to record #315
Conversation
Signed-off-by: Nate Koenig <nate@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.
I'd suggest adding a test to test/integration/log_system.cc
passing the --record-topic
option through the command line.
@@ -301,6 +301,17 @@ void ServerPrivate::AddRecordPlugin(const ServerConfig &_config) | |||
cPathElem->Set<std::string>(cmpPath); | |||
} | |||
|
|||
// If record topics specified, add in SDF |
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.
No action needed on this PR, but just for future reference, we're trying to pass this kind of information to systems through components rather than the SDF now.
Signed-off-by: Nate Koenig <nate@openrobotics.org>
Signed-off-by: Nate Koenig <nate@openrobotics.org>
Signed-off-by: Nate Koenig <nate@openrobotics.org>
Added a test in bd76749 |
Codecov Report
@@ Coverage Diff @@
## ign-gazebo2 #315 +/- ##
===============================================
+ Coverage 78.10% 78.11% +0.01%
===============================================
Files 183 183
Lines 9979 10022 +43
===============================================
+ Hits 7794 7829 +35
- Misses 2185 2193 +8
Continue to review full report at Codecov.
|
…into log_record_topics
Looking at the code, my understanding of the behavior is that if a topic is specified, the other topics necessary to playback a simulation in ign gazebo will not be recorded? So for example:
when playing back the
Just want to confirm that's the intended behavior? If so I think it would be useful to offer the ability to record all default topics + the ones specified through |
Signed-off-by: Nate Koenig <nate@openrobotics.org>
I changed the behavior to be an add in 990c877. |
…#333) Signed-off-by: Nate Koenig <nate@openrobotics.org> Signed-off-by: Louise Poubel <louise@openrobotics.org> Co-authored-by: Nate Koenig <nate@openrobotics.org> Co-authored-by: Louise Poubel <louise@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.
looks good to me!
A user can specify topics to record from the command line, or programmatically through the
ServerConfig
.Use
ign gazebo -h
to see information about the--record-topic
option including example usage.The ServerConfig functions will be used by
ign-launch
.Default logging behavior is persevered if no topics are specified.
Signed-off-by: Nate Koenig nate@openrobotics.org