You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When playing back a rosbag, there is a possibility to control the rate of the playback using keyboard arrows: UP ARROW increases the playback rate by 10%, and DOWN ARROW decreases by 10%. But this feature is unintuitive to use, as 10% is taken/added to the currently set rate. It makes it hard to adjust the rate, for example, from 100% rate to 200%. Also, it is impossible to go back to the last value (i.e. going from 100% to 90% and increasing the speed back up, gives 99% where 100% is expected).
Expected Behavior
The playback rate would be controlled either in fixed steps (10%, or 5% increments) or in fixed steps in relation to the initially defined playback rate.
The modification of the playback rate takes into account only the current playback rate and simply multiplies it by either 1.1 or 0.9.
To Reproduce
Start playing back a rosbag.
Decrease playback rate by 10% (press DOWN ARROW once).
Increase playback rate by 10% (press UP ARROW once).
Observe that the playback rate is reported as 0.99 (99%), where 1.0 (100%) is expected.
System (please complete the following information)
OS: Ubuntu 22.04
ROS 2 Distro: Dashing
Version: rolling
Additional context
I'd like to fix this myself. Please advise on whether to control the speed using steps (IMO, the "easier" approach) or to modify the playback rate by 10% based on the initially set playback rate (by arguments)
The text was updated successfully, but these errors were encountered:
Description
When playing back a rosbag, there is a possibility to control the rate of the playback using keyboard arrows: UP ARROW increases the playback rate by 10%, and DOWN ARROW decreases by 10%. But this feature is unintuitive to use, as 10% is taken/added to the currently set rate. It makes it hard to adjust the rate, for example, from 100% rate to 200%. Also, it is impossible to go back to the last value (i.e. going from 100% to 90% and increasing the speed back up, gives 99% where 100% is expected).
Expected Behavior
The playback rate would be controlled either in fixed steps (10%, or 5% increments) or in fixed steps in relation to the initially defined playback rate.
Actual Behavior
Link to the code in question: https://github.com/ros2/rosbag2/blob/rolling/rosbag2_transport/src/rosbag2_transport/player.cpp#L786-L791
The modification of the playback rate takes into account only the current playback rate and simply multiplies it by either
1.1
or0.9
.To Reproduce
System (please complete the following information)
Additional context
I'd like to fix this myself. Please advise on whether to control the speed using steps (IMO, the "easier" approach) or to modify the playback rate by 10% based on the initially set playback rate (by arguments)
The text was updated successfully, but these errors were encountered: