| Homepage | Demos | Overview | Downloads | Tutorials | Reference | Credits |
#include <EStopControllerBehavior.h>
Inheritance diagram for EStopControllerBehavior:

Definition at line 14 of file EStopControllerBehavior.h.
Public Member Functions | |
| EStopControllerBehavior (MotionManager::MC_ID estop) | |
| constructor | |
| virtual | ~EStopControllerBehavior () |
| destructor | |
| virtual void | DoStart () |
| By default, merely adds to the reference counter (through AddReference()) you should still call this from your overriding methods. | |
| virtual void | DoStop () |
By default, subtracts from the reference counter, and deletes if zero you should still call this when you override this call this at the end of your DoStop(), not beginning (it might delete this ). | |
| virtual void | processEvent (const EventBase &) |
| By defining here, allows you to get away with not supplying a processEvent() function for the EventListener interface. By default, does nothing. | |
| virtual std::string | getName () const |
| Identifies the behavior in menus and such. | |
| virtual void | runCommand (std::string s) |
| processes a string received from wireless | |
Static Public Member Functions | |
| int | callback (char *buf, int bytes) |
| called by wireless when there's new data | |
| std::string | getClassDescription () |
| Gives a short description of what this class of behaviors does... you should override this (but don't have to). | |
Static Public Attributes | |
| EStopControllerBehavior * | theOne = NULL |
Protected Attributes | |
| Socket * | cmdsock |
| The input command stream socket. | |
| MotionManager::MC_ID | estop_id |
| The estop to control. | |
Private Member Functions | |
| EStopControllerBehavior (const EStopControllerBehavior &) | |
| don't call | |
| EStopControllerBehavior | operator= (const EStopControllerBehavior &) |
| don't call | |
|
|
constructor
Definition at line 25 of file EStopControllerBehavior.h. References cmdsock, estop_id, MotionManager::MC_ID, Wireless::setDaemon(), SocketNS::SOCK_STREAM, theOne, and wireless. |
Here is the call graph for this function:

|
|
destructor
Definition at line 34 of file EStopControllerBehavior.h. |
|
|
don't call
|
|
||||||||||||
|
called by wireless when there's new data
Definition at line 53 of file EStopControllerBehavior.cc. References runCommand(), and theOne. |
Here is the call graph for this function:

|
|
By default, merely adds to the reference counter (through AddReference()) you should still call this from your overriding methods.
Reimplemented from BehaviorBase. Definition at line 7 of file EStopControllerBehavior.cc. References EventRouter::addListener(), callback(), cmdsock, config, BehaviorBase::DoStart(), erouter, Config::main_config::estopControl_port, EventBase::estopEGID, Wireless::listen(), Config::main, Wireless::setReceiver(), Socket::sock, and wireless. |
Here is the call graph for this function:

|
|
By default, subtracts from the reference counter, and deletes if zero you should still call this when you override this call this at the end of your DoStop(), not beginning (it might
Reimplemented from BehaviorBase. Definition at line 17 of file EStopControllerBehavior.cc. References Wireless::close(), cmdsock, BehaviorBase::DoStop(), erouter, EventRouter::forgetListener(), and wireless. |
Here is the call graph for this function:

|
|
Gives a short description of what this class of behaviors does... you should override this (but don't have to).
Reimplemented from BehaviorBase. Definition at line 43 of file EStopControllerBehavior.h. References config, Config::main_config::estopControl_port, and Config::main. |
|
|
Identifies the behavior in menus and such.
Implements BehaviorBase. Definition at line 42 of file EStopControllerBehavior.h. |
|
|
don't call
|
|
|
By defining here, allows you to get away with not supplying a processEvent() function for the EventListener interface. By default, does nothing.
Reimplemented from BehaviorBase. Definition at line 44 of file EStopControllerBehavior.cc. References EventBase::activateETID, cmdsock, EventBase::deactivateETID, EventBase::getTypeID(), and Socket::printf(). |
Here is the call graph for this function:

|
|
processes a string received from wireless
Definition at line 26 of file EStopControllerBehavior.cc. References MMAccessor< MC_t >::checkin(), cmdsock, estop_id, Socket::printf(), and serr. |
Here is the call graph for this function:

|
|
The input command stream socket.
Definition at line 53 of file EStopControllerBehavior.h. |
|
|
The estop to control.
Definition at line 56 of file EStopControllerBehavior.h. |
|
|
Points to the one EStopControllerBehavior object that the input command stream is talking to. A kludge. Dunno how you're gonna make sure you're not using this uninitialized. Definition at line 5 of file EStopControllerBehavior.cc. |
|
Tekkotsu v1.5 |
Generated Fri Oct 10 15:55:44 2003 by Doxygen 1.3.4 |