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

Dependencies:   rosserial_mbed_lib mbed Servo

Revision:
3:dff241b66f84
Parent:
1:098e75fd5ad2
diff -r 094e5153a559 -r dff241b66f84 ros/msg.h
--- a/ros/msg.h	Sun Oct 16 09:33:53 2011 +0000
+++ b/ros/msg.h	Sat Nov 12 23:53:04 2011 +0000
@@ -32,8 +32,8 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 
-#ifndef ROS_MSG_H_
-#define ROS_MSG_H_
+#ifndef _ROS_MSG_H_
+#define _ROS_MSG_H_
 
 
 namespace ros {
@@ -42,9 +42,10 @@
   class Msg
   {
     public:
-      virtual int serialize(unsigned char *outbuffer) = 0;
+      virtual int serialize(unsigned char *outbuffer) const = 0;
       virtual int deserialize(unsigned char *data) = 0;
       virtual const char * getType() = 0;
+      virtual const char * getMD5() = 0;
   };
 
 }