catchrobo2022 / Mbed 2 deprecated catchrobo2022_mbed

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers ApplyPlanningScene.h Source File

ApplyPlanningScene.h

00001 #ifndef _ROS_SERVICE_ApplyPlanningScene_h
00002 #define _ROS_SERVICE_ApplyPlanningScene_h
00003 #include <stdint.h>
00004 #include <string.h>
00005 #include <stdlib.h>
00006 #include "ros/msg.h"
00007 #include "moveit_msgs/PlanningScene.h"
00008 
00009 namespace moveit_msgs
00010 {
00011 
00012 static const char APPLYPLANNINGSCENE[] = "moveit_msgs/ApplyPlanningScene";
00013 
00014   class ApplyPlanningSceneRequest : public ros::Msg
00015   {
00016     public:
00017       typedef moveit_msgs::PlanningScene _scene_type;
00018       _scene_type scene;
00019 
00020     ApplyPlanningSceneRequest():
00021       scene()
00022     {
00023     }
00024 
00025     virtual int serialize(unsigned char *outbuffer) const
00026     {
00027       int offset = 0;
00028       offset += this->scene.serialize(outbuffer + offset);
00029       return offset;
00030     }
00031 
00032     virtual int deserialize(unsigned char *inbuffer)
00033     {
00034       int offset = 0;
00035       offset += this->scene.deserialize(inbuffer + offset);
00036      return offset;
00037     }
00038 
00039     virtual const char * getType(){ return APPLYPLANNINGSCENE; };
00040     virtual const char * getMD5(){ return "7bedc4871b1d0af6ec8b8996db347e7f"; };
00041 
00042   };
00043 
00044   class ApplyPlanningSceneResponse : public ros::Msg
00045   {
00046     public:
00047       typedef bool _success_type;
00048       _success_type success;
00049 
00050     ApplyPlanningSceneResponse():
00051       success(0)
00052     {
00053     }
00054 
00055     virtual int serialize(unsigned char *outbuffer) const
00056     {
00057       int offset = 0;
00058       union {
00059         bool real;
00060         uint8_t base;
00061       } u_success;
00062       u_success.real = this->success;
00063       *(outbuffer + offset + 0) = (u_success.base >> (8 * 0)) & 0xFF;
00064       offset += sizeof(this->success);
00065       return offset;
00066     }
00067 
00068     virtual int deserialize(unsigned char *inbuffer)
00069     {
00070       int offset = 0;
00071       union {
00072         bool real;
00073         uint8_t base;
00074       } u_success;
00075       u_success.base = 0;
00076       u_success.base |= ((uint8_t) (*(inbuffer + offset + 0))) << (8 * 0);
00077       this->success = u_success.real;
00078       offset += sizeof(this->success);
00079      return offset;
00080     }
00081 
00082     virtual const char * getType(){ return APPLYPLANNINGSCENE; };
00083     virtual const char * getMD5(){ return "358e233cde0c8a8bcfea4ce193f8fc15"; };
00084 
00085   };
00086 
00087   class ApplyPlanningScene {
00088     public:
00089     typedef ApplyPlanningSceneRequest Request;
00090     typedef ApplyPlanningSceneResponse Response;
00091   };
00092 
00093 }
00094 #endif