Functions | Variables
key_read Namespace Reference

Functions

def shutdownHook ()
 

Variables

 basicfont = pygame.font.SysFont(None, 38)
 
 centerx
 
 centery
 
int count = 1
 
dictionary keyBindings
 
int n = len(screenMsg)+1
 
 pub = rospy.Publisher('keys/cmd_vel', Twist, queue_size = 3)
 
 r = rospy.Rate(100)
 
bool running = True
 
 screen = pygame.display.set_mode((600,600))
 
string screenMsg
 
int speed = 1
 PARAMETERS ##########. More...
 
dictionary speedBindings
 
string startMsg
 
 text = basicfont.render(word, True, (0, 0, 0))
 
 textrect = text.get_rect()
 
int th = 0
 
int turnspeed = 1
 
 twist = Twist()
 
int x = 0
 
int y = 0
 
int z = 0
 

Function Documentation

def key_read.shutdownHook ( )

Definition at line 68 of file key_read.py.

Variable Documentation

key_read.basicfont = pygame.font.SysFont(None, 38)

Definition at line 96 of file key_read.py.

key_read.centerx

Definition at line 102 of file key_read.py.

key_read.centery

Definition at line 103 of file key_read.py.

int key_read.count = 1

Definition at line 97 of file key_read.py.

dictionary key_read.keyBindings
Initial value:
1 = {
2  'd':(0,0,1), #right
3  'D':(0,0,1),#
4  'a':(0,0,-1),
5  'A':(0,0,-1),
6  's':(0,-1,0),
7  'S':(0,-1,0),
8  'w':(0,1,0),
9  'W':(0,1,0),
10  ## these are for the diagonal + rotational movement
11  # 'q':(0,1,-1),
12  # 'Q':(0,1,-1),
13  # 'e':(0,1,1),
14  # 'E':(0,1,1),
15  ## these are for the horizontal translation
16  'q':(-1,0,0),
17  'Q':(-1,0,0),
18  'e':(1,0,0),
19  'E':(1,0,0),
20 
21  }

Definition at line 40 of file key_read.py.

int key_read.n = len(screenMsg)+1

Definition at line 85 of file key_read.py.

key_read.pub = rospy.Publisher('keys/cmd_vel', Twist, queue_size = 3)

Definition at line 73 of file key_read.py.

key_read.r = rospy.Rate(100)

Definition at line 88 of file key_read.py.

bool key_read.running = True

Definition at line 84 of file key_read.py.

key_read.screen = pygame.display.set_mode((600,600))

Definition at line 79 of file key_read.py.

key_read.screenMsg
Initial value:
1 = """
2 NAVIGATION INSTRUCTIONS
3 
4 W : forward
5 S : back
6 Q : left
7 E : right
8 A : rotate left
9 D : rotate right
10 
11 J : increase speed
12 K : reset speed to default
13 L : lower speed
14 
15 P : quit
16 
17 Enjoy!
18 """

Definition at line 19 of file key_read.py.

int key_read.speed = 1

PARAMETERS ##########.

Definition at line 91 of file key_read.py.

dictionary key_read.speedBindings
Initial value:
1 = {
2  'j': 1.1,
3  'k': 1,
4  'l': 0.9,
5  }

Definition at line 62 of file key_read.py.

string key_read.startMsg
Initial value:
1 = """
2 Hello User! Lookin' good today
3 Reading from Keyboard, Publishing to keys/cmd_vel
4 CTRL-C to quit
5 """

Definition at line 13 of file key_read.py.

key_read.text = basicfont.render(word, True, (0, 0, 0))

Definition at line 100 of file key_read.py.

key_read.textrect = text.get_rect()

Definition at line 101 of file key_read.py.

int key_read.th = 0

Definition at line 83 of file key_read.py.

int key_read.turnspeed = 1

Definition at line 92 of file key_read.py.

key_read.twist = Twist()

Definition at line 137 of file key_read.py.

int key_read.x = 0

Definition at line 81 of file key_read.py.

int key_read.y = 0

Definition at line 82 of file key_read.py.

key_read.z = 0

Definition at line 134 of file key_read.py.



hebiros_advanced_examples
Author(s): Xavier Artache , Matthew Tesch
autogenerated on Thu Sep 3 2020 04:13:22