ROS 非阻塞读取键盘输入
int getch(){ static struct termios oldt, newt; tcgetattr( STDIN_FILENO, &oldt); // save old settings newt = oldt; newt.c_lflag &= ~(ICANON); // disable buffering newt.c_cc[VMIN] = 0; newt.c_cc[VT