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.


Member Function Documentation

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

Definition at line 41 of file cyberglove_library.py.

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.

def cyberglove_library::Cyberglove::callback_calibrated (   self,
  data 
)
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.

def cyberglove_library::Cyberglove::createMap (   self  ) 
Maps the name of the joints to their index in the message

Definition at line 108 of file cyberglove_library.py.

def cyberglove_library::Cyberglove::get_joints_names (   self  ) 
Return an array containing the Cyberglove joints names

@return: the joints names array

Definition at line 148 of file cyberglove_library.py.

def cyberglove_library::Cyberglove::has_glove (   self  ) 
@return: True if a cyberglove is detected by ROS

Definition at line 156 of file cyberglove_library.py.

def cyberglove_library::Cyberglove::read_calibrated_average_value (   self,
  joint_name 
)
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 73 of file cyberglove_library.py.

Definition at line 66 of file cyberglove_library.py.

Definition at line 69 of file cyberglove_library.py.

Definition at line 70 of file cyberglove_library.py.

Definition at line 42 of file cyberglove_library.py.

Definition at line 71 of file cyberglove_library.py.

Definition at line 68 of file cyberglove_library.py.

Definition at line 67 of file cyberglove_library.py.

Definition at line 72 of file cyberglove_library.py.

Definition at line 65 of file cyberglove_library.py.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines


cyberglove
Author(s): Ugo Cupcic
autogenerated on Fri Jan 11 11:37:57 2013