-
Notifications
You must be signed in to change notification settings - Fork 255
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
Rosbag service to manage rosbag complexity #1409
Comments
It seems like this utility node doesn't require any changes to the core - so I'm half inclined to leave it in a separate repository for now. It does look useful, but it doesn't have to live here, it can be independently released and maintained. |
Great work @bernatgaston ! Can you explain why this implementation is more usefull than the snapshot mode of rosbag2? I was intending on using that to control logging of robots during missions, as the snapshot mode can be triggered once something interesting happens. |
To be honest, I didn't know this package existed -_- , otherwise I would had probably used it. After reading its contents the only difference that I see is that in rosbag_snapshot, you always record last X seconds (or MB) and then you decide if you want to write them in memory. In our solution, you record from the trigger of the start to the trigger of the stop. My idea here was to have all the missions logged in a folder (which you can empty from time to time in a different process) and then compress to another folder just the ones that you want to last for more days. |
Maybe you're talking about https://github.com/ros/rosbag_snapshot/tree/ros2
Is not referring to an external package though, they were talking about the builtin capabilities of the rosbag2 recorder. Unfortunately I am realizing that they are not documented in the README! However, you can see all the services that are provided by default in the source here https://github.com/ros2/rosbag2/blob/rolling/rosbag2_transport/src/rosbag2_transport/recorder.cpp#L243
|
Description
I think it is interesting to have a service using rosbag so you can basically activate or deactivate the rosbag of certain topics. Hence, if you have for example a robot doing some missions, you can activate the rosbag when you start the mission and stop it at the end. Moreover, it can also be interesting to save a rosbag knowing that the mission was not successful so you can download this rosbag for later analysis.
We have developed a node to implement such functionalities. Basically it has 3 services:
You can find it here https://github.com/movvo/rosbag2_service
Currently it only has humble branch, but rolling one may be easy to do.
We are opening this node. We are guessing if it may be of interest for the community to add it to rosbag2 packet.
Related Issues
N/A
Completion Criteria
If interested, we can merge such code into rosbag2
Implementation Notes / Suggestions
https://github.com/movvo/rosbag2_service
Testing Notes / Suggestions
N/A
The text was updated successfully, but these errors were encountered: