Functions | Variables
teleop_twist_keyboard Namespace Reference

Functions

def getKey ()
 
def vels (speed, turn)
 

Variables

 key = getKey()
 
dictionary moveBindings
 
string msg
 
 pub = rospy.Publisher('cmd_vel', Twist, queue_size = 1)
 
 settings = termios.tcgetattr(sys.stdin)
 
 speed = rospy.get_param("~speed", 0.5)
 
dictionary speedBindings
 
int status = 0
 
int th = 0
 
 turn = rospy.get_param("~turn", 1.0)
 
 twist = Twist()
 
int x = 0
 
int y = 0
 
int z = 0
 

Function Documentation

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.

Variable Documentation

teleop_twist_keyboard.key = getKey()

Definition at line 97 of file teleop_twist_keyboard.py.

dictionary teleop_twist_keyboard.moveBindings
Initial value:
1 = {
2  'i':(1,0,0,0),
3  'o':(1,0,0,-1),
4  'j':(0,0,0,1),
5  'l':(0,0,0,-1),
6  'u':(1,0,0,1),
7  ',':(-1,0,0,0),
8  '.':(-1,0,0,1),
9  'm':(-1,0,0,-1),
10  'O':(1,-1,0,0),
11  'I':(1,0,0,0),
12  'J':(0,1,0,0),
13  'L':(0,-1,0,0),
14  'U':(1,1,0,0),
15  '<':(-1,0,0,0),
16  '>':(-1,-1,0,0),
17  'M':(-1,1,0,0),
18  't':(0,0,1,0),
19  'b':(0,0,-1,0),
20  }

Definition at line 38 of file teleop_twist_keyboard.py.

string teleop_twist_keyboard.msg
Initial value:
1 = """
2 Reading from the keyboard and Publishing to Twist!
3 ---------------------------
4 Moving around:
5  u i o
6  j k l
7  m , .
8 
9 For Holonomic mode (strafing), hold down the shift key:
10 ---------------------------
11  U I O
12  J K L
13  M < >
14 
15 t : up (+z)
16 b : down (-z)
17 
18 anything else : stop
19 
20 q/z : increase/decrease max speeds by 10%
21 w/x : increase/decrease only linear speed by 10%
22 e/c : increase/decrease only angular speed by 10%
23 
24 CTRL-C to quit
25 """

Definition at line 12 of file teleop_twist_keyboard.py.

teleop_twist_keyboard.pub = rospy.Publisher('cmd_vel', Twist, queue_size = 1)

Definition at line 82 of file teleop_twist_keyboard.py.

teleop_twist_keyboard.settings = termios.tcgetattr(sys.stdin)

Definition at line 80 of file teleop_twist_keyboard.py.

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
Initial value:
1 = {
2  'q':(1.1,1.1),
3  'z':(.9,.9),
4  'w':(1.1,1),
5  'x':(.9,1),
6  'e':(1,1.1),
7  'c':(1,.9),
8  }

Definition at line 59 of file teleop_twist_keyboard.py.

int 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.

teleop_twist_keyboard.turn = rospy.get_param("~turn", 1.0)

Definition at line 86 of file teleop_twist_keyboard.py.

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.



teleop_twist_keyboard
Author(s): Graylin Trevor Jay
autogenerated on Sun Mar 10 2019 02:21:52