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

Committer:
nucho
Date:
Sun Oct 16 07:19:36 2011 +0000
Revision:
1:ff0ec969dad1
Parent:
0:77afd7560544
Child:
3:1cf99502f396
This program supported the revision of 143 of rosserial.
And the bug fix of receive of array data.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
nucho 1:ff0ec969dad1 1 #ifndef ros_geometry_msgs_QuaternionStamped_h
nucho 1:ff0ec969dad1 2 #define ros_geometry_msgs_QuaternionStamped_h
nucho 1:ff0ec969dad1 3
nucho 0:77afd7560544 4
nucho 0:77afd7560544 5 #include <stdint.h>
nucho 0:77afd7560544 6 #include <string.h>
nucho 0:77afd7560544 7 #include <stdlib.h>
nucho 0:77afd7560544 8 #include "../ros/msg.h"
nucho 0:77afd7560544 9 #include "std_msgs/Header.h"
nucho 0:77afd7560544 10 #include "geometry_msgs/Quaternion.h"
nucho 0:77afd7560544 11
nucho 0:77afd7560544 12 namespace geometry_msgs
nucho 0:77afd7560544 13 {
nucho 0:77afd7560544 14
nucho 0:77afd7560544 15 class QuaternionStamped : public ros::Msg
nucho 0:77afd7560544 16 {
nucho 0:77afd7560544 17 public:
nucho 0:77afd7560544 18 std_msgs::Header header;
nucho 0:77afd7560544 19 geometry_msgs::Quaternion quaternion;
nucho 0:77afd7560544 20
nucho 0:77afd7560544 21 virtual int serialize(unsigned char *outbuffer)
nucho 0:77afd7560544 22 {
nucho 0:77afd7560544 23 int offset = 0;
nucho 0:77afd7560544 24 offset += this->header.serialize(outbuffer + offset);
nucho 0:77afd7560544 25 offset += this->quaternion.serialize(outbuffer + offset);
nucho 0:77afd7560544 26 return offset;
nucho 0:77afd7560544 27 }
nucho 0:77afd7560544 28
nucho 0:77afd7560544 29 virtual int deserialize(unsigned char *inbuffer)
nucho 0:77afd7560544 30 {
nucho 0:77afd7560544 31 int offset = 0;
nucho 0:77afd7560544 32 offset += this->header.deserialize(inbuffer + offset);
nucho 0:77afd7560544 33 offset += this->quaternion.deserialize(inbuffer + offset);
nucho 0:77afd7560544 34 return offset;
nucho 0:77afd7560544 35 }
nucho 0:77afd7560544 36
nucho 0:77afd7560544 37 virtual const char * getType(){ return "geometry_msgs/QuaternionStamped"; };
nucho 0:77afd7560544 38
nucho 0:77afd7560544 39 };
nucho 0:77afd7560544 40
nucho 0:77afd7560544 41 }
nucho 0:77afd7560544 42 #endif