Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
MotionSequenceRequest.h
00001 #ifndef _ROS_moveit_msgs_MotionSequenceRequest_h 00002 #define _ROS_moveit_msgs_MotionSequenceRequest_h 00003 00004 #include <stdint.h> 00005 #include <string.h> 00006 #include <stdlib.h> 00007 #include "ros/msg.h" 00008 #include "moveit_msgs/MotionSequenceItem.h" 00009 00010 namespace moveit_msgs 00011 { 00012 00013 class MotionSequenceRequest : public ros::Msg 00014 { 00015 public: 00016 uint32_t items_length; 00017 typedef moveit_msgs::MotionSequenceItem _items_type; 00018 _items_type st_items; 00019 _items_type * items; 00020 00021 MotionSequenceRequest(): 00022 items_length(0), items(NULL) 00023 { 00024 } 00025 00026 virtual int serialize(unsigned char *outbuffer) const 00027 { 00028 int offset = 0; 00029 *(outbuffer + offset + 0) = (this->items_length >> (8 * 0)) & 0xFF; 00030 *(outbuffer + offset + 1) = (this->items_length >> (8 * 1)) & 0xFF; 00031 *(outbuffer + offset + 2) = (this->items_length >> (8 * 2)) & 0xFF; 00032 *(outbuffer + offset + 3) = (this->items_length >> (8 * 3)) & 0xFF; 00033 offset += sizeof(this->items_length); 00034 for( uint32_t i = 0; i < items_length; i++){ 00035 offset += this->items[i].serialize(outbuffer + offset); 00036 } 00037 return offset; 00038 } 00039 00040 virtual int deserialize(unsigned char *inbuffer) 00041 { 00042 int offset = 0; 00043 uint32_t items_lengthT = ((uint32_t) (*(inbuffer + offset))); 00044 items_lengthT |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1); 00045 items_lengthT |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2); 00046 items_lengthT |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3); 00047 offset += sizeof(this->items_length); 00048 if(items_lengthT > items_length) 00049 this->items = (moveit_msgs::MotionSequenceItem*)realloc(this->items, items_lengthT * sizeof(moveit_msgs::MotionSequenceItem)); 00050 items_length = items_lengthT; 00051 for( uint32_t i = 0; i < items_length; i++){ 00052 offset += this->st_items.deserialize(inbuffer + offset); 00053 memcpy( &(this->items[i]), &(this->st_items), sizeof(moveit_msgs::MotionSequenceItem)); 00054 } 00055 return offset; 00056 } 00057 00058 virtual const char * getType(){ return "moveit_msgs/MotionSequenceRequest"; }; 00059 virtual const char * getMD5(){ return "c89266756409bea218f39a7f05ef21a1"; }; 00060 00061 }; 00062 00063 } 00064 #endif
Generated on Mon Sep 26 2022 13:47:02 by
