Public Member Functions | Public Attributes
sr_gui_cyberglove_calibrator.cyberglove_calibrer.CybergloveCalibrer Class Reference

List of all members.

Public Member Functions

def __init__
def all_steps_done
def do_step_max
def do_step_min
def get_calibration_steps
def is_step_done
def load_calib
def reorder_calibration
def write_calibration_file

Public Attributes

 calibration_steps
 cyberglove
 description_function
 joints

Detailed Description

A utility to calibrate the cyberglove.

Definition at line 106 of file cyberglove_calibrer.py.


Constructor & Destructor Documentation

Initialize some class variables: a table containing the calibration steps, a connection to the cyberglove
library and a description function for the calibration steps

@param description_function: specify a function you want to use to describe the calibration steps ( text /
pictures / animation / ... ). Must take a joint name as parameter.

Definition at line 112 of file cyberglove_calibrer.py.


Member Function Documentation

Check if all the steps were processed.

@return: True if all the steps were processed.

Definition at line 245 of file cyberglove_calibrer.py.

Run  the given step of the calibration, gets the max values.
As this method is called after the do_step_min() method, we don't display the description

@param index: the index of the step in the calibration file
@return: 0 when the values were read.

Definition at line 212 of file cyberglove_calibrer.py.

Run  the given step of the calibration, gets the min values.

@param index: the index of the step in the calibration file
@return: 0 when the values were read.

Definition at line 190 of file cyberglove_calibrer.py.

Read the calibration steps from the xml file.

@return: 0 when the values were read.

Definition at line 135 of file cyberglove_calibrer.py.

Check if the joint is calibrated.

@param joint_name: the name of the joint
@return: 1 if the joint has already been calibrated.

Definition at line 235 of file cyberglove_calibrer.py.

Definition at line 330 of file cyberglove_calibrer.py.

Reorder the calibration: set the raw_min to the min raw_value

Definition at line 257 of file cyberglove_calibrer.py.

Checks if all the steps were processed by calling self.all_steps_done()
Reorder the calibration
Then writes the whole calibration to a given file.

@param filepath: Where to write the calibration
@return: 0 if the file has been written,
-1 if the calibration is not finished yet,
-2 if other error

Definition at line 271 of file cyberglove_calibrer.py.


Member Data Documentation

Definition at line 118 of file cyberglove_calibrer.py.

Definition at line 118 of file cyberglove_calibrer.py.

Definition at line 118 of file cyberglove_calibrer.py.

Definition at line 118 of file cyberglove_calibrer.py.


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


sr_gui_cyberglove_calibrator
Author(s): Ugo Cupcic
autogenerated on Thu Jun 6 2019 21:13:53