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

support rosbag play --loop in rospy.Timer #2257

Open
wants to merge 1 commit into
base: noetic-devel
Choose a base branch
from

Conversation

v4hn
Copy link
Contributor

@v4hn v4hn commented Jul 6, 2022

I fail to understand why this issue still exists after all these years, though I really should not be surprised...

Without the patch the Timer thread just dies on rosbag loop with no way of detecting and restarting it easily.
The patch changes the behavior to assume it slept enough and calls the callback again.
If the callback logic requires resets, this can be detected from the TimerEvent passed to the callback.

This addresses a use case that is currently fully broken, so there is no need to worry about incompatible behavior.

I fail to understand why this issue still exists after all these years.
Without the patch the Timer thread just dies on rosbag loop *with no way of detecting and restarting it* easily.
Instead the patch changes the behavior to assume it slept enough and calls the callback.
If application logic requires resets, this can be detected from the TimerEvent passed to the callback.
tamspr2 pushed a commit to TAMS-Group/jsk_recognition that referenced this pull request Jul 6, 2022
due to rosbag loop. Without this patch, the buffer fills up continuously.

This relies on ros/ros_comm#2257 to fix rospy.Timer
with rosbag loops as well.
tamspr2 pushed a commit to TAMS-Group/jsk_recognition that referenced this pull request Jul 6, 2022
due to rosbag loop. Without this patch, the buffer fills up continuously.

This relies on ros/ros_comm#2257 to fix rospy.Timer
with rosbag loops as well.
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.

1 participant