Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of rosserial_mbed_lib by
std_msgs/Char.h@3:1cf99502f396, 2011-11-12 (annotated)
- Committer:
- nucho
- Date:
- Sat Nov 12 23:54:45 2011 +0000
- Revision:
- 3:1cf99502f396
- Parent:
- 0:77afd7560544
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:1cf99502f396 | 1 | #ifndef _ROS_std_msgs_Char_h |
| nucho | 3:1cf99502f396 | 2 | #define _ROS_std_msgs_Char_h |
| nucho | 3:1cf99502f396 | 3 | |
| nucho | 3:1cf99502f396 | 4 | #include <stdint.h> |
| nucho | 3:1cf99502f396 | 5 | #include <string.h> |
| nucho | 3:1cf99502f396 | 6 | #include <stdlib.h> |
| nucho | 3:1cf99502f396 | 7 | #include "ros/msg.h" |
| nucho | 3:1cf99502f396 | 8 | #include "std_msgs/char.h" |
| nucho | 3:1cf99502f396 | 9 | |
| nucho | 3:1cf99502f396 | 10 | namespace std_msgs |
| nucho | 3:1cf99502f396 | 11 | { |
| nucho | 3:1cf99502f396 | 12 | |
| nucho | 3:1cf99502f396 | 13 | class Char : public ros::Msg |
| nucho | 3:1cf99502f396 | 14 | { |
| nucho | 3:1cf99502f396 | 15 | public: |
| nucho | 3:1cf99502f396 | 16 | std_msgs::char data; |
| nucho | 3:1cf99502f396 | 17 | |
| nucho | 3:1cf99502f396 | 18 | virtual int serialize(unsigned char *outbuffer) const |
| nucho | 3:1cf99502f396 | 19 | { |
| nucho | 3:1cf99502f396 | 20 | int offset = 0; |
| nucho | 3:1cf99502f396 | 21 | offset += this->data.serialize(outbuffer + offset); |
| nucho | 3:1cf99502f396 | 22 | return offset; |
| nucho | 3:1cf99502f396 | 23 | } |
| nucho | 3:1cf99502f396 | 24 | |
| nucho | 3:1cf99502f396 | 25 | virtual int deserialize(unsigned char *inbuffer) |
| nucho | 3:1cf99502f396 | 26 | { |
| nucho | 3:1cf99502f396 | 27 | int offset = 0; |
| nucho | 3:1cf99502f396 | 28 | offset += this->data.deserialize(inbuffer + offset); |
| nucho | 3:1cf99502f396 | 29 | return offset; |
| nucho | 3:1cf99502f396 | 30 | } |
| nucho | 3:1cf99502f396 | 31 | |
| nucho | 3:1cf99502f396 | 32 | virtual const char * getType(){ return "std_msgs/Char"; }; |
| nucho | 3:1cf99502f396 | 33 | virtual const char * getMD5(){ return "1bf77f25acecdedba0e224b162199717"; }; |
| nucho | 3:1cf99502f396 | 34 | |
| nucho | 3:1cf99502f396 | 35 | }; |
| nucho | 3:1cf99502f396 | 36 | |
| nucho | 3:1cf99502f396 | 37 | } |
| nucho | 0:77afd7560544 | 38 | #endif |
