Tekkotsu Homepage | Demos | Overview | Downloads | Dev. Resources | Reference | Credits |
WalkCalibration Class Reference#include <WalkCalibration.h>
Inheritance diagram for WalkCalibration:
![]() Detailed Descriptionallows interactive calibration of a walk engineIn retrospect, this might have been a little easier to do as a ControlBase/StateNode multiple inheritance instead of ControlBase/EventListener... oh well. Definition at line 17 of file WalkCalibration.h.
Member Enumeration Documentation
Definition at line 46 of file WalkCalibration.h.
allows representation of the current sample type
Definition at line 57 of file WalkCalibration.h.
Constructor & Destructor Documentation
don't call
Member Function Documentation
Called when the control is activated (or the control system is reactivating). Takes the id number of a LedMC which the control should use, maintained by Controller. Controls share the display which is passed, and may use the socket gui to communicate with the GUI controller, if it is connected.
Reimplemented from ControlBase. Definition at line 187 of file WalkCalibration.cc.
called when the child has deactivated and this control should refresh its display, or some other event (such as the user pressing the refresh button) has happened to cause a refresh to be needed
Reimplemented from ControlBase. Definition at line 193 of file WalkCalibration.cc. Referenced by doSelect(), processEvent(), and takeInput().
called when this control is being popped from the control stack
Reimplemented from ControlBase. Definition at line 29 of file WalkCalibration.h.
when the user has trigger an "open selection" - default is to return the hilighted control*/ The value which is returned is then activate()ed and pushed on the Controller's stack Reimplemented from ControlBase. Definition at line 218 of file WalkCalibration.cc.
listens for locomotion events so we know when to stop recording
Implements EventListener. Definition at line 286 of file WalkCalibration.cc.
called when the user has supplied a text string (may or may not have been prompted by doReadStdIn()! May not even be active yet - the user can direct the same input to a set of hilighted menus) The value which is returned is then activate()ed and pushed on the Controller's stack Reimplemented from ControlBase. Definition at line 301 of file WalkCalibration.cc.
sets the hilighted slots
Reimplemented from ControlBase. Definition at line 338 of file WalkCalibration.cc.
sets the hilight to the first non-null slot
Reimplemented from ControlBase. Definition at line 351 of file WalkCalibration.cc. Referenced by setupClear().
does the work of loading data sets
Definition at line 365 of file WalkCalibration.cc. Referenced by refresh().
does the work of saving data sets
Definition at line 389 of file WalkCalibration.cc. Referenced by refresh().
clears current data
Definition at line 411 of file WalkCalibration.cc. Referenced by doSelect(), and loadData().
sets state to root menu
Definition at line 417 of file WalkCalibration.cc. Referenced by doSelect(), and WalkCalibration().
sets state to choose type menu
Definition at line 429 of file WalkCalibration.cc. Referenced by doSelect().
sets state to ready menu
Definition at line 453 of file WalkCalibration.cc. Referenced by doSelect(), and takeInput().
sets state to moving menu
Definition at line 543 of file WalkCalibration.cc. Referenced by doSelect().
sets state to enter first measurement menu
Definition at line 603 of file WalkCalibration.cc. Referenced by processEvent().
sets state to enter second measurement menu
Definition at line 620 of file WalkCalibration.cc. Referenced by setupReading1(), and takeInput().
sets state to clear confirmation menu
Definition at line 638 of file WalkCalibration.cc. Referenced by doSelect().
returns current sample type
returns a name index for the first measurement type
Definition at line 650 of file WalkCalibration.cc. Referenced by setupChoose(), setupMoving(), and setupReady().
returns a name index for the second measurement type
Definition at line 667 of file WalkCalibration.cc. Referenced by setupChoose(), setupMoving(), and setupReady().
returns name for measurement type
Definition at line 683 of file WalkCalibration.cc. Referenced by setupChoose(), setupMoving(), and setupReady().
returns name for first measurement type
Definition at line 697 of file WalkCalibration.cc. Referenced by processEvent(), setupReading1(), and takeInput().
returns name for second measurement type
Definition at line 721 of file WalkCalibration.cc. Referenced by processEvent(), setupReading2(), and takeInput().
calculates arc distance corresponding to a displacement and angle, negated if necessary to match sign
Definition at line 740 of file WalkCalibration.cc. Referenced by addSample().
adds data point corresponding to measurements stored in firstIn and secondIn
Definition at line 798 of file WalkCalibration.cc. Referenced by takeInput().
adds data point to dat for a given x,y,a (and old_x, old_y, old_a)
Definition at line 880 of file WalkCalibration.cc.
reports data as they are being taken
Definition at line 859 of file WalkCalibration.cc. Referenced by addSample().
pops up an error message on the controller and also displays it on the console
Definition at line 870 of file WalkCalibration.cc. Referenced by loadData(), saveData(), setupMoving(), and takeInput().
don't call
Member Data Documentation
the currently active state
Referenced by doSelect(), hilightFirst(), processEvent(), refresh(), setHilights(), setupChoose(), setupClear(), setupMoving(), setupReading1(), setupReading2(), setupReady(), setupRoot(), and takeInput().
the currently selected type of data being recorded
Referenced by addSample(), doSelect(), processEvent(), refresh(), setupMoving(), setupReading1(), setupReading2(), setupReady(), and takeInput().
the x velocity recorded when we started moving
Definition at line 92 of file WalkCalibration.h. Referenced by addSample(), and setupMoving().
the y velocity recorded when we started moving
Definition at line 93 of file WalkCalibration.h. Referenced by addSample(), and setupMoving().
the a velocity recorded when we started moving
Definition at line 94 of file WalkCalibration.h. Referenced by addSample(), and setupMoving().
the time recording started
Definition at line 95 of file WalkCalibration.h. Referenced by addSample(), processEvent(), and setupMoving().
the time recording stopped
Definition at line 96 of file WalkCalibration.h. Referenced by addSample(), and processEvent().
control holding help info
Definition at line 98 of file WalkCalibration.h. Referenced by setupRoot(), WalkCalibration(), and ~WalkCalibration().
control for loading data
Definition at line 99 of file WalkCalibration.h. Referenced by refresh(), setupRoot(), WalkCalibration(), and ~WalkCalibration().
control for saving data
Definition at line 100 of file WalkCalibration.h. Referenced by refresh(), setupRoot(), WalkCalibration(), and ~WalkCalibration().
control for taking measurements
Definition at line 101 of file WalkCalibration.h. Referenced by doSelect(), setupRoot(), WalkCalibration(), and ~WalkCalibration().
control for clearing data
Definition at line 102 of file WalkCalibration.h. Referenced by doSelect(), setupRoot(), WalkCalibration(), and ~WalkCalibration().
control for selecting polar measurements for fs/bs
Definition at line 103 of file WalkCalibration.h. Referenced by doSelect(), refresh(), setHilights(), and setupReady().
control for selecting cartesian measurements for fs/bs
Definition at line 104 of file WalkCalibration.h. Referenced by doSelect(), setHilights(), and setupReady().
true if polar measurements is selected
Definition at line 105 of file WalkCalibration.h. Referenced by addSample(), getFirstMeasure(), getSecondMeasure(), refresh(), and setupReady().
name last data file selected (so we know if a new has been selected
Definition at line 106 of file WalkCalibration.h. Referenced by refresh().
the input given for the first measurement
Definition at line 108 of file WalkCalibration.h. Referenced by addSample(), and takeInput().
the input given for the second measurement
Definition at line 109 of file WalkCalibration.h. Referenced by addSample(), and takeInput().
an array of vectors of sample points (one veotor for each of the sample types)
Definition at line 110 of file WalkCalibration.h. Referenced by addSample(), doSelect(), and refresh().
count of samples for each sample type (cnts[i] should equal data[i].size())
Definition at line 111 of file WalkCalibration.h. Referenced by addSample(), doSelect(), refresh(), setupClear(), and WalkCalibration().
name for each sample type
Definition at line 112 of file WalkCalibration.h. Referenced by refresh().
string to send for ControllerGUI status message (current count of each sample type)
Definition at line 114 of file WalkCalibration.h. Referenced by refresh(), setupClear(), and setupRoot().
The documentation for this class was generated from the following files: |
Tekkotsu v4.0 |
Generated Thu Nov 22 00:58:47 2007 by Doxygen 1.5.4 |