catchrobo2022 / Mbed 2 deprecated catchrobo2022_mbed

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers ICPAlign.h Source File

ICPAlign.h

00001 #ifndef _ROS_SERVICE_ICPAlign_h
00002 #define _ROS_SERVICE_ICPAlign_h
00003 #include <stdint.h>
00004 #include <string.h>
00005 #include <stdlib.h>
00006 #include "ros/msg.h"
00007 #include "sensor_msgs/PointCloud2.h"
00008 #include "jsk_recognition_msgs/ICPResult.h"
00009 
00010 namespace jsk_recognition_msgs
00011 {
00012 
00013 static const char ICPALIGN[] = "jsk_recognition_msgs/ICPAlign";
00014 
00015   class ICPAlignRequest : public ros::Msg
00016   {
00017     public:
00018       typedef sensor_msgs::PointCloud2 _reference_cloud_type;
00019       _reference_cloud_type reference_cloud;
00020       typedef sensor_msgs::PointCloud2 _target_cloud_type;
00021       _target_cloud_type target_cloud;
00022 
00023     ICPAlignRequest():
00024       reference_cloud(),
00025       target_cloud()
00026     {
00027     }
00028 
00029     virtual int serialize(unsigned char *outbuffer) const
00030     {
00031       int offset = 0;
00032       offset += this->reference_cloud.serialize(outbuffer + offset);
00033       offset += this->target_cloud.serialize(outbuffer + offset);
00034       return offset;
00035     }
00036 
00037     virtual int deserialize(unsigned char *inbuffer)
00038     {
00039       int offset = 0;
00040       offset += this->reference_cloud.deserialize(inbuffer + offset);
00041       offset += this->target_cloud.deserialize(inbuffer + offset);
00042      return offset;
00043     }
00044 
00045     virtual const char * getType(){ return ICPALIGN; };
00046     virtual const char * getMD5(){ return "3e0df534693afbbecb9cc87944720695"; };
00047 
00048   };
00049 
00050   class ICPAlignResponse : public ros::Msg
00051   {
00052     public:
00053       typedef jsk_recognition_msgs::ICPResult _result_type;
00054       _result_type result;
00055 
00056     ICPAlignResponse():
00057       result()
00058     {
00059     }
00060 
00061     virtual int serialize(unsigned char *outbuffer) const
00062     {
00063       int offset = 0;
00064       offset += this->result.serialize(outbuffer + offset);
00065       return offset;
00066     }
00067 
00068     virtual int deserialize(unsigned char *inbuffer)
00069     {
00070       int offset = 0;
00071       offset += this->result.deserialize(inbuffer + offset);
00072      return offset;
00073     }
00074 
00075     virtual const char * getType(){ return ICPALIGN; };
00076     virtual const char * getMD5(){ return "a511a876c2be142caffd78741c68e4cf"; };
00077 
00078   };
00079 
00080   class ICPAlign {
00081     public:
00082     typedef ICPAlignRequest Request;
00083     typedef ICPAlignResponse Response;
00084   };
00085 
00086 }
00087 #endif