From 1bceb66e0e5de74dc56e6291990b80ec8397b25a Mon Sep 17 00:00:00 2001 From: William Woodall Date: Sun, 15 Jan 2012 20:48:21 -0600 Subject: [PATCH] Fixing serial manifest.xml for ROS and replacing an accidental missing function --- include/serial/serial_listener.h | 17 +++++++++++++++++ manifest.xml | 4 ++++ 2 files changed, 21 insertions(+) diff --git a/include/serial/serial_listener.h b/include/serial/serial_listener.h index 42d30d8..a5a9f02 100644 --- a/include/serial/serial_listener.h +++ b/include/serial/serial_listener.h @@ -458,6 +458,23 @@ public: /***** Hooks and Handlers ******/ + /*! + * Sets the handler to be called when a lines is not caught by a filter. + * + * This allows you to set a catch all function that will get called + * everytime a line is not matched by a filter and the ttl expires. + * + * Setting the callbacks works just like SerialListener::setInfoHandler. + * + * \param default_handler A function pointer to the callback to handle + * unmatched and expired messages. + * + * \see serial::DataCallback, SerialListener::setInfoHandler + */ + void setDefaultHandler(DataCallback default_handler) { + this->default_handler = default_handler; + } + /*! * Sets the function to be called when an exception occurs internally. * diff --git a/manifest.xml b/manifest.xml index 64e44c9..1f2ff5c 100644 --- a/manifest.xml +++ b/manifest.xml @@ -8,6 +8,10 @@ BSD http://ros.org/wiki/serial + + + +