Skip to content

Replaced bag.isOpen() by checking bag filename#1

Open
WeilongYE wants to merge 2 commits intoavidbots-masterfrom
bag-is-open-replaced
Open

Replaced bag.isOpen() by checking bag filename#1
WeilongYE wants to merge 2 commits intoavidbots-masterfrom
bag-is-open-replaced

Conversation

@WeilongYE
Copy link
Copy Markdown
Collaborator

There is no bag::isOpen interface in ros kinetic version of rosbag. Replaced the isOpen in rosbag_snapshot with checking the bag filename to make rosbag_snapshot compatible with ros kinetic. The open and close API of bag file are paired with assign and empty the filename of the bag file, please refer to source file here

@pbelanger-avid
Copy link
Copy Markdown

Do you think there would be value on making this change conditionally compiled based on ROS version and submitting upstream?

<package format="2">
<name>rosbag_snapshot</name>
<version>1.0.3</version>
<version>1.1.0</version>
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd recommend updating the patch version instead of minor so that we have an easier time incorporating upstream updates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants