This program is porting rosserial_arduino for mbed http://www.ros.org/wiki/rosserial_arduino This program supported the revision of 169 of rosserial.

Dependencies:  

Dependents:   rosserial_mbed robot_S2

Revision:
0:77afd7560544
Child:
1:ff0ec969dad1
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ros/msg_receiver.h	Fri Aug 19 09:06:30 2011 +0000
@@ -0,0 +1,27 @@
+/*
+ * msg_receiver.h
+ *
+ *  Created on: Aug 5, 2011
+ *      Author: astambler
+ */
+
+#ifndef MSG_RECEIVER_H_
+#define MSG_RECEIVER_H_
+
+namespace ros{
+
+/* Base class for objects recieving messages (Services and Subscribers) */
+  class MsgReceiver
+  {
+    public:
+        virtual void receive(unsigned char *data)=0;
+
+        //Distinguishes between different receiver types
+        virtual int _getType()=0;
+        virtual const char * getMsgType()=0;
+        int id_;
+        const char * topic_;
+  };
+}
+
+#endif /* MSG_RECEIVER_H_ */