Package baxter_interface :: Module analog_io :: Class AnalogIO
[hide private]
[frames] | no frames]

Class AnalogIO

source code

object --+
         |
        AnalogIO

Interface class for a simple Analog Input and/or Output on the Baxter robot.

Input

Output

Instance Methods [hide private]
 
__init__(self, component_id)
Constructor.
source code
 
_on_io_state(self, msg)
Updates the internally stored state of the Analog Input/Output.
source code
 
state(self)
Return the latest value of the Analog Input/Output.
source code
 
is_output(self)
Accessor to check if IO is capable of output.
source code
 
set_output(self, value, timeout=2.0)
Control the state of the Analog Output.
source code

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, component_id)
(Constructor)

source code 

Constructor.

Parameters:
  • component_id - unique id of analog component
Overrides: object.__init__

set_output(self, value, timeout=2.0)

source code 

Control the state of the Analog Output.

Parameters:
  • value (uint16) - new state of the Output.
  • timeout (float) - Seconds to wait for the io to reflect command. If 0, just command once and return. [0]