![](/media/cache/profiles/94aef38441efa3380a3bed3faf1f9d5d.50x50_q85.jpg)
This program is porting rosserial_arduino for mbed http://www.ros.org/wiki/rosserial_arduino This program supported the revision of 169 of rosserial. This program contains an example.
Dependencies: rosserial_mbed_lib mbed Servo
std_msgs/Empty.h@3:dff241b66f84, 2011-11-12 (annotated)
- Committer:
- nucho
- Date:
- Sat Nov 12 23:53:04 2011 +0000
- Revision:
- 3:dff241b66f84
- Parent:
- 0:06fc856e99ca
This program supported the revision of 167 of rosserial.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
nucho | 3:dff241b66f84 | 1 | #ifndef _ROS_std_msgs_Empty_h |
nucho | 3:dff241b66f84 | 2 | #define _ROS_std_msgs_Empty_h |
nucho | 3:dff241b66f84 | 3 | |
nucho | 3:dff241b66f84 | 4 | #include <stdint.h> |
nucho | 3:dff241b66f84 | 5 | #include <string.h> |
nucho | 3:dff241b66f84 | 6 | #include <stdlib.h> |
nucho | 3:dff241b66f84 | 7 | #include "ros/msg.h" |
nucho | 3:dff241b66f84 | 8 | |
nucho | 3:dff241b66f84 | 9 | namespace std_msgs |
nucho | 3:dff241b66f84 | 10 | { |
nucho | 3:dff241b66f84 | 11 | |
nucho | 3:dff241b66f84 | 12 | class Empty : public ros::Msg |
nucho | 3:dff241b66f84 | 13 | { |
nucho | 3:dff241b66f84 | 14 | public: |
nucho | 3:dff241b66f84 | 15 | |
nucho | 3:dff241b66f84 | 16 | virtual int serialize(unsigned char *outbuffer) const |
nucho | 3:dff241b66f84 | 17 | { |
nucho | 3:dff241b66f84 | 18 | int offset = 0; |
nucho | 3:dff241b66f84 | 19 | return offset; |
nucho | 3:dff241b66f84 | 20 | } |
nucho | 3:dff241b66f84 | 21 | |
nucho | 3:dff241b66f84 | 22 | virtual int deserialize(unsigned char *inbuffer) |
nucho | 3:dff241b66f84 | 23 | { |
nucho | 3:dff241b66f84 | 24 | int offset = 0; |
nucho | 3:dff241b66f84 | 25 | return offset; |
nucho | 3:dff241b66f84 | 26 | } |
nucho | 3:dff241b66f84 | 27 | |
nucho | 3:dff241b66f84 | 28 | virtual const char * getType(){ return "std_msgs/Empty"; }; |
nucho | 3:dff241b66f84 | 29 | virtual const char * getMD5(){ return "d41d8cd98f00b204e9800998ecf8427e"; }; |
nucho | 3:dff241b66f84 | 30 | |
nucho | 3:dff241b66f84 | 31 | }; |
nucho | 3:dff241b66f84 | 32 | |
nucho | 3:dff241b66f84 | 33 | } |
nucho | 0:06fc856e99ca | 34 | #endif |