Package baxter_interface :: Module navigator :: Class Navigator
[hide private]
[frames] | no frames]

Class Navigator

source code

object --+
         |
        Navigator


Interface class for a Navigator on the Baxter robot.

Inputs:
    Button 0     - press wheel
    Button 1     - above wheel
    Button 2     - below wheel
    Scroll wheel - 0-255

Outputs:
    Inner LED
    Outer LED

Signals:
    button0_changed - True/False
    button1_changed - True/False
    button2_changed - True/False
    wheel_changed   - New wheel value

Valid identifiers:
    left, right, torso_left, torso_right

Instance Methods [hide private]
 
__init__(self, location)
Constructor.
source code
 
_on_state(self, msg) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  __LOCATIONS = ('left', 'right', 'torso_left', 'torso_right')
Properties [hide private]
  wheel
Current state of the wheel
  button0
Current state of button 0
  button1
Current state of button 1
  button2
Current state of button 2
  inner_led
Current state of the inner LED
  outer_led
Current state of the outer LED.

Inherited from object: __class__

Method Details [hide private]

__init__(self, location)
(Constructor)

source code 

Constructor.

Parameters:
  • location (str) - body location (prefix) of Navigator to control.

    Valid locations are in Navigator.__LOCATIONS:

     left, right, torso_left, torso_right
    
Overrides: object.__init__

Property Details [hide private]

wheel

Current state of the wheel

Get Method:
unreachable.wheel(self) - Current state of the wheel

button0

Current state of button 0

Get Method:
unreachable.button0(self) - Current state of button 0

button1

Current state of button 1

Get Method:
unreachable.button1(self) - Current state of button 1

button2

Current state of button 2

Get Method:
unreachable.button2(self) - Current state of button 2

inner_led

Current state of the inner LED

Get Method:
unreachable.inner_led(self) - Current state of the inner LED
Set Method:
unreachable.inner_led(self, enable) - Control the inner LED.

outer_led

Current state of the outer LED.

Get Method:
unreachable.outer_led(self) - Current state of the outer LED.
Set Method:
unreachable.outer_led(self, enable) - Control the outer LED.