23from rclpy.node
import Node
25from std_msgs.msg
import UInt16
27settings = termios.tcgetattr(sys.stdin)
32 tty.setraw(sys.stdin.fileno())
33 select.select([sys.stdin], [], [], 0)
34 key = sys.stdin.read(1)
35 termios.tcsetattr(sys.stdin, termios.TCSADRAIN, settings)
42 self.
pub = self.create_publisher(UInt16,
"keyboard_unicode", 1)
56 except Exception
as e:
60 termios.tcsetattr(sys.stdin, termios.TCSADRAIN, settings)
77if __name__ ==
"__main__":