Tatsuya Yamamoto / Mbed 2 deprecated UV_Robot_Nucleo

Dependencies:   mbed X_NUCLEO_PLC01A1 ros_lib_melodic

main.cpp

Committer:
yamadola
Date:
2020-08-08
Revision:
0:43eb9ccc1583
Child:
1:ef4b86795d79

File content as of revision 0:43eb9ccc1583:

#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);

int main()
{
//   nh.initNode();
//   nh.subscribe(sub);
//   nh.advertise(responser);
//
//   while (1) 
//   {
//       nh.spinOnce();
//       wait_ms(1);
//   }
}