This program is porting rosserial_arduino for mbed http://www.ros.org/wiki/rosserial_arduino This program supported the revision of 169 of rosserial.
Dependents: rosserial_mbed robot_S2
Diff: ros/publisher.h
- Revision:
- 4:684f39d0c346
- Parent:
- 3:1cf99502f396
diff -r 1cf99502f396 -r 684f39d0c346 ros/publisher.h --- a/ros/publisher.h Sat Nov 12 23:54:45 2011 +0000 +++ b/ros/publisher.h Wed Feb 29 23:00:21 2012 +0000 @@ -38,7 +38,7 @@ #include "rosserial_msgs/TopicInfo.h" #include "node_handle.h" -namespace ros{ +namespace ros { /* Generic Publisher */ class Publisher @@ -53,10 +53,9 @@ int getEndpointType(){ return endpoint_; } const char * topic_; - Msg *msg_; // id_ and no_ are set by NodeHandle when we advertise - int16_t id_; + int id_; NodeHandleBase_* nh_; private: @@ -65,5 +64,4 @@ } - #endif \ No newline at end of file