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

Add some introductory material to the README, and a Tips and Tricks section #1916

Open
wants to merge 1 commit into
base: rolling
Choose a base branch
from

Conversation

emersonknapp
Copy link
Collaborator

@emersonknapp emersonknapp commented Feb 21, 2025

The comment "this is already possible, but it's maybe not obvious" came up in two recent issue conversations, so I've added a new section "Tips & Tricks" to the README.md and added some clarifying introductory material as well to help navigate to it.

Conversations of note at #1910 (comment) and #1595 (comment)

@emersonknapp emersonknapp force-pushed the emerson/tips-n-tricks-readme-section branch from 1963f70 to 2fb8a48 Compare February 21, 2025 23:59
Copy link
Contributor

@ahcorde ahcorde left a comment

Choose a reason for hiding this comment

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

Just a minor comment

Comment on lines +586 to +589
```


### Custom name with timestamp for bag directory
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
```
### Custom name with timestamp for bag directory

Custom name with timestamp for bag directory

Copy link
Member

@christophebedard christophebedard left a comment

Choose a reason for hiding this comment

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

Simple changes

@@ -217,7 +228,7 @@ Topic information: Topic: /chatter | Type: std_msgs/String | Count: 9 | Serializ
Topic: /my_chatter | Type: std_msgs/String | Count: 18 | Serialization Format: cdr
```

### Converting bags
### Converting bags (merge, split, etc.)
Copy link
Member

Choose a reason for hiding this comment

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

The link to this section in the list of verbs under Using rosbag2 needs to be updated. Search for #converting-bags.

@@ -403,7 +414,7 @@ def generate_launch_description():
])
```

## Using with composition
### Using recorder and player as composable nodes
Copy link
Member

Choose a reason for hiding this comment

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

The link to this section under Using rosbag2 needs to be updated. Search for #using-with-composition.

In shell:

```bash
pushd $MY_BASE_DIR && ros2 bag record ...
Copy link
Member

Choose a reason for hiding this comment

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

Given that you used /my/bag/base_dir above, couldn't you use it here?

Suggested change
pushd $MY_BASE_DIR && ros2 bag record ...
pushd /my/bag/base_dir && ros2 bag record ...

Same for the Python example below.

└── rosbag2_2025_02_21-15_37_17_0.mcap
```

This can be accomplished without features in `rosbag2` itself.
Copy link
Member

Choose a reason for hiding this comment

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

We use rosbag2 (not rosbag2) almost everywhere else, so this should probably be:

Suggested change
This can be accomplished without features in `rosbag2` itself.
This can be accomplished without features in rosbag2 itself.


### Custom name with timestamp for bag directory

You can fully customize the output bag name, without any `rosbag2` special features.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
You can fully customize the output bag name, without any `rosbag2` special features.
You can fully customize the output bag name, without any rosbag2 special features.

@@ -2,7 +2,18 @@
![License](https://img.shields.io/github/license/ros2/rosbag2)
[![GitHub Action Status](https://github.com/ros2/rosbag2/workflows/Test%20rosbag2/badge.svg)](https://github.com/ros2/rosbag2/actions)

Repository for implementing rosbag2 as described in its corresponding [design article](https://github.com/ros2/design/blob/ros2bags/articles/rosbags.md).
Rosbag2 - the tool for recording and playback of messages from ROS 2 topics.
Copy link
Member

Choose a reason for hiding this comment

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

I would use "rosbag2" here even at the start of a sentence, since this is how it's written in other places.

Suggested change
Rosbag2 - the tool for recording and playback of messages from ROS 2 topics.
rosbag2 -- the tool for recording and playback of messages from ROS 2 topics.

Copy link
Contributor

Choose a reason for hiding this comment

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

and now it actually supports services too.

Copy link
Contributor

Choose a reason for hiding this comment

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

I actually prefer to use Rosbag2 starting from the capital R everywhere in the documentation and presentations.
The "rosbag2" is a package name, and it should be used with the small starting r when we mention this specific package name.

Copy link
Member

@christophebedard christophebedard Feb 24, 2025

Choose a reason for hiding this comment

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

That makes sense to me, but the README doesn't seem to adhere to that, or at least it's not very consistent. Anyway, we can leave it as-is and improve that later.

I would however do this:

Suggested change
Rosbag2 - the tool for recording and playback of messages from ROS 2 topics.
Rosbag2 -- the tool for recording and playback of messages from ROS 2 topics.

Copy link
Contributor

@fujitatomoya fujitatomoya left a comment

Choose a reason for hiding this comment

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

lgtm after all comments are resolved.

@@ -2,7 +2,18 @@
![License](https://img.shields.io/github/license/ros2/rosbag2)
[![GitHub Action Status](https://github.com/ros2/rosbag2/workflows/Test%20rosbag2/badge.svg)](https://github.com/ros2/rosbag2/actions)

Repository for implementing rosbag2 as described in its corresponding [design article](https://github.com/ros2/design/blob/ros2bags/articles/rosbags.md).
Rosbag2 - the tool for recording and playback of messages from ROS 2 topics.
Copy link
Contributor

Choose a reason for hiding this comment

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

and now it actually supports services too.

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.

5 participants