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
std_msgs/Empty.h@0:77afd7560544, 2011-08-19 (annotated)
- Committer:
- nucho
- Date:
- Fri Aug 19 09:06:30 2011 +0000
- Revision:
- 0:77afd7560544
- Child:
- 3:1cf99502f396
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
nucho | 0:77afd7560544 | 1 | #ifndef ros_Empty_h |
nucho | 0:77afd7560544 | 2 | #define ros_Empty_h |
nucho | 0:77afd7560544 | 3 | |
nucho | 0:77afd7560544 | 4 | #include <stdint.h> |
nucho | 0:77afd7560544 | 5 | #include <string.h> |
nucho | 0:77afd7560544 | 6 | #include <stdlib.h> |
nucho | 0:77afd7560544 | 7 | #include "../ros/msg.h" |
nucho | 0:77afd7560544 | 8 | |
nucho | 0:77afd7560544 | 9 | namespace std_msgs { |
nucho | 0:77afd7560544 | 10 | |
nucho | 0:77afd7560544 | 11 | class Empty : public ros::Msg { |
nucho | 0:77afd7560544 | 12 | public: |
nucho | 0:77afd7560544 | 13 | |
nucho | 0:77afd7560544 | 14 | virtual int serialize(unsigned char *outbuffer) { |
nucho | 0:77afd7560544 | 15 | int offset = 0; |
nucho | 0:77afd7560544 | 16 | return offset; |
nucho | 0:77afd7560544 | 17 | } |
nucho | 0:77afd7560544 | 18 | |
nucho | 0:77afd7560544 | 19 | virtual int deserialize(unsigned char *inbuffer) { |
nucho | 0:77afd7560544 | 20 | int offset = 0; |
nucho | 0:77afd7560544 | 21 | return offset; |
nucho | 0:77afd7560544 | 22 | } |
nucho | 0:77afd7560544 | 23 | |
nucho | 0:77afd7560544 | 24 | virtual const char * getType() { |
nucho | 0:77afd7560544 | 25 | return "std_msgs/Empty"; |
nucho | 0:77afd7560544 | 26 | }; |
nucho | 0:77afd7560544 | 27 | |
nucho | 0:77afd7560544 | 28 | }; |
nucho | 0:77afd7560544 | 29 | |
nucho | 0:77afd7560544 | 30 | } |
nucho | 0:77afd7560544 | 31 | #endif |