Working towards recieving twists

Dependencies:   BufferedSerial

Fork of ros_lib_kinetic by Gary Servin

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Transform.h Source File

Transform.h

00001 #ifndef _ROS_geometry_msgs_Transform_h
00002 #define _ROS_geometry_msgs_Transform_h
00003 
00004 #include <stdint.h>
00005 #include <string.h>
00006 #include <stdlib.h>
00007 #include "ros/msg.h"
00008 #include "geometry_msgs/Vector3.h"
00009 #include "geometry_msgs/Quaternion.h"
00010 
00011 namespace geometry_msgs
00012 {
00013 
00014   class Transform : public ros::Msg
00015   {
00016     public:
00017       typedef geometry_msgs::Vector3 _translation_type;
00018       _translation_type translation;
00019       typedef geometry_msgs::Quaternion _rotation_type;
00020       _rotation_type rotation;
00021 
00022     Transform():
00023       translation(),
00024       rotation()
00025     {
00026     }
00027 
00028     virtual int serialize(unsigned char *outbuffer) const
00029     {
00030       int offset = 0;
00031       offset += this->translation.serialize(outbuffer + offset);
00032       offset += this->rotation.serialize(outbuffer + offset);
00033       return offset;
00034     }
00035 
00036     virtual int deserialize(unsigned char *inbuffer)
00037     {
00038       int offset = 0;
00039       offset += this->translation.deserialize(inbuffer + offset);
00040       offset += this->rotation.deserialize(inbuffer + offset);
00041      return offset;
00042     }
00043 
00044     const char * getType(){ return "geometry_msgs/Transform"; };
00045     const char * getMD5(){ return "ac9eff44abf714214112b05d54a3cf9b"; };
00046 
00047   };
00048 
00049 }
00050 #endif