Classes | Functions | Variables
teleop_twist_keyboard Namespace Reference

Classes

class  PublishThread
 

Functions

def getKey (key_timeout)
 
def vels (speed, turn)
 

Variables

 key = getKey(key_timeout)
 
 key_timeout = rospy.get_param("~key_timeout", 0.0)
 
dictionary moveBindings
 
string msg
 
 pub_thread = PublishThread(repeat)
 
 repeat = rospy.get_param("~repeat_rate", 0.0)
 
 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)
 
int x = 0
 
int y = 0
 
int z = 0
 

Function Documentation

def teleop_twist_keyboard.getKey (   key_timeout)

Definition at line 150 of file teleop_twist_keyboard.py.

def teleop_twist_keyboard.vels (   speed,
  turn 
)

Definition at line 161 of file teleop_twist_keyboard.py.

Variable Documentation

teleop_twist_keyboard.key = getKey(key_timeout)

Definition at line 191 of file teleop_twist_keyboard.py.

teleop_twist_keyboard.key_timeout = rospy.get_param("~key_timeout", 0.0)

Definition at line 172 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 40 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 14 of file teleop_twist_keyboard.py.

teleop_twist_keyboard.pub_thread = PublishThread(repeat)

Definition at line 176 of file teleop_twist_keyboard.py.

teleop_twist_keyboard.repeat = rospy.get_param("~repeat_rate", 0.0)

Definition at line 171 of file teleop_twist_keyboard.py.

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

Definition at line 165 of file teleop_twist_keyboard.py.

teleop_twist_keyboard.speed = rospy.get_param("~speed", 0.5)

Definition at line 169 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 61 of file teleop_twist_keyboard.py.

int teleop_twist_keyboard.status = 0

Definition at line 182 of file teleop_twist_keyboard.py.

int teleop_twist_keyboard.th = 0

Definition at line 181 of file teleop_twist_keyboard.py.

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

Definition at line 170 of file teleop_twist_keyboard.py.

int teleop_twist_keyboard.x = 0

Definition at line 178 of file teleop_twist_keyboard.py.

int teleop_twist_keyboard.y = 0

Definition at line 179 of file teleop_twist_keyboard.py.

int teleop_twist_keyboard.z = 0

Definition at line 180 of file teleop_twist_keyboard.py.



teleop_twist_keyboard
Author(s): Graylin Trevor Jay
autogenerated on Thu Jul 2 2020 03:51:51