This program is porting rosserial_arduino for mbed http://www.ros.org/wiki/rosserial_arduino This program supported the revision of 169 of rosserial.

Dependencies:  

Dependents:   rosserial_mbed robot_S2

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Char.h Source File

Char.h

00001 #ifndef _ROS_std_msgs_Char_h
00002 #define _ROS_std_msgs_Char_h
00003 
00004 #include <stdint.h>
00005 #include <string.h>
00006 #include <stdlib.h>
00007 #include "ros/msg.h"
00008 #include "std_msgs/char.h"
00009 
00010 namespace std_msgs
00011 {
00012 
00013   class Char : public ros::Msg
00014   {
00015     public:
00016       std_msgs::char data;
00017 
00018     virtual int serialize(unsigned char *outbuffer) const
00019     {
00020       int offset = 0;
00021       offset += this->data.serialize(outbuffer + offset);
00022       return offset;
00023     }
00024 
00025     virtual int deserialize(unsigned char *inbuffer)
00026     {
00027       int offset = 0;
00028       offset += this->data.deserialize(inbuffer + offset);
00029      return offset;
00030     }
00031 
00032     virtual const char * getType(){ return "std_msgs/Char"; };
00033     virtual const char * getMD5(){ return "1bf77f25acecdedba0e224b162199717"; };
00034 
00035   };
00036 
00037 }
00038 #endif