Tekkotsu Homepage | Demos | Overview | Downloads | Dev. Resources | Reference | Credits |
CreateDriver Class Reference#include <CreateDriver.h>
Inheritance diagram for CreateDriver:
![]() Detailed Descriptiondescription of CreateDriverDefinition at line 101 of file CreateDriver.h.
Constructor & Destructor Documentation
Definition at line 103 of file CreateDriver.h.
Definition at line 109 of file CreateDriver.h.
Member Function Documentation
Returns the name of the class (aka its type). Suggested implementation is to declare a static string member, set it to the result of calling the registry's registerType, and then return that member here Implements DeviceDriver. Definition at line 111 of file CreateDriver.h.
Called when motion process is starting.
Reimplemented from MotionHook. Definition at line 14 of file CreateDriver.cc.
Called when motion process is stopping.
Reimplemented from MotionHook. Definition at line 29 of file CreateDriver.cc.
Called each time the motion process has polled active motion commands. When in realtime mode, this should be called every FrameTime*NumFrames (defined in the RobotInfo) milliseconds if running at full speed. See enteringRealtime() and leavingRealtime(). This default implementation checks to see which outputs have changed value since the last call and passes the summary on to motionUpdated(). lastOutputs will be updated with the new values after the call to motionUpdated(). If you need to process all the outputs on every frame, you only need to override this function. Your subclass doesn't need to call the MotionHook implementation unless you want to have lastOutputs updated for you. If you only need to process the changed outputs for each frame, override motionUpdated() instead. motionUpdated() is always called for each update, even if there aren't any changes, so you can still use that if there are some outputs which need to be updated every cycle. Reimplemented from MotionHook. Definition at line 39 of file CreateDriver.cc.
returns the simulator time of the next data segment should be in the future if nothing new since last data segment, otherwise should be the timestamp of the most recent data segment (older segments are skipped), return -1U if there is no more data
Implements DataSource. Definition at line 117 of file CreateDriver.cc.
returns a descriptive name of the next data segment for user feedback
Implements DataSource. Definition at line 124 of file CreateDriver.h. Referenced by getData().
called to retrieve the most recent data segment, or blocking until new data is available
This call should block until data is available. Other functions may be called asynchronously from other threads while in this function, see ThreadNS::Lock to implement mutual exclusion locks if needed. The input value of timestamp is a suggestion from the user's requested framerate -- try to return the frame closest to it. If it is already past (e.g. 0 on 'advance'), return the current data! If you return a timestamp in the future, the LoadDataThread will sleep until the appropriate time. Note that this can be called when the source is frozen, which means you should unfreeze, get the current (unread) data or block until the next data, freeze again, and return the data. Implements DataSource. Definition at line 390 of file CreateDriver.cc.
called by the LoadDataThread subclass, allows you to register for properties which your subclass may care about a pointer to the LoadDataThread is passed when this is becoming the current data source; NULL will be passed when the data source is no longer being used Reimplemented from DataSource. Definition at line 474 of file CreateDriver.cc.
Definition at line 93 of file CreateDriver.cc. Referenced by motionStarting(), plistValueChanged(), and setDataSourceThread().
forwards call to DataSource::providingOutput() if the index is valid
Definition at line 140 of file CreateDriver.h.
forwards call to DataSource::ignoringOutput() if the index is valid
Definition at line 142 of file CreateDriver.h.
converts the value s from specified input's signal to voltage
Definition at line 527 of file CreateDriver.cc.
converts the value cur and latch to the output format (0 if low, 0.5 if high but has been low, 1 if consistent high)
Definition at line 531 of file CreateDriver.cc.
Member Data Documentation
Definition at line 130 of file CreateDriver.h. Referenced by connect(), CreateDriver(), getData(), motionCheck(), motionStarting(), motionStopping(), nextTimestamp(), plistValueChanged(), and setDataSourceThread().
Definition at line 149 of file CreateDriver.h. Referenced by motionStarting(), motionStopping(), plistValueChanged(), and setDataSourceThread().
Definition at line 150 of file CreateDriver.h. Referenced by motionStopping(), plistValueChanged(), and setDataSourceThread().
holds the class name, set via registration with the DeviceDriver registry
Definition at line 156 of file CreateDriver.h. Referenced by getClassName().
The documentation for this class was generated from the following files: |
Tekkotsu Hardware Abstraction Layer 4.0 |
Generated Thu Nov 22 01:01:19 2007 by Doxygen 1.5.4 |