A utility to calibrate the cyberglove.
Definition at line 107 of file cyberglove_calibrer.py.
def sr_gui_cyberglove_calibrator.cyberglove_calibrer.CybergloveCalibrer.__init__ |
( |
|
self, |
|
|
|
description_function = default_description , |
|
|
|
nb_sensors = 22 |
|
) |
| |
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 113 of file cyberglove_calibrer.py.
def sr_gui_cyberglove_calibrator.cyberglove_calibrer.CybergloveCalibrer.all_steps_done |
( |
|
self | ) |
|
Check if all the steps were processed.
@return: True if all the steps were processed.
Definition at line 254 of file cyberglove_calibrer.py.
def sr_gui_cyberglove_calibrator.cyberglove_calibrer.CybergloveCalibrer.check_ranges |
( |
|
self | ) |
|
Check for zero range calibrations, also for min/max values (-> full sensor range not being used)
Definition at line 280 of file cyberglove_calibrer.py.
def sr_gui_cyberglove_calibrator.cyberglove_calibrer.CybergloveCalibrer.do_step_max |
( |
|
self, |
|
|
|
index |
|
) |
| |
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 221 of file cyberglove_calibrer.py.
def sr_gui_cyberglove_calibrator.cyberglove_calibrer.CybergloveCalibrer.do_step_min |
( |
|
self, |
|
|
|
index |
|
) |
| |
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 199 of file cyberglove_calibrer.py.
def sr_gui_cyberglove_calibrator.cyberglove_calibrer.CybergloveCalibrer.get_calibration_steps |
( |
|
self | ) |
|
Read the calibration steps from the xml file.
@return: 0 when the values were read.
Definition at line 139 of file cyberglove_calibrer.py.
def sr_gui_cyberglove_calibrator.cyberglove_calibrer.CybergloveCalibrer.is_step_done |
( |
|
self, |
|
|
|
joint_name |
|
) |
| |
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 244 of file cyberglove_calibrer.py.
def sr_gui_cyberglove_calibrator.cyberglove_calibrer.CybergloveCalibrer.load_calib |
( |
|
self, |
|
|
|
filename |
|
) |
| |
def sr_gui_cyberglove_calibrator.cyberglove_calibrer.CybergloveCalibrer.reorder_calibration |
( |
|
self | ) |
|
def sr_gui_cyberglove_calibrator.cyberglove_calibrer.CybergloveCalibrer.write_calibration_file |
( |
|
self, |
|
|
|
filepath |
|
) |
| |
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 300 of file cyberglove_calibrer.py.
sr_gui_cyberglove_calibrator.cyberglove_calibrer.CybergloveCalibrer.calibration_steps |
sr_gui_cyberglove_calibrator.cyberglove_calibrer.CybergloveCalibrer.cyberglove |
sr_gui_cyberglove_calibrator.cyberglove_calibrer.CybergloveCalibrer.description_function |
sr_gui_cyberglove_calibrator.cyberglove_calibrer.CybergloveCalibrer.joints |
sr_gui_cyberglove_calibrator.cyberglove_calibrer.CybergloveCalibrer.nb_sensors |
The documentation for this class was generated from the following file: