-
Notifications
You must be signed in to change notification settings - Fork 240
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
remove rosbag2_transport header #742
Conversation
a0da816
to
7152735
Compare
recorder->record(); | ||
rclcpp::executors::SingleThreadedExecutor exec; | ||
exec.add_node(recorder); | ||
auto spin_thread = std::thread( |
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.
Don't you want to start spinning before calling record? IIRC record
doesn't exit until it's cancelled.
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.
hmm. I honestly don't know. I had the same question at #741 within the tests - this code is actually really just copied from these.
I thought it would make sense to give record
the change to setup all subscriptions and potential error handling and really only spin once that's completed.
Why do you advocate for spinning first?
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 - Recorder::record
returns right away after setup and runs in the background, until the Recorder
object is destroyed. API confusion from the previous blocking API.
Not something we have to handle here, but maybe we ought to consider a slightly more obvious API - if recording is controlled by the object lifecycle, then should recording just start in the constructor? Or, alternatively should there be a way to stop recording without destroying the object?
746fdb1
to
53b260d
Compare
virtual ~Recorder(); | ||
|
||
ROSBAG2_TRANSPORT_PUBLIC | ||
void record(); |
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.
Now that we are making these public I think we need a serious docstring pass. Not blocking this, but we should make an effort to document every public header in the "cleanup sprint"
Signed-off-by: Karsten Knese <Karsten1987@users.noreply.github.com>
7152735
to
62033a8
Compare
@Emerson, could it be that the GH actions don't observe the As a side note, I believe there's simply a bug in the |
That's correct - it is not configured out of the box to do anything specific about |
as per title, finally triggering the switch.
sits on top of #741