Tatsuya Yamamoto / Mbed 2 deprecated UV_Robot_Nucleo

Dependencies:   mbed X_NUCLEO_PLC01A1 ros_lib_melodic

Revision:
1:ef4b86795d79
Parent:
0:43eb9ccc1583
Child:
3:ea5cfd721b53
--- a/main.cpp	Sat Aug 08 23:54:01 2020 +0000
+++ b/main.cpp	Sat Aug 15 09:09:33 2020 +0000
@@ -1,30 +1,13 @@
 #include "mbed.h"
-//#include <ros.h>
-//#include <std_msgs/Float32.h>
-
-//
-//ros::NodeHandle nh;
-//std_msgs::Float32 msg;
-//ros::Publisher responser("response", &msg);
-//
-//void messageCb(const std_msgs::Float32& msg_sub)
-//{
-//       msg.data =msg_sub.data;
-//       responser.publish( &msg );
-//
-//}
-//
-//ros::Subscriber<std_msgs::Float32> sub("request", &messageCb);
+#include "uv_robot.h"
 
 int main()
 {
-//   nh.initNode();
-//   nh.subscribe(sub);
-//   nh.advertise(responser);
-//
-//   while (1) 
-//   {
-//       nh.spinOnce();
-//       wait_ms(1);
-//   }
+    UVRobot myRobot;
+    myRobot.init();
+    wait_ms(100);
+    myRobot.start();
+    while (1) {
+        
+    }
 }
\ No newline at end of file