Functions | Variables
xbot_keyboard_teleop 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 xbot_keyboard_teleop.getKey ( )

Definition at line 61 of file xbot_keyboard_teleop.py.

def xbot_keyboard_teleop.vels (   speed,
  turn 
)

Definition at line 69 of file xbot_keyboard_teleop.py.

Variable Documentation

xbot_keyboard_teleop.key = getKey()

Definition at line 90 of file xbot_keyboard_teleop.py.

dictionary xbot_keyboard_teleop.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 31 of file xbot_keyboard_teleop.py.

string xbot_keyboard_teleop.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 For Holonomic mode (strafing), hold down the shift key:
9 ---------------------------
10  U I O
11  J K L
12  M < >
13 t : up (+z)
14 b : down (-z)
15 anything else : stop
16 q/z : increase/decrease max speeds by 10%
17 w/x : increase/decrease only linear speed by 10%
18 e/c : increase/decrease only angular speed by 10%
19 CTRL-C to quit
20 """

Definition at line 10 of file xbot_keyboard_teleop.py.

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

Definition at line 75 of file xbot_keyboard_teleop.py.

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

Definition at line 73 of file xbot_keyboard_teleop.py.

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

Definition at line 78 of file xbot_keyboard_teleop.py.

dictionary xbot_keyboard_teleop.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 52 of file xbot_keyboard_teleop.py.

int xbot_keyboard_teleop.status = 0

Definition at line 84 of file xbot_keyboard_teleop.py.

int xbot_keyboard_teleop.th = 0

Definition at line 83 of file xbot_keyboard_teleop.py.

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

Definition at line 79 of file xbot_keyboard_teleop.py.

xbot_keyboard_teleop.twist = Twist()

Definition at line 112 of file xbot_keyboard_teleop.py.

int xbot_keyboard_teleop.x = 0

Definition at line 80 of file xbot_keyboard_teleop.py.

int xbot_keyboard_teleop.y = 0

Definition at line 81 of file xbot_keyboard_teleop.py.

int xbot_keyboard_teleop.z = 0

Definition at line 82 of file xbot_keyboard_teleop.py.



xbot_description
Author(s): Roc, wangpeng@droid.ac.cn
autogenerated on Sat Oct 10 2020 03:27:35