Classes | |
class | TimeoutException |
Functions | |
def | getKey |
def | vels |
Variables | |
tuple | key = getKey() |
dictionary | moveBindings |
string | msg |
tuple | pub = rospy.Publisher('cmd_vel', Twist) |
tuple | settings = termios.tcgetattr(sys.stdin) |
float | speed = 0.1 |
dictionary | speedBindings |
int | status = 0 |
int | th = 0 |
float | turn = 0.1 |
tuple | twist = Twist() |
int | x = 0 |
int | y = 0 |
def youbot_keyboard_teleop.getKey | ( | ) |
Definition at line 53 of file youbot_keyboard_teleop.py.
def youbot_keyboard_teleop.vels | ( | speed, | |
turn | |||
) |
Definition at line 77 of file youbot_keyboard_teleop.py.
tuple youbot_keyboard_teleop::key = getKey() |
Definition at line 95 of file youbot_keyboard_teleop.py.
dictionary youbot_keyboard_teleop::moveBindings |
00001 { 00002 # x,y,tetha ratio 00003 'i':(1,0,0), # forwards 00004 'o':(1,0,-1), # forwards + rotation right 00005 'j':(0,1,0), # left 00006 'l':(0,-1,0), # right 00007 'u':(1,0,1), # forwards + rotation left 00008 ',':(-1,0,0), # backward 00009 '.':(0,0,-1), # turn right on spot 00010 'm':(0,0,1), # turn left on spot 00011 }
Definition at line 29 of file youbot_keyboard_teleop.py.
string youbot_keyboard_teleop::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 q/z : increase/decrease max speeds by 10% 00010 w/x : increase/decrease only linear speed by 10% 00011 e/c : increase/decrease only angular speed by 10% 00012 anything else : stop 00013 00014 CTRL-C to quit 00015 """
Definition at line 13 of file youbot_keyboard_teleop.py.
tuple youbot_keyboard_teleop::pub = rospy.Publisher('cmd_vel', Twist) |
Definition at line 83 of file youbot_keyboard_teleop.py.
tuple youbot_keyboard_teleop::settings = termios.tcgetattr(sys.stdin) |
Definition at line 81 of file youbot_keyboard_teleop.py.
list youbot_keyboard_teleop::speed = 0.1 |
Definition at line 74 of file youbot_keyboard_teleop.py.
dictionary youbot_keyboard_teleop::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 41 of file youbot_keyboard_teleop.py.
tuple youbot_keyboard_teleop::status = 0 |
Definition at line 89 of file youbot_keyboard_teleop.py.
int youbot_keyboard_teleop::th = 0 |
Definition at line 88 of file youbot_keyboard_teleop.py.
list youbot_keyboard_teleop::turn = 0.1 |
Definition at line 75 of file youbot_keyboard_teleop.py.
tuple youbot_keyboard_teleop::twist = Twist() |
Definition at line 115 of file youbot_keyboard_teleop.py.
int youbot_keyboard_teleop::x = 0 |
Definition at line 86 of file youbot_keyboard_teleop.py.
int youbot_keyboard_teleop::y = 0 |
Definition at line 87 of file youbot_keyboard_teleop.py.