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

Specify recording time for a ros2 bag #1857

Open
paoloelle opened this issue Nov 15, 2024 · 1 comment
Open

Specify recording time for a ros2 bag #1857

paoloelle opened this issue Nov 15, 2024 · 1 comment
Labels
backlog Not assigned and not immediately planned enhancement New feature or request help wanted Extra attention is needed

Comments

@paoloelle
Copy link

Description

I would like to have a flag that allows to specify the time length of a record of a ros2 bag.

Related Issues

I cannot specify the time length when I want to record a bag file. I need it since I will run the record from a bash file and the command timeout 10 ros2 bag record /topic_name doesn't work. If I run the same command directly from the terminal works.

Completion Criteria

  • have a flag that allow to specify the recording lenght
@paoloelle paoloelle added the enhancement New feature or request label Nov 15, 2024
@paoloelle
Copy link
Author

paoloelle commented Nov 15, 2024

An alternative solution that I found is by storing the PID:

ros2 bag record /topic_name
BAG_PID=$!
sleep time_length
kill $BAG_PID

@MichaelOrlov MichaelOrlov added help wanted Extra attention is needed backlog Not assigned and not immediately planned labels Nov 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog Not assigned and not immediately planned enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants