-
Notifications
You must be signed in to change notification settings - Fork 251
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
Read topics/services from config file when recording #1581
Comments
@tonynajjar i think this is useful for supporting 3rd party application when we do debugging. besides a list of
|
@fujitatomoya this I believe can be done already: |
@tonynajjar @fujitatomoya IMO the requested functionality already exists and could be achieved through composition via starting reorder from the launch file. Sorry the documentation about it is still in review. See https://github.com/ros2/rosbag2/pull/1510/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5R349-R365 and you are more than welcome with a contribution to improve our documentation in this regards. The short example would be: $ ros2 launch rosbag2_transport record_all.launch.py where the import launch
def generate_launch_description():
return launch.LaunchDescription([
launch.actions.Node(
package='rosbag2_transport',
executable='recorder',
name='rosbag2_recorder',
output="screen",
parameters=["/path/to/recorder_params.yaml"],
)
]) Example of the |
Thanks @MichaelOrlov for the hint, looks indeed promising. I will test it out and get back to you (can't promise when but likely before end of next week) |
Actually it looks like I won't be able to test it since I'm on Humble and the rosbag2_recorder isn't available there. Any plans to backport it? |
@tonynajjar Backporting is not feasible due to the massive changes that are not API/ABI compatible. |
Is there any existing way to configure a recorder to record multiple sets of topics to separate bagfiles or is that better done by running multiple recorders in parallel (i.e. #1548 )? The use-case would be to separate high bandwidth topics from low bandwidth topics which would aid in debugging (don't have to share large bags all the time if less data is needed to replicate). |
You can use multiple instances of the Rosbag2 recorder running in parallel or use
|
Description
I'd like to be able to able to run
ros2 bag record --record-config-file config-file.yaml
(or similar) whereconfig-file.yaml
would contain a list of topics and/or services to record. The main benefit of this approach would be to have a config file that is version-controllable, e.g. at some site we want to record different topics.Related Issues
None that I could find
Completion Criteria
** What needs to be true before we can call this "Done"? Bullet lists are appropriate. **
Implementation Notes / Suggestions
** If you have ideas about how this feature might be accomplished, put them here. Note that this is just a suggestion to the implementer, so feel free to speculate. **
Testing Notes / Suggestions
** All features in this project need tests. Please give some input on cases that will need to be tested - and how the testing might be implemented. **
The text was updated successfully, but these errors were encountered: