Public Member Functions | Public Attributes
cyberglove_library.Cyberglove Class Reference

List of all members.

Public Member Functions

def __init__
def addValue
def callback_calibrated
def callback_raw
def createMap
def get_joints_names
def has_glove
def read_calibrated_average_value
def read_raw_average_value

Public Attributes

 calibrated
 calibrated_messages
 hasglove
 isFirstMessage
 joints
 liste
 map
 max_values
 raw
 raw_messages

Detailed Description

Interface to the Cyberglove publisher.

Definition at line 37 of file cyberglove_library.py.


Constructor & Destructor Documentation

def cyberglove_library.Cyberglove.__init__ (   self,
  max_values = 2 
)

Definition at line 41 of file cyberglove_library.py.


Member Function Documentation

def cyberglove_library.Cyberglove.addValue (   self,
  vector,
  value 
)
Fills a vector with the received values, and replaces the old values
when the vector is full
@param vector : the vector to fill (raw or calibrated)
@param value : the value to add

Definition at line 95 of file cyberglove_library.py.

Adds the last values received to the list of calibrated values
@param data: the message which called the callback

Definition at line 88 of file cyberglove_library.py.

def cyberglove_library.Cyberglove.callback_raw (   self,
  data 
)
Adds the last values received to the list of raw values
@param data: the message which called the callback

Definition at line 81 of file cyberglove_library.py.

Maps the name of the joints to their index in the message

Definition at line 108 of file cyberglove_library.py.

Return an array containing the Cyberglove joints names

@return: the joints names array

Definition at line 148 of file cyberglove_library.py.

@return: True if a cyberglove is detected by ROS

Definition at line 156 of file cyberglove_library.py.

return the current positions for the given joint_name

@param joint_name:  the name of the joint
@return: the corresponding position

Definition at line 130 of file cyberglove_library.py.

def cyberglove_library.Cyberglove.read_raw_average_value (   self,
  joint_name 
)
return the raw value of a given joint

@param joint_name: the name of the glove of the Cyberglove

Definition at line 115 of file cyberglove_library.py.


Member Data Documentation

Definition at line 41 of file cyberglove_library.py.

Definition at line 41 of file cyberglove_library.py.

Definition at line 41 of file cyberglove_library.py.

Definition at line 41 of file cyberglove_library.py.

Definition at line 41 of file cyberglove_library.py.

Definition at line 41 of file cyberglove_library.py.

Definition at line 41 of file cyberglove_library.py.

Definition at line 41 of file cyberglove_library.py.

Definition at line 41 of file cyberglove_library.py.

Definition at line 41 of file cyberglove_library.py.


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


cyberglove
Author(s): Ugo Cupcic
autogenerated on Fri Jan 3 2014 12:04:16