catchrobo2022 / Mbed 2 deprecated catchrobo2022_mbed

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers ICPAlignWithBox.h Source File

ICPAlignWithBox.h

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