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
Initializing the repeat_latched option #17
Conversation
4b0e8cc
to
9ef45b0
Compare
Added a test as well. |
9ef45b0
to
699fe21
Compare
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.
Oh, good test. It could be worth reworking the other test in this file with the new template since
- it could test for the case that motivated this change (
repeat_latched
being true without actually setting the option) - the existing test doesn't do anything, as far as I can tell. It publishes a latched message to a
record
instance, but never evaluates the bagfile. (which isn't exactly practical withrecord
being launched from a different file)
Yeah, how do we feel about that? If this is getting PR-ed upstream, are they going to be unhappy about the removal of the existing test? |
Hard to say. I think if it didn't have bearing on the bug you were fixing they'd probably reject it as an unrelated change, but be open to it as a separate PR. (since the test is broken) Easiest thing might be to not change the existing test and ask explicitly whether they're open to the change. |
699fe21
to
91980de
Compare
@tappan-at-git, sorry to do this again, but would you mind having one more look? I added a second test for the case where repeating is disabled. |
91980de
to
89c53d0
Compare
pub.publish(String("hello")) | ||
|
||
# Wait for some time before starting the bag recording | ||
rospy.sleep(rospy.Duration.from_sec(5.0)) |
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 suspect this is only part of the original test because it's waiting for the external rosbag record node to start up.
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 think it's also testing latching, no? We want to confirm latching is working, so we
- Publish
- Wait a little while
- Start recording
* Initializing the repeat_latched option and adding test
* Initializing the repeat_latched option and adding test
Addresses https://locusrobotics.atlassian.net/browse/RST-3442.|
FYI @paulbovbel