Skip to content
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

Open the bag directory instead of a single file #80

Merged
merged 1 commit into from
Oct 29, 2020

Conversation

mjeronimo
Copy link

In ROS2, there is no longer a single rosbag file. Let the directory
containing the various files be used as the "rosbag." Also, use a
consistent proposed filename format for both the Record and Save dialogs.
Finally, fix a minor issue in the raw view.

Signed-off-by: Michael Jeronimo [email protected]

In ROS2, there is no longer a single rosbag file. Let the directory
containing the various files be used as the "rosbag." Also, use a
consistent proposed filename format for both the Record and Save dialogs.
Finally, fix a minor issue in the raw view.

Signed-off-by: Michael Jeronimo <[email protected]>
Copy link
Contributor

@jacobperron jacobperron left a comment

Choose a reason for hiding this comment

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

LGTM, one question.

@@ -208,7 +208,7 @@ def _add_msg_object(self, parent, path, name, obj, obj_type):

elif type(obj) in [str, bool, int, long, float, complex, Time]:
# Ignore any binary data
obj_repr = codecs.utf_8_decode(str(obj).decode(), 'ignore')[0]
obj_repr = codecs.utf_8_decode(str(obj).encode(), 'ignore')[0]
Copy link
Contributor

Choose a reason for hiding this comment

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

This change looks unrelated. Should it be included in this PR?

Copy link
Author

Choose a reason for hiding this comment

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

Yeah, doesn't have to be. I didn't know if it was worth a separate PR for a single line.

Copy link
Contributor

Choose a reason for hiding this comment

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

In general, I would try to keep changes focused on one thing for traceability (e.g. when reviewing commit history). I find it makes it easier to pinpoint where and why something was changed. It can also make porting/reverting specific changes easier when they are more focused.

In this case, we can leave it as-is since I see encode() was added in ROS 1 in #68, and I guess decode() was added accidentally during the port in #72 (independent of the ROS 1 change).

Copy link
Author

Choose a reason for hiding this comment

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

Ok. Yes, that's correct. Fixing an issue introduced accidentally.

@mjeronimo mjeronimo merged commit 5a21847 into ros2 Oct 29, 2020
@mjeronimo mjeronimo deleted the mjeronimo/ros2-open-directory branch October 29, 2020 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants