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:
3:dff241b66f84
--- a/std_msgs/ColorRGBA.h	Fri Aug 19 09:06:16 2011 +0000
+++ b/std_msgs/ColorRGBA.h	Sun Oct 16 07:17:43 2011 +0000
@@ -22,7 +22,7 @@
       int offset = 0;
       union {
         float real;
-        unsigned long base;
+        uint32_t base;
       } u_r;
       u_r.real = this->r;
       *(outbuffer + offset + 0) = (u_r.base >> (8 * 0)) & 0xFF;
@@ -32,7 +32,7 @@
       offset += sizeof(this->r);
       union {
         float real;
-        unsigned long base;
+        uint32_t base;
       } u_g;
       u_g.real = this->g;
       *(outbuffer + offset + 0) = (u_g.base >> (8 * 0)) & 0xFF;
@@ -42,7 +42,7 @@
       offset += sizeof(this->g);
       union {
         float real;
-        unsigned long base;
+        uint32_t base;
       } u_b;
       u_b.real = this->b;
       *(outbuffer + offset + 0) = (u_b.base >> (8 * 0)) & 0xFF;
@@ -52,7 +52,7 @@
       offset += sizeof(this->b);
       union {
         float real;
-        unsigned long base;
+        uint32_t base;
       } u_a;
       u_a.real = this->a;
       *(outbuffer + offset + 0) = (u_a.base >> (8 * 0)) & 0xFF;
@@ -68,7 +68,7 @@
       int offset = 0;
       union {
         float real;
-        unsigned long base;
+        uint32_t base;
       } u_r;
       u_r.base = 0;
       u_r.base |= ((typeof(u_r.base)) (*(inbuffer + offset + 0))) << (8 * 0);
@@ -79,7 +79,7 @@
       offset += sizeof(this->r);
       union {
         float real;
-        unsigned long base;
+        uint32_t base;
       } u_g;
       u_g.base = 0;
       u_g.base |= ((typeof(u_g.base)) (*(inbuffer + offset + 0))) << (8 * 0);
@@ -90,7 +90,7 @@
       offset += sizeof(this->g);
       union {
         float real;
-        unsigned long base;
+        uint32_t base;
       } u_b;
       u_b.base = 0;
       u_b.base |= ((typeof(u_b.base)) (*(inbuffer + offset + 0))) << (8 * 0);
@@ -101,7 +101,7 @@
       offset += sizeof(this->b);
       union {
         float real;
-        unsigned long base;
+        uint32_t base;
       } u_a;
       u_a.base = 0;
       u_a.base |= ((typeof(u_a.base)) (*(inbuffer + offset + 0))) << (8 * 0);