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:
1:098e75fd5ad2
Parent:
0:06fc856e99ca
Child:
2:094e5153a559
--- a/std_msgs/Int16.h	Fri Aug 19 09:06:16 2011 +0000
+++ b/std_msgs/Int16.h	Sun Oct 16 07:17:43 2011 +0000
@@ -12,14 +12,14 @@
   class Int16 : public ros::Msg
   {
     public:
-      short data;
+      int16_t data;
 
     virtual int serialize(unsigned char *outbuffer)
     {
       int offset = 0;
       union {
-        short real;
-        unsigned short base;
+        int16_t;
+        uint16_t base;
       } u_data;
       u_data.real = this->data;
       *(outbuffer + offset + 0) = (u_data.base >> (8 * 0)) & 0xFF;
@@ -32,8 +32,8 @@
     {
       int offset = 0;
       union {
-        short real;
-        unsigned short base;
+        int16_t real;
+        uint16_t base;
       } u_data;
       u_data.base = 0;
       u_data.base |= ((typeof(u_data.base)) (*(inbuffer + offset + 0))) << (8 * 0);