catchrobo2022 / Mbed 2 deprecated catchrobo2022_mbed

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers MotionSequenceItem.h Source File

MotionSequenceItem.h

00001 #ifndef _ROS_moveit_msgs_MotionSequenceItem_h
00002 #define _ROS_moveit_msgs_MotionSequenceItem_h
00003 
00004 #include <stdint.h>
00005 #include <string.h>
00006 #include <stdlib.h>
00007 #include "ros/msg.h"
00008 #include "moveit_msgs/MotionPlanRequest.h"
00009 
00010 namespace moveit_msgs
00011 {
00012 
00013   class MotionSequenceItem : public ros::Msg
00014   {
00015     public:
00016       typedef moveit_msgs::MotionPlanRequest _req_type;
00017       _req_type req;
00018       typedef double _blend_radius_type;
00019       _blend_radius_type blend_radius;
00020 
00021     MotionSequenceItem():
00022       req(),
00023       blend_radius(0)
00024     {
00025     }
00026 
00027     virtual int serialize(unsigned char *outbuffer) const
00028     {
00029       int offset = 0;
00030       offset += this->req.serialize(outbuffer + offset);
00031       union {
00032         double real;
00033         uint64_t base;
00034       } u_blend_radius;
00035       u_blend_radius.real = this->blend_radius;
00036       *(outbuffer + offset + 0) = (u_blend_radius.base >> (8 * 0)) & 0xFF;
00037       *(outbuffer + offset + 1) = (u_blend_radius.base >> (8 * 1)) & 0xFF;
00038       *(outbuffer + offset + 2) = (u_blend_radius.base >> (8 * 2)) & 0xFF;
00039       *(outbuffer + offset + 3) = (u_blend_radius.base >> (8 * 3)) & 0xFF;
00040       *(outbuffer + offset + 4) = (u_blend_radius.base >> (8 * 4)) & 0xFF;
00041       *(outbuffer + offset + 5) = (u_blend_radius.base >> (8 * 5)) & 0xFF;
00042       *(outbuffer + offset + 6) = (u_blend_radius.base >> (8 * 6)) & 0xFF;
00043       *(outbuffer + offset + 7) = (u_blend_radius.base >> (8 * 7)) & 0xFF;
00044       offset += sizeof(this->blend_radius);
00045       return offset;
00046     }
00047 
00048     virtual int deserialize(unsigned char *inbuffer)
00049     {
00050       int offset = 0;
00051       offset += this->req.deserialize(inbuffer + offset);
00052       union {
00053         double real;
00054         uint64_t base;
00055       } u_blend_radius;
00056       u_blend_radius.base = 0;
00057       u_blend_radius.base |= ((uint64_t) (*(inbuffer + offset + 0))) << (8 * 0);
00058       u_blend_radius.base |= ((uint64_t) (*(inbuffer + offset + 1))) << (8 * 1);
00059       u_blend_radius.base |= ((uint64_t) (*(inbuffer + offset + 2))) << (8 * 2);
00060       u_blend_radius.base |= ((uint64_t) (*(inbuffer + offset + 3))) << (8 * 3);
00061       u_blend_radius.base |= ((uint64_t) (*(inbuffer + offset + 4))) << (8 * 4);
00062       u_blend_radius.base |= ((uint64_t) (*(inbuffer + offset + 5))) << (8 * 5);
00063       u_blend_radius.base |= ((uint64_t) (*(inbuffer + offset + 6))) << (8 * 6);
00064       u_blend_radius.base |= ((uint64_t) (*(inbuffer + offset + 7))) << (8 * 7);
00065       this->blend_radius = u_blend_radius.real;
00066       offset += sizeof(this->blend_radius);
00067      return offset;
00068     }
00069 
00070     virtual const char * getType(){ return "moveit_msgs/MotionSequenceItem"; };
00071     virtual const char * getMD5(){ return "932aef4280f479e42c693b8b285624bf"; };
00072 
00073   };
00074 
00075 }
00076 #endif