ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

after rosbag play, terminal can't enter password

asked 2022-08-24 07:06:35 -0500

VamosCC gravatar image

There is a matter in rosbag play. I just open a Terminal of ubuntu 18.04, which has been installed ros-melodic. Then I play a bag in the terminal, and stop it by 'ctrl+c'. And later, I can't switch terminal to root user, because terminal can't enter any interactive command, as shown in image below: image description

edit retag flag offensive close merge delete

Comments

Please do not use screenshots of text. Instead, we'd prefer that you copy/paste the text and format it with the 101010 button.

Mike Scheutzow gravatar image Mike Scheutzow  ( 2022-08-25 10:56:12 -0500 )edit
1

I replicated this issue. As a workaround, use this command at the terminal prompt:

stty sane

This command resets the tty settings.

Mike Scheutzow gravatar image Mike Scheutzow  ( 2022-08-25 11:22:44 -0500 )edit

Thanks for reply my question, and it is solved when I do that. Then I tried to find which param of stty changed by 'rosbag play'. I type below command at the terminal prompt:

stty

then I get this:

speed 38400 baud; line = 0;
-brkint -imaxbel iutf8

And after I play a bag and retype 'stty' , just find stty control param was added two uncanonical input :

speed 38400 baud; line = 0;
min = 0; time = 0;
-brkint -imaxbel iutf8
-icanon

So enable canonical input maybe great solution, just type below at the terminal prompt:

stty icanon

When check 'stty' in terminal, it change to normal, and terminal can enter interactive command again.

VamosCC gravatar image VamosCC  ( 2022-08-29 05:32:21 -0500 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2022-08-29 05:37:36 -0500

VamosCC gravatar image

updated 2022-09-05 07:37:02 -0500

'rosbag play' add two uncanonical input to stty param. The values for MIN and TIME are interpreted as integer values, not as character values.

min = 0; time = 0;
-icanon

So reenable canonical input maybe great solution, just type below at the terminal prompt:

stty icanon

When check 'stty' in terminal, it change to normal, and the terminal is allowed to input interactive command again.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2022-08-24 07:06:35 -0500

Seen: 70 times

Last updated: Sep 05 '22