|
Fawkes API
Fawkes Development Version
|
Log joystick data gathered via RemoteBlackBoard to console. More...

Public Member Functions | |
| JoystickBlackBoardLogger (ArgumentParser &argp, Logger *logger) | |
| Constructor. | |
| ~JoystickBlackBoardLogger () | |
| Destructor. | |
| virtual void | bb_interface_data_changed (Interface *interface) throw () |
| BlackBoard data changed notification. | |
| void | handle_signal (int signum) |
| Signal hanlding method. | |
| void | run () |
| Wait for quit signal from signal handler. | |
Public Member Functions inherited from fawkes::BlackBoardInterfaceListener | |
| BlackBoardInterfaceListener (const char *name_format,...) | |
| Constructor. | |
| virtual | ~BlackBoardInterfaceListener () |
| Destructor. | |
| const char * | bbil_name () const |
| Get BBIL name. | |
| virtual bool | bb_interface_message_received (Interface *interface, Message *message) throw () |
| BlackBoard message received notification. | |
| virtual void | bb_interface_writer_added (Interface *interface, unsigned int instance_serial) throw () |
| A writing instance has been opened for a watched interface. | |
| virtual void | bb_interface_writer_removed (Interface *interface, unsigned int instance_serial) throw () |
| A writing instance has been closed for a watched interface. | |
| virtual void | bb_interface_reader_added (Interface *interface, unsigned int instance_serial) throw () |
| A reading instance has been opened for a watched interface. | |
| virtual void | bb_interface_reader_removed (Interface *interface, unsigned int instance_serial) throw () |
| A reading instance has been closed for a watched interface. | |
Public Member Functions inherited from fawkes::SignalHandler | |
| virtual | ~SignalHandler () |
| Virtual destructor. | |
Additional Inherited Members | |
Public Types inherited from fawkes::BlackBoardInterfaceListener | |
| enum | QueueEntryType { DATA = 0, MESSAGES = 1, READER = 2, WRITER = 3 } |
| Queue entry type. More... | |
| typedef std::list< QueueEntry > | InterfaceQueue |
| Queue of additions/removal of interfaces. | |
| typedef std::map< std::string, Interface * > | InterfaceMap |
| Map of currently active event subscriptions. | |
Protected Member Functions inherited from fawkes::BlackBoardInterfaceListener | |
| void | bbil_add_data_interface (Interface *interface) |
| Add an interface to the data modification watch list. | |
| void | bbil_add_message_interface (Interface *interface) |
| Add an interface to the message received watch list. | |
| void | bbil_add_reader_interface (Interface *interface) |
| Add an interface to the reader addition/removal watch list. | |
| void | bbil_add_writer_interface (Interface *interface) |
| Add an interface to the writer addition/removal watch list. | |
| void | bbil_remove_data_interface (Interface *interface) |
| Remove an interface to the data modification watch list. | |
| void | bbil_remove_message_interface (Interface *interface) |
| Remove an interface to the message received watch list. | |
| void | bbil_remove_reader_interface (Interface *interface) |
| Remove an interface to the reader addition/removal watch list. | |
| void | bbil_remove_writer_interface (Interface *interface) |
| Remove an interface to the writer addition/removal watch list. | |
| Interface * | bbil_data_interface (const char *iuid) throw () |
| Get interface instance for given UID. | |
| Interface * | bbil_message_interface (const char *iuid) throw () |
| Get interface instance for given UID. | |
| Interface * | bbil_reader_interface (const char *iuid) throw () |
| Get interface instance for given UID. | |
| Interface * | bbil_writer_interface (const char *iuid) throw () |
| Get interface instance for given UID. | |
Log joystick data gathered via RemoteBlackBoard to console.
Definition at line 89 of file ffjoystick.cpp.
|
inline |
Constructor.
| argp | argument parser |
| logger | logger |
Just a quick hack for rumble testing __joystick_if->msgq_enqueue( new JoystickInterface::StartRumbleMessage(1000, 0, JoystickInterface::DIRECTION_UP, 0xFFFF, 0x8000));
Definition at line 98 of file ffjoystick.cpp.
References fawkes::Logger::log_debug(), fawkes::ArgumentParser::parse_hostport(), and fawkes::Interface::read().
|
inline |
Destructor.
Definition at line 130 of file ffjoystick.cpp.
|
inlinevirtual |
BlackBoard data changed notification.
This is called whenever the data in an interface that you registered for is modified. This happens if a writer calls the Interface::write() method.
| interface | interface instance that you supplied to bbil_add_data_interface() |
Reimplemented from fawkes::BlackBoardInterfaceListener.
Definition at line 136 of file ffjoystick.cpp.
References fawkes::Exception::print_trace().
|
inlinevirtual |
Signal hanlding method.
Implement this method with the action you want to perform on the registered signals.
| signum | signal number of triggered signal |
Implements fawkes::SignalHandler.
Definition at line 171 of file ffjoystick.cpp.
|
inline |
Wait for quit signal from signal handler.
Definition at line 177 of file ffjoystick.cpp.