We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
ros2 bag play
ros2 bag play exiting with code 2 by SIGINT or CTRL+C
SIGINT
CTRL+C
ros2 bag play shall exiting with code 0 by SIGINT or CTRL+C
** Steps to reproduce the behavior, e.g.
source ./install/setup.bash
ros2 bag play --loop src/ros2/rosbag2/rosbag2_tests/resources/cdr_test
ps -aux | grep "ros2 bag play"
PID
195930
kill -s 2 195930
or alternatively switch to the tmux panel 1 and pres CTRL+C 8. In tmux panel 1 run command
echo $?
echo $? will output exit code from last finished process.
Don't propagate KeyboardInterrupt exception from python code in
KeyboardInterrupt
rosbag2/ros2bag/ros2bag/verb/play.py
Line 210 in 5b8b658
try: player.play(storage_options, play_options) except KeyboardInterrupt: pass
The text was updated successfully, but these errors were encountered:
MichaelOrlov
Successfully merging a pull request may close this issue.
Description
ros2 bag play
exiting with code 2 bySIGINT
orCTRL+C
Expected Behavior
ros2 bag play
shall exiting with code 0 bySIGINT
orCTRL+C
Actual Behavior
ros2 bag play
exiting with code 2 bySIGINT
orCTRL+C
To Reproduce
** Steps to reproduce the behavior, e.g.
source ./install/setup.bash
ros2 bag play --loop src/ros2/rosbag2/rosbag2_tests/resources/cdr_test
ps -aux | grep "ros2 bag play"
PID
forros2 bag play
. For instance195930
kill -s 2 195930
or alternatively switch to the tmux panel 1 and pres
CTRL+C
8. In tmux panel 1 run command
echo $?
echo $?
will output exit code from last finished process.System (please complete the following information)
RCA
SIGINT
signal.ros2 bag play
verb.Proposed solution
Don't propagate
KeyboardInterrupt
exception from python code inrosbag2/ros2bag/ros2bag/verb/play.py
Line 210 in 5b8b658
use instead following try catch block.
The text was updated successfully, but these errors were encountered: