Public Member Functions | Public Attributes | List of all members
sr_gui_cyberglove_calibrator.cyberglove_library.Cyberglove Class Reference

Public Member Functions

def __init__ (self, max_values=2, nb_sensors=22)
 
def addValue (self, vector, value)
 
def callback_calibrated (self, data)
 
def callback_raw (self, data)
 
def createMap (self)
 
def get_joints_names (self)
 
def has_glove (self)
 
def read_calibrated_average_value (self, joint_name)
 
def read_raw_average_value (self, joint_name)
 

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 40 of file cyberglove_library.py.

Constructor & Destructor Documentation

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

Definition at line 46 of file cyberglove_library.py.

Member Function Documentation

def sr_gui_cyberglove_calibrator.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 126 of file cyberglove_library.py.

def sr_gui_cyberglove_calibrator.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 119 of file cyberglove_library.py.

def sr_gui_cyberglove_calibrator.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 112 of file cyberglove_library.py.

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

Definition at line 139 of file cyberglove_library.py.

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

@return: the joints names array

Definition at line 182 of file cyberglove_library.py.

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

Definition at line 190 of file cyberglove_library.py.

def sr_gui_cyberglove_calibrator.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 163 of file cyberglove_library.py.

def sr_gui_cyberglove_calibrator.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 147 of file cyberglove_library.py.

Member Data Documentation

sr_gui_cyberglove_calibrator.cyberglove_library.Cyberglove.calibrated

Definition at line 103 of file cyberglove_library.py.

sr_gui_cyberglove_calibrator.cyberglove_library.Cyberglove.calibrated_messages

Definition at line 95 of file cyberglove_library.py.

sr_gui_cyberglove_calibrator.cyberglove_library.Cyberglove.hasglove

Definition at line 98 of file cyberglove_library.py.

sr_gui_cyberglove_calibrator.cyberglove_library.Cyberglove.isFirstMessage

Definition at line 99 of file cyberglove_library.py.

sr_gui_cyberglove_calibrator.cyberglove_library.Cyberglove.joints

Definition at line 48 of file cyberglove_library.py.

sr_gui_cyberglove_calibrator.cyberglove_library.Cyberglove.liste

Definition at line 100 of file cyberglove_library.py.

sr_gui_cyberglove_calibrator.cyberglove_library.Cyberglove.map

Definition at line 97 of file cyberglove_library.py.

sr_gui_cyberglove_calibrator.cyberglove_library.Cyberglove.max_values

Definition at line 96 of file cyberglove_library.py.

sr_gui_cyberglove_calibrator.cyberglove_library.Cyberglove.raw

Definition at line 101 of file cyberglove_library.py.

sr_gui_cyberglove_calibrator.cyberglove_library.Cyberglove.raw_messages

Definition at line 94 of file cyberglove_library.py.


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


sr_gui_cyberglove_calibrator
Author(s): Ugo Cupcic
autogenerated on Wed Oct 14 2020 03:22:50