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:
4:2cbca0ac2569
Parent:
3:dff241b66f84
--- a/tests/time_test.cpp	Sat Nov 12 23:53:04 2011 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,31 +0,0 @@
-//#define COMPILE_TIME_CODE_ROSSERIAL
-#ifdef COMPILE_TIME_CODE_ROSSERIAL
-
-/*
- * rosserial::std_msgs::Time Test
- * Publishes current time
- */
-
-#include "mbed.h"
-#include <ros.h>
-#include <ros/time.h>
-#include <std_msgs/Time.h>
-
-
-ros::NodeHandle  nh;
-
-std_msgs::Time test;
-ros::Publisher p("my_topic", &test);
-
-int main() {
-    nh.initNode();
-    nh.advertise(p);
-
-    while (1) {
-        test.data = nh.now();
-        p.publish( &test );
-        nh.spinOnce();
-        wait_ms(10);
-    }
-}
-#endif
\ No newline at end of file