Robotics ^___^ / Mbed 2 deprecated ROS_remote_car

Dependencies:   mbed ros_lib_indigo

Files at this revision

API Documentation at this revision

Comitter:
chenyichun
Date:
Thu Mar 30 04:19:27 2017 +0000
Parent:
0:d264484486c3
Commit message:
OOPS

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r d264484486c3 -r 9238d61200e0 main.cpp
--- a/main.cpp	Wed Mar 29 02:46:45 2017 +0000
+++ b/main.cpp	Thu Mar 30 04:19:27 2017 +0000
@@ -103,6 +103,10 @@
        vel_msg.angular.x = rotation_speed_ref_1;   //command1
        vel_msg.angular.y = rotation_speed_1;      //respond1
        vel_msg.angular.z = 0;
+       
+       p.publish(&vel_msg);
+       nh.spinOnce();
+       wait_ms(50);
     }   
 }