Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes | List of all members
key_teleop.SimpleKeyTeleop Class Reference

Public Member Functions

def __init__ (self, interface)
 
def run (self)
 

Static Public Attributes

dictionary movement_bindings
 

Private Member Functions

def _get_twist (self, linear, angular)
 
def _key_pressed (self, keycode)
 
def _publish (self)
 
def _set_velocity (self)
 

Private Attributes

 _angular
 
 _backward_rate
 
 _forward_rate
 
 _hz
 
 _interface
 
 _last_pressed
 
 _linear
 
 _pub_cmd
 
 _rotation_rate
 
 _running
 

Detailed Description

Definition at line 178 of file key_teleop.py.

Constructor & Destructor Documentation

def key_teleop.SimpleKeyTeleop.__init__ (   self,
  interface 
)

Definition at line 179 of file key_teleop.py.

Member Function Documentation

def key_teleop.SimpleKeyTeleop._get_twist (   self,
  linear,
  angular 
)
private

Definition at line 212 of file key_teleop.py.

def key_teleop.SimpleKeyTeleop._key_pressed (   self,
  keycode 
)
private

Definition at line 238 of file key_teleop.py.

def key_teleop.SimpleKeyTeleop._publish (   self)
private

Definition at line 245 of file key_teleop.py.

def key_teleop.SimpleKeyTeleop._set_velocity (   self)
private

Definition at line 218 of file key_teleop.py.

def key_teleop.SimpleKeyTeleop.run (   self)

Definition at line 199 of file key_teleop.py.

Member Data Documentation

key_teleop.SimpleKeyTeleop._angular
private

Definition at line 189 of file key_teleop.py.

key_teleop.SimpleKeyTeleop._backward_rate
private

Definition at line 186 of file key_teleop.py.

key_teleop.SimpleKeyTeleop._forward_rate
private

Definition at line 185 of file key_teleop.py.

key_teleop.SimpleKeyTeleop._hz
private

Definition at line 183 of file key_teleop.py.

key_teleop.SimpleKeyTeleop._interface
private

Definition at line 180 of file key_teleop.py.

key_teleop.SimpleKeyTeleop._last_pressed
private

Definition at line 188 of file key_teleop.py.

key_teleop.SimpleKeyTeleop._linear
private

Definition at line 190 of file key_teleop.py.

key_teleop.SimpleKeyTeleop._pub_cmd
private

Definition at line 181 of file key_teleop.py.

key_teleop.SimpleKeyTeleop._rotation_rate
private

Definition at line 187 of file key_teleop.py.

key_teleop.SimpleKeyTeleop._running
private

Definition at line 201 of file key_teleop.py.

dictionary key_teleop.SimpleKeyTeleop.movement_bindings
static
Initial value:
1 = {
2  curses.KEY_UP: ( 1, 0),
3  curses.KEY_DOWN: (-1, 0),
4  curses.KEY_LEFT: ( 0, 1),
5  curses.KEY_RIGHT: ( 0, -1),
6  }

Definition at line 192 of file key_teleop.py.


The documentation for this class was generated from the following file:


key_teleop
Author(s): Siegfried-A. Gevatter Pujals
autogenerated on Mon Jun 10 2019 15:31:10