Functions | |
def | getKey |
def | vels |
Variables | |
tuple | key = getKey() |
dictionary | moveBindings |
string | msg |
tuple | pub = rospy.Publisher('cmd_vel', Twist, queue_size = 1) |
tuple | settings = termios.tcgetattr(sys.stdin) |
tuple | speed = rospy.get_param("~speed", 0.5) |
dictionary | speedBindings |
int | status = 0 |
int | th = 0 |
tuple | turn = rospy.get_param("~turn", 1.0) |
tuple | twist = Twist() |
int | x = 0 |
int | y = 0 |
int | z = 0 |
def teleop_twist_keyboard.getKey | ( | ) |
Definition at line 68 of file teleop_twist_keyboard.py.
def teleop_twist_keyboard.vels | ( | speed, | |
turn | |||
) |
Definition at line 76 of file teleop_twist_keyboard.py.
tuple teleop_twist_keyboard::key = getKey() |
Definition at line 97 of file teleop_twist_keyboard.py.
dictionary teleop_twist_keyboard::moveBindings |
00001 { 00002 'i':(1,0,0,0), 00003 'o':(1,0,0,-1), 00004 'j':(0,0,0,1), 00005 'l':(0,0,0,-1), 00006 'u':(1,0,0,1), 00007 ',':(-1,0,0,0), 00008 '.':(-1,0,0,1), 00009 'm':(-1,0,0,-1), 00010 'O':(1,-1,0,0), 00011 'I':(1,0,0,0), 00012 'J':(0,1,0,0), 00013 'L':(0,-1,0,0), 00014 'U':(1,1,0,0), 00015 '<':(-1,0,0,0), 00016 '>':(-1,-1,0,0), 00017 'M':(-1,1,0,0), 00018 't':(0,0,1,0), 00019 'b':(0,0,-1,0), 00020 }
Definition at line 38 of file teleop_twist_keyboard.py.
string teleop_twist_keyboard::msg |
00001 """ 00002 Reading from the keyboard and Publishing to Twist! 00003 --------------------------- 00004 Moving around: 00005 u i o 00006 j k l 00007 m , . 00008 00009 For Holonomic mode (strafing), hold down the shift key: 00010 --------------------------- 00011 U I O 00012 J K L 00013 M < > 00014 00015 t : up (+z) 00016 b : down (-z) 00017 00018 anything else : stop 00019 00020 q/z : increase/decrease max speeds by 10% 00021 w/x : increase/decrease only linear speed by 10% 00022 e/c : increase/decrease only angular speed by 10% 00023 00024 CTRL-C to quit 00025 """
Definition at line 12 of file teleop_twist_keyboard.py.
tuple teleop_twist_keyboard::pub = rospy.Publisher('cmd_vel', Twist, queue_size = 1) |
Definition at line 82 of file teleop_twist_keyboard.py.
tuple teleop_twist_keyboard::settings = termios.tcgetattr(sys.stdin) |
Definition at line 80 of file teleop_twist_keyboard.py.
list teleop_twist_keyboard::speed = rospy.get_param("~speed", 0.5) |
Definition at line 85 of file teleop_twist_keyboard.py.
dictionary teleop_twist_keyboard::speedBindings |
00001 { 00002 'q':(1.1,1.1), 00003 'z':(.9,.9), 00004 'w':(1.1,1), 00005 'x':(.9,1), 00006 'e':(1,1.1), 00007 'c':(1,.9), 00008 }
Definition at line 59 of file teleop_twist_keyboard.py.
tuple teleop_twist_keyboard::status = 0 |
Definition at line 91 of file teleop_twist_keyboard.py.
int teleop_twist_keyboard::th = 0 |
Definition at line 90 of file teleop_twist_keyboard.py.
list teleop_twist_keyboard::turn = rospy.get_param("~turn", 1.0) |
Definition at line 86 of file teleop_twist_keyboard.py.
tuple teleop_twist_keyboard::twist = Twist() |
Definition at line 119 of file teleop_twist_keyboard.py.
int teleop_twist_keyboard::x = 0 |
Definition at line 87 of file teleop_twist_keyboard.py.
int teleop_twist_keyboard::y = 0 |
Definition at line 88 of file teleop_twist_keyboard.py.
int teleop_twist_keyboard::z = 0 |
Definition at line 89 of file teleop_twist_keyboard.py.